Skip to content

Commit 0dc65a0

Browse files
ci
1 parent 7b14caa commit 0dc65a0

2 files changed

Lines changed: 52 additions & 43 deletions

File tree

.github/actions/prepare-poetry/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ runs:
3737
- name: Install Poetry
3838
uses: snok/install-poetry@v1
3939
with:
40-
version: 2.1.1
40+
version: 1.5.1
4141
virtualenvs-create: true
4242
virtualenvs-in-project: true
4343

pyproject.toml

Lines changed: 51 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,59 @@
1-
[build-system]
2-
requires = ["poetry-core>=1.0.0"]
3-
build-backend = "poetry.core.masonry.api"
4-
5-
[project]
1+
[tool.poetry]
62
name = "etptypes"
73
version = "0.0.0"
8-
description = "ETP Python dev kit"
4+
description = "ETP python dev kit"
95
authors = [
10-
{ name = "Lionel Untereiner", email = "lionel.untereiner@geosiris.com" },
11-
{ name = "Valentin Gauthier", email = "valentin.gauthier@geosiris.com" }
6+
"Lionel Untereiner <lionel.untereiner@geosiris.com>",
7+
"Valentin Gauthier <valentin.gauthier@geosiris.com>"
128
]
13-
license = { text = "Apache-2.0" }
9+
license = "Apache-2.0"
1410
readme = "README.md"
15-
requires-python = ">=3.9, <4.0"
16-
keywords = ["ETP"]
17-
18-
dependencies = [
19-
"pydantic<2.0.0", # Some dependencies are not compatible with pydantic > 2.0.0
20-
"typingx>=0.6.0"
21-
]
22-
23-
[project.optional-dependencies]
24-
dev = [
25-
"pytest>=8.3.4",
26-
"beartype",
27-
"mypy"
28-
]
29-
30-
[project.urls]
31-
homepage = "http://www.geosiris.com"
3211
repository = "https://github.com/geosiris-technologies/etptypes-python"
33-
bug-tracker = "https://github.com/geosiris-technologies/etptypes-python/issues"
34-
35-
[project.scripts]
36-
etp-cli = "etptypes.cli:main"
37-
38-
[tool.setuptools]
39-
packages = ["etptypes"]
40-
41-
[tool.black]
42-
line-length = 88
43-
target-version = ['py39', 'py310', 'py311']
12+
homepage = "http://www.geosiris.com"
13+
classifiers = [
14+
"Intended Audience :: Information Technology",
15+
"Intended Audience :: System Administrators",
16+
"Operating System :: OS Independent",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python",
19+
"Topic :: Internet",
20+
"Topic :: Software Development :: Libraries :: Application Frameworks",
21+
"Topic :: Software Development :: Libraries :: Python Modules",
22+
"Topic :: Software Development :: Libraries",
23+
"Topic :: Software Development",
24+
"Typing :: Typed",
25+
"Development Status :: 4 - Beta",
26+
"Environment :: Web Environment",
27+
"Intended Audience :: Developers",
28+
"License :: OSI Approved :: Apache Software License",
29+
"Programming Language :: Python :: 3 :: Only",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Topic :: Internet :: WWW/HTTP",
35+
]
36+
keywords = ["ETP"]
4437

45-
[tool.pytest.ini_options]
46-
addopts = "--strict-markers"
47-
testpaths = ["tests"]
38+
[tool.poetry.dependencies]
39+
python = "^3.9, <4.0"
40+
pydantic = "<2.0.0"
41+
typingx = "^0.6.0"
4842

49-
[tool.mypy]
50-
strict = true
43+
[build-system]
44+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
45+
build-backend = "poetry_dynamic_versioning.backend"
46+
47+
[tool.poetry-dynamic-versioning]
48+
enable = true
49+
vcs = "git"
50+
style = "pep440"
51+
format-jinja = """
52+
{%- if distance == 0 -%}
53+
{{ serialize_pep440(base, stage, revision) }}
54+
{%- elif revision is not none -%}
55+
{{ serialize_pep440(base, stage, revision + 1, dev=distance) }}
56+
{%- else -%}
57+
{{ serialize_pep440(bump_version(base), stage, revision, dev=distance) }}
58+
{%- endif -%}
59+
"""

0 commit comments

Comments
 (0)