Skip to content

Commit 9722117

Browse files
committed
build: Update pyproject.toml to be more PEP 621 compliant
1 parent 50060fc commit 9722117

2 files changed

Lines changed: 31 additions & 29 deletions

File tree

poetry.lock

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

pyproject.toml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
1-
[tool.poetry]
1+
[project]
22
name = "zxbasic"
33
version = "1.18.7"
44
description = "Boriel's ZX BASIC Compiler"
5-
authors = ["Jose Rodriguez <zxbasic@boriel.com>"]
5+
authors = [
6+
{ name = "Jose Rodriguez", email = "zxbasic@boriel.com" }
7+
]
68
license = "AGPL-3.0-or-later"
7-
documentation = "https://zxbasic.readthedocs.io"
8-
repository = "https://github.com/boriel-basic/zxbasic"
9-
homepage = "https://github.com/boriel-basic"
109
readme = "README.md"
11-
10+
requires-python = ">=3.11"
11+
keywords = ["compiler", "zxspectrum", "BASIC", "z80"]
1212
classifiers = [
13-
'Development Status :: 5 - Production/Stable',
14-
'Intended Audience :: Developers',
15-
'Topic :: Software Development :: Build Tools',
16-
'License :: OSI Approved :: GNU Affero General Public License v3',
17-
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.11",
19-
"Programming Language :: Python :: 3.12",
20-
"Programming Language :: Python :: 3.13",
21-
]
13+
"Development Status :: 5 - Production/Stable",
14+
"Intended Audience :: Developers",
15+
"Topic :: Software Development :: Build Tools",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
20+
]
2221

23-
keywords = ['compiler', 'zxspectrum', 'BASIC', 'z80'] # arbitrary keywords
22+
[project.urls]
23+
Homepage = "https://github.com/boriel-basic"
24+
Repository = "https://github.com/boriel-basic/zxbasic"
25+
Documentation = "https://zxbasic.readthedocs.io"
2426

27+
[project.scripts]
28+
zxbc = "src.zxbc:main"
29+
zxbasm = "src.zxbasm:main"
30+
zxbpp = "src.zxbpp:entry_point"
31+
32+
# Poetry-specific packaging configuration that is not part of PEP 621.
33+
# Keep this minimal section to preserve the current package discovery behavior.
34+
[tool.poetry]
2535
packages = [
2636
{ include = "src/**/*" }
2737
]
2838

29-
[tool.poetry.scripts]
30-
zxbc = 'src.zxbc:main'
31-
zxbasm = 'src.zxbasm:main'
32-
zxbpp = 'src.zxbpp:entry_point'
33-
34-
[tool.poetry.dependencies]
35-
python = ">=3.11"
36-
3739
[tool.poetry.group.dev.dependencies]
3840
pytest = "*"
3941
bump2version = "^1.0.0"
@@ -47,8 +49,8 @@ pytest-xdist = "*"
4749
setuptools = ">=70.1.1,<79.0.0"
4850

4951
[build-system]
50-
requires = ["poetry>=2.3.1"]
51-
build-backend = "poetry.masonry.api"
52+
requires = ["poetry-core>=2.0.0"]
53+
build-backend = "poetry.core.masonry.api"
5254

5355
[tool.poe.tasks]
5456
[[tool.poe.tasks.lint]]

0 commit comments

Comments
 (0)