Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improved release versioning

  • Loading branch information...
commit 3f704ffe83db62d96bf2fa0c66f9d661f57bf5b3 1 parent 7386851
@earl authored
Showing with 9 additions and 1 deletion.
  1. +2 −0  beanstalkc.py
  2. +7 −1 setup.py
View
2  beanstalkc.py
@@ -17,6 +17,8 @@
limitations under the License.
'''
+__version__ = '0.1.1'
+
import socket
View
8 setup.py
@@ -1,8 +1,14 @@
#!/usr/bin/env python
+import os
from setuptools import setup
+from beanstalkc import __version__ as version
+
+git_version = os.popen('git describe --tags --abbrev=6').read().strip()[7:]
+pkg_version = version if not git_version else version + '.dev' + git_version
+
setup(
name='beanstalkc',
- version='0.1.0',
+ version=pkg_version,
py_modules=['beanstalkc'],
author='Andreas Bolka',
Please sign in to comment.
Something went wrong with that request. Please try again.