Skip to content

Commit

Permalink
use scm for version
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Nov 10, 2022
1 parent 34c569e commit a31bf6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion matminer/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
__version__ = "0.7.8"
from pkg_resources import DistributionNotFound, get_distribution

try:
__version__ = get_distribution("matminer").version
except DistributionNotFound: # pragma: no cover
# package is not installed
pass
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
if __name__ == "__main__":
setup(
name='matminer',
version='0.7.8',
use_scm_version=True,
setup_requires=["setuptools_scm"],
description='matminer is a library that contains tools for data '
'mining in Materials Science',
long_description=open(os.path.join(module_dir, 'README.md')).read(),
Expand Down

0 comments on commit a31bf6c

Please sign in to comment.