Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 22a86ce

Browse filesBrowse files
committed
Migrate to Poetry 2.x preferred configuration
* Migrate to newer PEP standard pyproject layout * Migrate to src directory layout * Update some deps I've chosen to keep poetry's version and dependencies specifications because there's not yet a clear way to update the version specifier in a standard way and strongly prefer Poetry's way to specifying dependency ranges.
1 parent d85f2fc commit 22a86ce
Copy full SHA for 22a86ce

File tree

4 files changed

+20
-49
lines changed
Filter options

4 files changed

+20
-49
lines changed

‎Makefile

Copy file name to clipboardExpand all lines: Makefile
+1-1
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

Copy file name to clipboardExpand all lines: poetry.lock
+2-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

Copy file name to clipboardExpand all lines: pyproject.toml
+17-9
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 <c.o.l.i.n.d.e.a.n@example.com>"]
104
license = "CC0"
115
readme = "README.md"
6+
authors = [
7+
{name = "Colin Dean",email = "c.o.l.i.n.d.e.a.n@example.com"}
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"
File renamed without changes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.