diff --git a/setup.py b/setup.py index d097daa..672c6d4 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,15 @@ from setuptools import setup, find_packages +ver = {} +with open("py/_version.py") as f: + exec(f.read(), ver) def main(): setup( name='py', + version=ver['version'], description='library with cross-python path, ini-parsing, io, code, log facilities', long_description=open('README.rst').read(), - use_scm_version={"write_to": "py/_version.py"}, - setup_requires=["setuptools-scm"], url='https://py.readthedocs.io/', license='MIT license', platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],