From 46298e31e192141f8061f948b19e28cc215f971a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20G=C3=B3mez?= Date: Wed, 5 Sep 2012 18:32:32 +0200 Subject: [PATCH] Remove hardcoded version numbers --- docs/conf.py | 7 +++++-- setup.py | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index adbcdc0..ee9ff78 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,9 +48,12 @@ copyright = u'2011, Joshua Roesslein' # built documents. # # The short X.Y version. -version = '1.7' +sys.path.insert(0, '..') +from tweepy import __version__ + +version = __version__ # The full version, including alpha/beta/rc tags. -release = '1.7' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index edd4e3e..0f99cb5 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ #!/usr/bin/env python #from distutils.core import setup from setuptools import setup, find_packages +from tweepy import __version__ setup(name="tweepy", - version="1.9", + version=__version__, description="Twitter library for python", license="MIT", author="Joshua Roesslein", -- 2.25.1