Skip to content

Commit ae706ad

Browse files
authored
use pyproject.toml [project] section (again) (#19653)
1 parent 60fab78 commit ae706ad

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3520,4 +3520,4 @@ upnp = ["miniupnpc"]
35203520
[metadata]
35213521
lock-version = "2.1"
35223522
python-versions = ">=3.9, <4"
3523-
content-hash = "f9d5a7860b35d9f559642beb2e545dccc98fa2e90e34294c6ed35f3cf5bd0676"
3523+
content-hash = "9dd987211af7822d9ab8e05b513f5e695901238545a2cc97e6fab71f86abecb4"

pyproject.toml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
[tool.poetry]
1+
[project]
22
name = "chia-blockchain"
3-
# see [tool.poetry-dynamic-versioning]
4-
version = "0.0.0"
3+
dynamic = [ "dependencies", "version" ]
54
description = "Chia blockchain full node, farmer, timelord, and wallet."
6-
authors = ["Mariano Sorgente <[email protected]>"]
7-
license = "Apache-2.0"
8-
readme = "README.md"
5+
requires-python = ">=3.9, <4"
6+
authors = [
7+
{name="Mariano Sorgente", email="[email protected]"}
8+
]
9+
license = {text="Apache-2.0"}
10+
readme = {file = "README.md", content-type = "text/markdown"}
911
keywords= ["chia", "blockchain", "node"]
1012
homepage = "https://chia.net/"
13+
14+
[tool.poetry]
15+
# see [tool.poetry-dynamic-versioning]
1116
packages = [{ include = "chia"}, { include = "mozilla-ca/cacert.pem" }]
17+
version = "0.0.0"
1218

13-
[tool.poetry.scripts]
19+
[project.scripts]
1420
chia = "chia.cmds.chia:main"
1521
chia_daemon = "chia.daemon.server:main"
1622
chia_wallet = "chia.server.start_wallet:main"
@@ -32,12 +38,11 @@ name = "chia"
3238
url = "https://pypi.chia.net/simple/"
3339
priority = "supplemental"
3440

35-
[tool.poetry.urls]
36-
"Source" = "https://github.com/Chia-Network/chia-blockchain/"
37-
"Changelog" = "https://github.com/Chia-Network/chia-blockchain/blob/main/CHANGELOG.md"
41+
[project.urls]
42+
source = "https://github.com/Chia-Network/chia-blockchain/"
43+
changelog = "https://github.com/Chia-Network/chia-blockchain/blob/main/CHANGELOG.md"
3844

3945
[tool.poetry.dependencies]
40-
python = ">=3.9, <4"
4146
aiofiles = ">=24.1.0" # Async IO for files
4247
aiohttp = ">=3.10.4" # HTTP server for full node rpc
4348
aiosqlite = ">=0.20.0" # asyncio wrapper for sqlite, to store blocks
@@ -140,10 +145,3 @@ bump = true
140145
[build-system]
141146
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
142147
build-backend = "poetry_dynamic_versioning.backend"
143-
144-
[project]
145-
# duplicating until poetry v2, then revisit https://github.com/Chia-Network/chia-blockchain/pull/18797
146-
name = "chia-blockchain"
147-
# This has to match the poetry python entry above
148-
requires-python = ">=3.9, <4"
149-
dynamic = ["version"]

0 commit comments

Comments
 (0)