Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work on release through github actions #885

Merged
merged 2 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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