Skip to content

Commit 330b0c2

Browse files
committed
build: getting (slowly) out of poetry
1 parent f4c29f6 commit 330b0c2

File tree

1 file changed

+50
-33
lines changed

1 file changed

+50
-33
lines changed

pyproject.toml

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
[tool.poetry]
1+
[project]
22
name = "experimaestro"
3-
authors = ["Benjamin Piwowarski <benjamin@piwowarski.fr>"]
3+
authors = [
4+
{name = "Benjamin Piwowarski", email = "benjamin@piwowarski.fr"}
5+
]
46
description = '"Experimaestro is a computer science experiment manager"'
57
readme = "README.md"
68
license = "GPL-3"
@@ -20,9 +22,38 @@ include = [
2022
"src/experimaestro/mkdocs/style.css",
2123
{ path="src/experimaestro/server/data/*", format=['sdist', 'wheel']}
2224
]
23-
version = "0.0.0"
2425
repository = "https://github.com/experimaestro/experimaestro-python"
2526
documentation = "https://experimaestro-python.readthedocs.io/"
27+
dynamic = ["version"]
28+
requires-python = ">=3.10"
29+
dependencies = [
30+
"arpeggio >=2,<3",
31+
"attrs >=23.1.0,<24",
32+
"click >=8",
33+
"decorator >=5,<6",
34+
"docstring-parser >=0.15,<1",
35+
"fasteners >=0.19,<1",
36+
"flask >=2.3,<3",
37+
"flask-socketio >=5.3,<6",
38+
"gevent >=24.11.1,<25",
39+
"gevent-websocket >=0.10,<1",
40+
"humanfriendly >=10",
41+
"huggingface-hub >0.17",
42+
"marshmallow >=3.20,<4",
43+
"mkdocs >=1.5,<2",
44+
"omegaconf >=2.3,<3",
45+
"psutil >=7,<8",
46+
"pyparsing >=3.1,<4",
47+
"pytools >=2023.1.1,<2024",
48+
"pyyaml >=6.0.1,<7",
49+
"requests >=2.31,<3",
50+
"rpyc >=5,<7",
51+
"sortedcontainers >=2.4,<3",
52+
"termcolor >=2.3,<3",
53+
"tqdm >=4.66.1,<5",
54+
"typing-extensions >=4.2; python_version < \"3.12\"",
55+
"watchdog >=2"
56+
]
2657

2758
[tool.poetry-dynamic-versioning]
2859
enable = true
@@ -33,39 +64,25 @@ format-jinja = """{%- set pre = [] -%}{%- set metadata = [] -%}
3364
{%- if revision is not none -%}{{ pre.append("rc" + revision|string) or "" }}{%- endif -%}
3465
{%- if distance > 0 -%}{{ metadata.append(distance|string) or "" }}{%- endif -%}
3566
{{ serialize_semver(base, pre, metadata)}}"""
67+
68+
[tool.poetry]
69+
version = "0.0.0"
70+
71+
[tool.poetry-dynamic-versioning.files."src/experimaestro/version.py"]
72+
persistent-substitution = true
73+
initial-content = """
74+
# These version placeholders will be replaced later during substitution.
75+
__version__ = "0.0.0"
76+
__version_tuple__ = (0, 0, 0)
77+
"""
78+
79+
[tool.poetry.requires-plugins]
80+
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
81+
3682
[build-system]
3783
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
3884
build-backend = "poetry_dynamic_versioning.backend"
3985

40-
[tool.poetry.dependencies]
41-
python = "^3.9"
42-
click = ">=8"
43-
omegaconf = "^2.3"
44-
typing-extensions = {version = ">=4.2", markers = "python_version < \"3.12\""}
45-
attrs = "^23.1.0"
46-
fasteners = "^0.19"
47-
pyyaml = "^6.0.1"
48-
psutil = ">=7"
49-
pytools = "^2023.1.1"
50-
tqdm = "^4.66.1"
51-
docstring-parser = "^0.15"
52-
termcolor = ">=2.3"
53-
requests = "^2.31"
54-
sortedcontainers = "^2.4"
55-
pyparsing = "^3.1"
56-
humanfriendly = "^10"
57-
huggingface-hub = ">0.17"
58-
gevent = "^24.11.1"
59-
gevent-websocket = "^0.10"
60-
flask = "^2.3"
61-
flask-socketio = "^5.3"
62-
arpeggio = "^2"
63-
watchdog = "^2"
64-
marshmallow = "^3.20"
65-
decorator = "^5"
66-
rpyc = ">=5,<7"
67-
mkdocs = ">=1.5"
68-
6986
[tool.poetry.group.ssh]
7087
optional = true
7188

@@ -80,7 +97,7 @@ optional = true
8097
docutils = "^0.18"
8198
Pygments = "^2.15"
8299

83-
[tool.poetry.scripts]
100+
[project.scripts]
84101
experimaestro = "experimaestro.__main__:main"
85102

86103
[project.entry-points."mkdocs.plugins"]

0 commit comments

Comments
 (0)