Browse files

Centralize version information

  • Loading branch information...
1 parent 4266e96 commit f58ad08ace286c6afdb9d6ff70c41ec994e08dff @DasIch committed Apr 4, 2013
Showing with 6 additions and 3 deletions.
  1. +4 −2 docs/conf.py
  2. +2 −1 setup.py
View
6 docs/conf.py
@@ -13,6 +13,8 @@
import sys, os
+import pwhash
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -50,9 +52,9 @@
# built documents.
#
# The short X.Y version.
-version = '0.1'
+version = ".".join(map(str, pwhash.__version_info__[:2]))
# The full version, including alpha/beta/rc tags.
-release = '0.1-dev'
+release = pwhash.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
View
3 setup.py
@@ -2,6 +2,7 @@
import sys
from setuptools import setup
+import pwhash
import pwhash.utils
import pwhash._openssl
@@ -25,7 +26,7 @@
setup(
name="pwhash",
- version="0.1-dev",
+ version=pwhash.__version__,
license="BSD",
author="Daniel Neuhäuser",
author_email="dasdasich@gmail.com",

0 comments on commit f58ad08

Please sign in to comment.