Skip to content
Browse files

updated setup.py

  • Loading branch information...
1 parent d2d2548 commit 4bed3157dcd819d19037dc13e6bf1cedcdd0bacd @paltman paltman committed
Showing with 8 additions and 4 deletions.
  1. +2 −1 kaleo/__init__.py
  2. +6 −3 setup.py
View
3 kaleo/__init__.py
@@ -1 +1,2 @@
-__version__ = "0.1.dev1"
+# following PEP 386, versiontools will pick it up
+__version__ = (0, 1, 0, "dev", 0)
View
9 setup.py
@@ -1,3 +1,4 @@
+import codecs
import os
import sys
@@ -7,7 +8,7 @@
def read(fname):
- return open(os.path.join(os.path.dirname(__file__), fname)).read()
+ return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read()
# Provided as an attribute, so you can append to these instead
@@ -108,12 +109,11 @@ def find_package_data(
AUTHOR = "Eldarion"
AUTHOR_EMAIL = "paltman@eldarion.com"
URL = "http://github.com/eldarion/kaleo"
-VERSION = __import__(PACKAGE).__version__
setup(
name=NAME,
- version=VERSION,
+ version=":versiontools:%s:" % PACKAGE,
description=DESCRIPTION,
long_description=read("README.rst"),
author=AUTHOR,
@@ -132,5 +132,8 @@ def find_package_data(
"Framework :: Django",
],
zip_safe=False,
+ setup_requires=[
+ "versiontools >= 1.6"
+ ]
)

0 comments on commit 4bed315

Please sign in to comment.
Something went wrong with that request. Please try again.