Skip to content

Commit 4626d0b

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 ed81ccb commit 4626d0b

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

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: 21 additions & 16 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 <dev@pybricks.com>"]
6-
maintainers = ["Laurens Valk <laurens@pybricks.com>", "David Lechner <david@pybricks.com>" ]
7-
license = "MIT"
5+
authors = [{ name = "The Pybricks Authors", email = "dev@pybricks.com" }]
6+
maintainers = [
7+
{ name = "Laurens Valk", email = "laurens@pybricks.com" },
8+
{ name = "David Lechner", email = "david@pybricks.com" }
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"

0 commit comments

Comments
 (0)