Skip to content

Commit c0ee938

Browse files
authored
migrate pyproject.toml to PEP 621 using Poetry v2 (#193)
* migrate pyproject.toml to PEP 621 Support was added with Poetry v2.0 and above * update poetry-dynamic-versioning for Poetry v2.0+
1 parent 863ca63 commit c0ee938

File tree

3 files changed

+67
-28
lines changed

3 files changed

+67
-28
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
python -m pip install --upgrade poetry wheel
1818
- name: Install dependencies
1919
run: |
20-
poetry self add poetry-dynamic-versioning
2120
poetry install
2221
- name: Show version (debug)
2322
run: poetry version

poetry.lock

Lines changed: 44 additions & 8 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 & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
[project]
2+
name = "Flowpipe"
3+
description = "A lightweight framework for flow-based programming in python."
4+
license = "MIT"
5+
dynamic = ["version", "classifiers"]
6+
readme = "README.md"
7+
authors = [{ name = "Paul Schweizer", email = "[email protected]" }]
8+
requires-python = '>=3.9'
9+
dependencies = ['ascii-canvas>=2.0.0']
10+
11+
[project.urls]
12+
repository = "https://github.com/PaulSchweizer/flowpipe"
13+
documentation = "https://flowpipe.readthedocs.io/en/latest/"
14+
15+
[build-system]
16+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
17+
build-backend = "poetry_dynamic_versioning.backend"
18+
119
[tool.black]
220
line-length = 79
321

@@ -18,14 +36,6 @@ disable = [
1836
]
1937

2038
[tool.poetry]
21-
name = "Flowpipe"
22-
version = "0.0.0"
23-
description = "A lightweight framework for flow-based programming in python."
24-
authors = ["Paul Schweizer <[email protected]>"]
25-
license = "MIT"
26-
readme = "README.md"
27-
repository = "https://github.com/PaulSchweizer/flowpipe"
28-
documentation = "https://flowpipe.readthedocs.io/en/latest/"
2939
classifiers = [
3040
"Programming Language :: Python",
3141
"Programming Language :: Python :: 3.7",
@@ -34,17 +44,15 @@ classifiers = [
3444
"Programming Language :: Python :: 3.10",
3545
"Programming Language :: Python :: 3.11",
3646
]
37-
38-
[tool.poetry.dependencies]
39-
python = ">=3.9"
40-
ascii-canvas = ">=2.0.0"
41-
42-
[tool.poetry.plugins."poetry.plugin"]
43-
"dynamic-versioning" = "poetry_dynamic_versioning.plugin"
47+
requires-poetry = '>=2.0'
48+
version = "0.0.0"
4449

4550
[tool.poetry-dynamic-versioning]
4651
enable = true
4752

53+
[tool.poetry.requires-plugins]
54+
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
55+
4856
[tool.poetry.group.dev.dependencies]
4957
black = "^23.11.0"
5058
mock = "^5.1.0"
@@ -55,7 +63,3 @@ pytest-cov = "^4.1.0"
5563
pytest = "^7.4.2"
5664
isort = { version = "^5.12.0", extras = ["pyproject"] }
5765
mypy = "^1.6.1"
58-
59-
[build-system]
60-
requires = ["poetry-core>=1.0.0"]
61-
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)