File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed
Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,5 @@ __pycache__/
55.tox
66stagpy.egg-info /
77/build /
8- /stagpy /_version.py
98/stagpy_git /
109/uv.lock
Original file line number Diff line number Diff line change @@ -4,12 +4,15 @@ Releasing process
44This section is intended for maintainers of the project. It describes how new
55versions of StagPy are released on PyPI.
66
7- Version numbers are tracked with git tags thanks to ` setuptools_scm ` . Marking
8- a new version merely consists in tagging the ` HEAD ` of the ` master ` branch .
7+ The version number lives in ` pyproject.toml ` . Releases are tagged, with the
8+ annotations of the tag containing release notes .
99Please make sure to always provide a patch version number (i.e. use a version
1010number with * three* levels such as ` 1.0.0 ` instead of ` 1.0 ` ).
1111
1212``` sh title="shell"
13+ # edit version number in pyproject.toml
14+ git add pyproject.toml
15+ git commit -m " release vX.Y.Z"
1316git tag -a vX.Y.Z
1417git push --follow-tags
1518```
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" setuptools>=61" , " setuptools_scm[toml]>=7.1 " ]
2+ requires = [" setuptools>=61" ]
33build-backend = " setuptools.build_meta"
44
55[project ]
66name = " stagpy"
7- dynamic = [ " version " ]
7+ version = " 0.19.0 "
88description = " Tool for StagYY output files processing"
99readme = " README.md"
1010authors = [
@@ -48,9 +48,6 @@ namespaces = false
4848[tool .setuptools .package-data ]
4949stagpy = [" py.typed" , " _styles/stagpy-*.mplstyle" ]
5050
51- [tool .setuptools_scm ]
52- write_to = " stagpy/_version.py"
53-
5451[tool .pytest .ini_options ]
5552testpaths = [" tests" ]
5653python_files = [" test_*.py" ]
Original file line number Diff line number Diff line change 88to issue warnings normally and raise StagpyError.
99"""
1010
11- try :
12- from ._version import version as __version__
13- except ImportError :
14- __version__ = "unknown"
11+ from importlib .metadata import version
12+
13+ __version__ = version ("stagpy" )
You can’t perform that action at this time.
0 commit comments