Browse Source

Using bumpversion for versioning.

Nikola Kotur 10 years ago
parent
commit
29ba4ba683
3 changed files with 11 additions and 1 deletions
  1. 6 0
      .bumpversion.cfg
  2. 2 0
      reddrip/__init__.py
  3. 3 1
      setup.py

+ 6 - 0
.bumpversion.cfg

@@ -0,0 +1,6 @@
+[bumpversion]
+current_version = 1.1.0
+files = setup.py reddrip/__init__.py
+commit = True
+tag = True
+tag_name = "v{new_version}"

+ 2 - 0
reddrip/__init__.py

@@ -1,5 +1,7 @@
 import sys
 
+__VERSION__ = "1.1.0"
+
 if __name__ == "__main__":
     print "Hi."
     sys.exit(0)

+ 3 - 1
setup.py

@@ -20,12 +20,14 @@
 import os
 from setuptools import setup, find_packages
 
+__VERSION__ = "1.1.0"
+
 root_dir = os.path.abspath(os.path.dirname(__file__))
 with open(os.path.join(root_dir, "README.md")) as f:
     README = f.read()
 
 setup(name="reddrip",
-    version="1.1",
+    version=__VERSION__,
     description="Reddrip is Reddit subreddit picture ripper.",
     long_description=README,
     keywords="reddit crawler",