aboutsummaryrefslogblamecommitdiffstats
path: root/main/py3-py/0001-remove-setuptools_scm.patch
blob: 34a9728c32e8c61ce86c73bed9717d2a93808b83 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                
                             

              








                                            
                   
                                






                                                                                             
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'],