Skip to content

Commit 2c51c29

Browse files
committed
introduce git tags for versioning
1 parent 39c2f4f commit 2c51c29

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ classifiers = [
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3 :: Only",
20-
"Programming Language :: Python :: 3.7",
21-
"Programming Language :: Python :: 3.8",
2220
"Programming Language :: Python :: 3.9",
2321
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
2423
"Topic :: Software Development :: Testing",
2524
]
26-
requires-python = ">=3.7"
25+
requires-python = ">=3.9"
2726
dependencies = [
2827
"dask",
2928
"distributed",
@@ -65,7 +64,7 @@ napari-stress = "napari_stress:napari.yaml"
6564
"User Support" = "https://github.com/campaslab/napari-stress/issues"
6665

6766
[build-system]
68-
requires = ["setuptools>=42.0.0", "wheel"]
67+
requires = ["setuptools>=42.0.0", "wheel", "setuptools_scm"]
6968
build-backend = "setuptools.build_meta"
7069

7170
[tool.setuptools]
@@ -77,12 +76,13 @@ where = ["src"]
7776
[tool.setuptools.package-data]
7877
"*" = ["*.yaml"]
7978

80-
[tool.setuptools.dynamic]
81-
version = {attr = "napari_stress.__version__"}
79+
[tool.setuptools_scm]
80+
write_to = "src/napari_stress/_version.py"
81+
fallback_version = "0.0.1+nogit"
8282

8383
[tool.black]
8484
line-length = 79
85-
target-version = ['py37', 'py38', 'py39', 'py310']
85+
target-version = ['py39', 'py310', 'py311']
8686

8787
[tool.ruff]
8888
line-length = 79
@@ -127,5 +127,5 @@ exclude = [
127127
"*_vendor*",
128128
]
129129

130-
target-version = "py37"
130+
target-version = "py311"
131131
fix = true

src/napari_stress/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
__version__ = "0.3.9"
2-
31
from . import _approximation as approximation
42
from . import _measurements as measurements
53
from . import _plotting as plotting

0 commit comments

Comments
 (0)