Skip to content

Commit 7186bf6

Browse files
dynamic versioning
1 parent 71d48f8 commit 7186bf6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
[project]
2626
name = "resource-catalogue-fastapi"
27-
version = "0.1.0"
27+
dynamic = ["version"]
2828
description = "A FastApi deployment to handle requests to update the resource catalogue"
2929
readme = "README.md"
3030

@@ -115,7 +115,7 @@ changelog = "CHANGEME-https://github.com/UKEODHP/.../master/CHANGELOG.md"
115115
[build-system]
116116
# These are the assumed default build requirements from pip:
117117
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
118-
requires = ["setuptools>=69.0.0", "wheel"]
118+
requires = ["setuptools>=69.0.0", "wheel", "setuptools-git-versioning>=2.0,<3"]
119119
build-backend = "setuptools.build_meta"
120120

121121
[tool.pytest.ini_options]
@@ -127,6 +127,9 @@ markers = [
127127
[tool.setuptools]
128128
packages = []
129129

130+
[tool.setuptools-git-versioning]
131+
enabled = true
132+
130133
[tool.black]
131134
line-length = 100
132135
target-version = ['py311']

tests/test_airbus_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from resource_catalogue_fastapi.airbus_client import AirbusClient
99

10-
1110
@pytest.fixture
1211
def airbus_client():
1312
return AirbusClient(airbus_env="test")

0 commit comments

Comments
 (0)