Skip to content

Commit

Permalink
Use setuptools_scm for __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 26, 2024
1 parent 5591c32 commit 79867a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,5 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

psrecord/_version.py
2 changes: 1 addition & 1 deletion psrecord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@

__all__ = ["main", "monitor"]

__version__ = "1.3.dev0"
from ._version import __version__
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[build-system]
requires = [
"setuptools>=61.2",
]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
version_file = "psrecord/_version.py"

[project]
name = "psrecord"
version = "1.3.dev0"
Expand Down

0 comments on commit 79867a6

Please sign in to comment.