Browse Source

setup: use setuptools_scm to automatically keep package version in sync with git tag

Fabian Peter Hammerle 5 years ago
parent
commit
9bc59358c1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      setup.py

+ 4 - 1
setup.py

@@ -2,7 +2,7 @@ from setuptools import setup
 
 setup(
     name='pyftpd-sink',
-    version='0.3',
+    use_scm_version=True,
     # description='',
     author='Fabian Peter Hammerle',
     author_email='fabian@hammerle.me',
@@ -31,5 +31,8 @@ setup(
     install_requires=[
         'pyftpdlib>=1.5.4',
     ],
+    setup_requires=[
+        'setuptools_scm',
+    ],
     tests_require=[],
 )