Skip to content

Commit 45b9fdd

Browse files
pyproject.toml Usage
1 parent 921db5e commit 45b9fdd

File tree

4 files changed

+56
-42
lines changed

4 files changed

+56
-42
lines changed

api/scaffold/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
from packaging.version import parse as parse_version, Version as PackagingVersion
2626
from .bus import ScaffoldBus, Register, TimeoutError
2727

28-
# Dynamically managed by Peotry
29-
__version__ = "0.0.0"
28+
# Version of the Scaffold API
29+
__version__ = "0.9.3"
3030

3131
# Prevent flake8 from complaining about unused import. This class is actually
3232
# re-exported. This should be improved in the future.

api/setup.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
# built documents.
6767
#
6868
# The short X.Y version.
69-
version = "0.9.1"
69+
version = "0.9.3"
7070
# The full version, including alpha/beta/rc tags.
71-
release = "0.9.1"
71+
release = "0.9.3"
7272

7373
# The language for content autogenerated by Sphinx. Refer to documentation
7474
# for a list of supported languages.

pyproject.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[tool.poetry]
2+
name = "donjon-scaffold"
3+
packages = [{ include = "scaffold", from = "api" }]
4+
version = "0.0.0"
5+
description = "Python3 API for the Scaffold board"
6+
authors = [
7+
"Olivier Hériveaux <olivier.heriveaux@ledger.fr>",
8+
"Michaël Mouchous <michael.mouchous@ledger.fr>",
9+
"Léo Benito <leo.benito@ledger.fr>",
10+
]
11+
readme = "README.md"
12+
license = "LGPL-3.0-or-later"
13+
documentation = "https://donjonscaffold.readthedocs.io"
14+
repository = "https://github.com/Ledger-Donjon/scaffold/"
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Science/Research",
18+
"Topic :: Scientific/Engineering",
19+
"Topic :: Security",
20+
"Topic :: System :: Hardware",
21+
]
22+
keywords = ["scaffold", "donjon", "ledger"]
23+
24+
25+
[tool.poetry.dependencies]
26+
python = "^3.7"
27+
pyserial = "*"
28+
crcmod = "*"
29+
requests = "*"
30+
packaging = "*"
31+
32+
[tool.poetry.group.test.dependencies]
33+
pytest = "^6.0.0"
34+
35+
[tool.poetry.group.docs]
36+
optional = true
37+
38+
[tool.poetry.group.docs.dependencies]
39+
sphinx = "*"
40+
sphinx_rtd_theme = "*"
41+
42+
[build-system]
43+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
44+
build-backend = "poetry_dynamic_versioning.backend"
45+
46+
[tool.poetry-dynamic-versioning.substitution]
47+
files = ["api/scaffold/__init__.py"]
48+
49+
[tool.poetry-dynamic-versioning]
50+
enable = true
51+
vcs = "git"
52+
pattern = "default-unprefixed"

0 commit comments

Comments
 (0)