Skip to content

Commit

Permalink
work on release through github actions (#885)
Browse files Browse the repository at this point in the history
* use scm for version
* local version override
  • Loading branch information
tschaume authored Nov 10, 2022
1 parent a0ae13d commit f4f450a
Show file tree
Hide file tree
Showing 2 changed files with 19 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
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

from setuptools import find_packages, setup


def local_version(version):
# https://github.com/pypa/setuptools_scm/issues/342
return ""


module_dir = os.path.dirname(os.path.abspath(__file__))

extras_require = {
Expand All @@ -22,7 +28,12 @@
if __name__ == "__main__":
setup(
name='matminer',
version='0.7.8',
use_scm_version={
"root": ".",
"relative_to": __file__,
"local_scheme": local_version,
},
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 f4f450a

Please sign in to comment.