Skip to content

Commit b108ff6

Browse files
committed
change to poetry
1 parent 454a0c4 commit b108ff6

File tree

1 file changed

+35
-25
lines changed

1 file changed

+35
-25
lines changed

templates/python/pyproject.mustache

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,58 @@
1-
[project]
1+
[tool.poetry]
22
name = "{{{pythonPackageName}}}"
33
version = "{{{packageVersion}}}"
44
authors = [
5-
{ name="{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}}", email="{{infoEmail}}{{^infoEmail}}[email protected]{{/infoEmail}}" },
5+
"{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}} <{{infoEmail}}{{^infoEmail}}[email protected]{{/infoEmail}}>",
66
]
77
description = "{{{appName}}}"
88
#readme = "README.md"
99
#license = "{{{licenseInfo}}}{{^licenseInfo}}NoLicense{{/licenseInfo}}"
10-
requires-python = ">=3.8"
10+
#requires-python = ">=3.8"
1111
classifiers = [
1212
"Programming Language :: Python :: 3",
1313
"License :: OSI Approved :: Apache Software License",
1414
"Operating System :: OS Independent",
1515
]
16-
dependencies = [
17-
"requests ~= 2.32.3",
18-
"python_dateutil ~= 2.5.3",
19-
"pydantic ~= 2.9.2",
20-
"stackit-core ~= 0.0.1",
16+
packages = [
17+
{ include = "stackit", from="src" }
2118
]
2219

23-
[project.optional-dependencies]
24-
dev = [
25-
"black >= 24.8.0",
26-
"pytest ~= 8.3.2",
27-
"flake8 ~= 7.1.0",
28-
"flake8-black ~= 0.3.6",
29-
"flake8-pyproject ~= 1.2.3",
30-
"flake8-quotes ~= 3.4.0",
31-
"flake8-bandit ~= 4.1.1",
32-
"flake8-bugbear ~= 24.8.19",
33-
"flake8-eradicate ~= 1.5.0",
34-
"flake8-eol ~= 0.0.8",
35-
"autoimport ~= 1.6.1",
36-
"isort ~= 5.13.2",
37-
]
20+
[tool.poetry.dependencies]
21+
python = ">=3.8,<4.0"
22+
stackit-core = "^0.0.1"
23+
requests = "^2.32.3"
24+
pydantic = "^2.9.2"
25+
python-dateutil = "^2.9.0.post0"
26+
27+
[tool.poetry.group.dev.dependencies]
28+
black = "24.8.0"
29+
pytest = "^8.3.3"
30+
flake8 = "^5.0.3"
31+
flake8-black = "^0.3.6"
32+
flake8-pyproject = "^1.2.3"
33+
autoimport = "^1.6.1"
34+
flake8-eol = "^0.0.8"
35+
flake8-eradicate = "^1.5.0"
36+
flake8-bandit = "^4.1.1"
37+
flake8-bugbear = "^23.1.14"
38+
flake8-quotes = "^3.4.0"
39+
isort = "^5.13.2"
3840
3941
[project.urls]
4042
Homepage = "https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}"
4143
Issues = "https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}/issues"
4244
4345
[build-system]
44-
requires = ["setuptools"]
45-
build-backend = "setuptools.build_meta"
46+
requires = ["poetry-core"]
47+
build-backend = "poetry.core.masonry.api"
48+
49+
[tool.pytest.ini_options]
50+
pythonpath = [
51+
"src"
52+
]
53+
testpaths = [
54+
"tests"
55+
]
4656
4757
[tool.black]
4858
line-length = 120

0 commit comments

Comments
 (0)