Skip to content

Commit d8877f8

Browse files
authored
Merge pull request #141 from target/poetry-2.x
Migrate to Poetry 2.x preferred configuration
2 parents d85f2fc + 22a86ce commit d8877f8

File tree

4 files changed

+20
-49
lines changed

4 files changed

+20
-49
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
##
1111

1212
## Source location
13-
MODULE_BASE_DIR = example
13+
MODULE_BASE_DIR = src/example
1414
TESTS_BASE_DIR = tests
1515

1616
## Pythonic variables

poetry.lock

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

pyproject.toml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
[build-system]
2-
requires = ["poetry-core"]
3-
build-backend = "poetry.core.masonry.api"
4-
5-
[tool.poetry]
1+
[project]
62
name = "example"
7-
version = "0.0.0"
83
description = "This is a demonstration of the Make Python Devex concept project"
9-
authors = ["Colin Dean <[email protected]>"]
104
license = "CC0"
115
readme = "README.md"
6+
authors = [
7+
{name = "Colin Dean",email = "[email protected]"}
8+
]
9+
requires-python = ">=3.13,<4.0.0"
10+
dynamic = [ "version", "dependencies" ]
11+
12+
13+
[tool.poetry]
14+
version = "0.0.0"
15+
packages = [{include = "example", from = "src"}]
16+
17+
[build-system]
18+
requires = ["poetry-core>=2.0.0,<3.0.0"]
19+
build-backend = "poetry.core.masonry.api"
1220

13-
[tool.poetry.scripts]
21+
[project.scripts]
1422
example-make-python-devex = "example:main"
1523

1624
[tool.poetry.dependencies]
1725
# set Python constraints
18-
python = ">=3.9,<3.14"
26+
python = ">=3.13,<4.0"
1927
## commonly used libraries
2028
# retry failing method calls
2129
retry2 = "^0.9"

0 commit comments

Comments
 (0)