Skip to content

Commit 79436da

Browse files
committed
make version dynamic
1 parent 68e79f8 commit 79436da

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ docs/_build
2222

2323
# cython build product
2424
*cpython*.so
25+
eof/_version.py

pyproject.toml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
[build-system]
2-
requires = ["setuptools>=64", "wheel"]
2+
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "sentineleof"
7-
version = "0.11.1"
87
authors = [{name = "Scott Staniewicz", email = "scott.stanie@gmail.com"}]
98
description = "Download precise orbit files for Sentinel 1 products"
9+
# The version will be written into a version.py upon install, auto-generated
10+
# see section: setuptools_scm
11+
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata
12+
dynamic = ["version"]
1013
readme = "README.md"
1114
license = {text = "MIT"}
1215
requires-python = ">=3.9"
@@ -32,3 +35,12 @@ Homepage = "https://github.com/scottstanie/sentineleof"
3235

3336
[project.scripts]
3437
eof = "eof.cli:cli"
38+
39+
[tool.setuptools]
40+
packages = ["eof"]
41+
42+
[tool.setuptools_scm]
43+
# https://github.com/pypa/setuptools_scm#configuration-parameters
44+
write_to = "eof/_version.py"
45+
# https://github.com/pypa/setuptools_scm#version-number-construction
46+
version_scheme = "no-guess-dev"

0 commit comments

Comments
 (0)