From 887a9204b79b0b37cf9a14093aa5d020efaef3cb Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Thu, 10 Nov 2022 14:12:08 -0800 Subject: [PATCH] local version override --- setup.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 60d8d0a46..87c623e5f 100644 --- a/setup.py +++ b/setup.py @@ -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 = { @@ -22,7 +28,11 @@ if __name__ == "__main__": setup( name='matminer', - use_scm_version=True, + 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',