Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #78 from markotibold/526dc859810c9f770e28da763c93c…

…57a189ee3a7

This change makes pushing to pypi much simpler.
  • Loading branch information...
commit d342cc67103ba16fd116a28f5f1365208f51618a 2 parents bfe39db + 526dc85
@dbunskoek dbunskoek authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 setup.py
View
13 setup.py
@@ -1,8 +1,19 @@
+import os
+import sys
from setuptools import setup, find_packages
+version = __import__('fiber').__version__
+
+if sys.argv[-1] == 'publish': # upload to pypi
+ os.system("python setup.py register sdist upload")
+ print "You probably want to also tag the version now:"
+ print " git tag -a %s -m 'version %s'" % (version, version)
+ print " git push --tags"
+ sys.exit()
+
setup(
name='django-fiber',
- version=__import__('fiber').__version__,
+ version=version,
license='Apache License, Version 2.0',
install_requires=[
Please sign in to comment.
Something went wrong with that request. Please try again.