Skip to content

Commit

Permalink
pyproject.toml Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Jan 17, 2025
1 parent 921db5e commit 45b9fdd
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 42 deletions.
4 changes: 2 additions & 2 deletions api/scaffold/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
from packaging.version import parse as parse_version, Version as PackagingVersion
from .bus import ScaffoldBus, Register, TimeoutError

# Dynamically managed by Peotry
__version__ = "0.0.0"
# Version of the Scaffold API
__version__ = "0.9.3"

# Prevent flake8 from complaining about unused import. This class is actually
# re-exported. This should be improved in the future.
Expand Down
38 changes: 0 additions & 38 deletions api/setup.py

This file was deleted.

4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
# built documents.
#
# The short X.Y version.
version = "0.9.1"
version = "0.9.3"
# The full version, including alpha/beta/rc tags.
release = "0.9.1"
release = "0.9.3"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[tool.poetry]
name = "donjon-scaffold"
packages = [{ include = "scaffold", from = "api" }]
version = "0.0.0"
description = "Python3 API for the Scaffold board"
authors = [
"Olivier Hériveaux <[email protected]>",
"Michaël Mouchous <[email protected]>",
"Léo Benito <[email protected]>",
]
readme = "README.md"
license = "LGPL-3.0-or-later"
documentation = "https://donjonscaffold.readthedocs.io"
repository = "https://github.com/Ledger-Donjon/scaffold/"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Security",
"Topic :: System :: Hardware",
]
keywords = ["scaffold", "donjon", "ledger"]


[tool.poetry.dependencies]
python = "^3.7"
pyserial = "*"
crcmod = "*"
requests = "*"
packaging = "*"

[tool.poetry.group.test.dependencies]
pytest = "^6.0.0"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
sphinx = "*"
sphinx_rtd_theme = "*"

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.poetry-dynamic-versioning.substitution]
files = ["api/scaffold/__init__.py"]

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "default-unprefixed"

0 comments on commit 45b9fdd

Please sign in to comment.