Skip to content

Commit

Permalink
Use versioneer
Browse files Browse the repository at this point in the history
  • Loading branch information
svaberg committed Sep 29, 2022
1 parent c2f1ec3 commit f67eb8e
Show file tree
Hide file tree
Showing 5 changed files with 673 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
starwinds_magnetogram/_version.py export-subst
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ test =
psutil
pytest-cov
codacy-coverage

[versioneer]
VCS = git
style = pep440
versionfile_source = starwinds_magnetogram/_version.py
versionfile_build = starwinds_magnetogram/_version.py
tag_prefix = v
parentdir_prefix = starwinds-magnetogram-
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from setuptools import setup
setup()
import versioneer

setup(version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass())
3 changes: 3 additions & 0 deletions starwinds_magnetogram/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit f67eb8e

Please sign in to comment.