Skip to content

Commit

Permalink
Use setuptools_scm for tag based versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ohjeah committed Jan 16, 2020
1 parent f84af35 commit ee839b7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ref-names: $Format:%D$
8 changes: 8 additions & 0 deletions pysindy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
from pkg_resources import get_distribution, DistributionNotFound

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
pass


from pysindy.pysindy import SINDy
from pysindy.differentiation import *
from pysindy.optimizers import *
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ pytest-lazy-fixture
pytest-flake8
flake8-builtins-unleashed
codecov
pre-commit
setuptools_scm
setuptools_scm_git_archive
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@

setup(
name=NAME,
version="0.0.1",
use_scm_version=True,
setup_requires=["setuptools_scm", "setuptools_scm_git_archive"],
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
Expand Down

0 comments on commit ee839b7

Please sign in to comment.