Skip to content

Commit 46298e3

Browse files
author
Alejandro Gómez
committed
Remove hardcoded version numbers
1 parent 3060cf1 commit 46298e3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = '1.7'
51+
sys.path.insert(0, '..')
52+
from tweepy import __version__
53+
54+
version = __version__
5255
# The full version, including alpha/beta/rc tags.
53-
release = '1.7'
56+
release = __version__
5457

5558
# The language for content autogenerated by Sphinx. Refer to documentation
5659
# for a list of supported languages.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env python
22
#from distutils.core import setup
33
from setuptools import setup, find_packages
4+
from tweepy import __version__
45

56
setup(name="tweepy",
6-
version="1.9",
7+
version=__version__,
78
description="Twitter library for python",
89
license="MIT",
910
author="Joshua Roesslein",

0 commit comments

Comments
 (0)