Skip to content

Commit fa9582a

Browse files
committed
pyproject: use standard [project] table
Move from poetry-specific [tool.poetry] table to the standard [project] table. This fixes warnings from `poetry check`. Link: https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
1 parent a883fff commit fa9582a

File tree

3 files changed

+30
-23
lines changed

3 files changed

+30
-23
lines changed

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
# -- Project information -----------------------------------------------------
2929

30-
project = _pyproject["tool"]["poetry"]["name"]
30+
project = _pyproject["project"]["name"]
3131
copyright = "2021, The Pybricks Authors"
32-
author = _pyproject["tool"]["poetry"]["authors"][0]
33-
release = f"v{_pyproject['tool']['poetry']['version']}"
32+
author = _pyproject["project"]["authors"][0]["name"]
33+
release = f"v{_pyproject['project']['version']}"
3434
version = re.match(r"(v\d+\.\d+)", release)[0]
3535

3636

poetry.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,42 @@
1-
[tool.poetry]
1+
[project]
22
name = "pybricksdev"
33
version = "1.2.0"
44
description = "Pybricks developer tools"
5-
authors = ["The Pybricks Authors <[email protected]>"]
6-
maintainers = ["Laurens Valk <[email protected]>", "David Lechner <[email protected]>" ]
7-
license = "MIT"
5+
authors = [{ name = "The Pybricks Authors", email = "[email protected]" }]
6+
maintainers = [
7+
{ name = "Laurens Valk", email = "[email protected]" },
8+
{ name = "David Lechner", email = "[email protected]" }
9+
]
10+
license = { text = "MIT" }
811
readme = "README.md"
9-
homepage = "https://pybricks.com"
10-
repository = "https://github.com/pybricks/pybricksdev"
11-
documentation = "https://docs.pybricks.com/projects/pybricksdev"
1212
classifiers = [
13-
"Development Status :: 3 - Alpha",
1413
"Intended Audience :: Developers",
1514
"Natural Language :: English",
1615
"Operating System :: OS Independent",
1716
]
18-
include = [
19-
"AUTHORS.md"
20-
]
17+
requires-python = ">=3.10"
18+
dynamic = ["dependencies"]
2119

22-
[tool.poetry.urls]
20+
[project.urls]
21+
homepage = "https://pybricks.com"
22+
repository = "https://github.com/pybricks/pybricksdev"
23+
documentation = "https://docs.pybricks.com/projects/pybricksdev"
2324
"Changelog" = "https://github.com/pybricks/pybricksdev/blob/master/CHANGELOG.md"
2425
"Support" = "https://github.com/pybricks/support/discussions"
2526
"Issues" = "https://github.com/pybricks/support/issues"
2627

27-
[tool.poetry.scripts]
28+
[project.scripts]
2829
pybricksdev = 'pybricksdev.cli:main'
2930

31+
[tool.poetry]
32+
include = [
33+
"AUTHORS.md"
34+
]
35+
3036
[tool.poetry.dependencies]
3137
argcomplete = ">=3.6.2"
3238
bleak = ">=0.22.0"
3339
mpy-cross-v5 = ">=1.1.0"
34-
python = ">=3.10,<3.14"
3540
tqdm = ">=4.62.3"
3641
pyusb = ">=1.0.2"
3742
semver = ">=2.13.0"
@@ -40,9 +45,9 @@ prompt-toolkit = ">=3.0.18"
4045
mpy-cross-v6 = ">=1.1.0"
4146
packaging = ">=22"
4247
typing-extensions = ">=4.3.0"
43-
reactivex = ">=4.0.4"
48+
reactivex = {version = ">=4.0.4", python = "<4"}
4449
hidapi = ">=0.14.0"
45-
pybricks = {version = ">=3", allow-prereleases = true}
50+
pybricks = {version = ">=3", allow-prereleases = true, python = "<4"}
4651

4752
[tool.poetry.group.lint.dependencies]
4853
black = ">=23,<25"
@@ -61,8 +66,8 @@ pytest = ">=7.3.1"
6166
pytest-asyncio = ">=0.21.0"
6267

6368
[build-system]
64-
requires = ["poetry>=0.12"]
65-
build-backend = "poetry.masonry.api"
69+
requires = ["poetry-core>=1.0.0"]
70+
build-backend = "poetry.core.masonry.api"
6671

6772
[tool.black]
6873
target-version = ['py38']

0 commit comments

Comments
 (0)