aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-07-13 20:44:13 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-07-13 20:44:13 -0400
commit0cb9cd7aaa256fc5e14900958250a8911afa08ba (patch)
tree19f59f0f8875d511ad8421afb2affc2187b30819
parent2de1c553de6472ce3e830b32fcbf39043321ba2a (diff)
downloadexternal_python_setuptools-0cb9cd7aaa256fc5e14900958250a8911afa08ba.tar.gz
external_python_setuptools-0cb9cd7aaa256fc5e14900958250a8911afa08ba.tar.bz2
external_python_setuptools-0cb9cd7aaa256fc5e14900958250a8911afa08ba.zip
setup.py now loads the version from setuptools/__init__.py, limiting the places where release.py must keep in sync.
-rw-r--r--release.py2
-rwxr-xr-xsetup.py9
2 files changed, 5 insertions, 6 deletions
diff --git a/release.py b/release.py
index 5dae8cea..34b250b2 100644
--- a/release.py
+++ b/release.py
@@ -16,7 +16,7 @@ def before_upload():
_linkify('CHANGES.txt', 'CHANGES (linked).txt')
files_with_versions = (
- 'docs/conf.py', 'setup.py', 'ez_setup.py', 'setuptools/__init__.py',
+ 'docs/conf.py', 'ez_setup.py', 'setuptools/__init__.py',
)
test_info = "Travis-CI tests: http://travis-ci.org/#!/jaraco/setuptools"
diff --git a/setup.py b/setup.py
index 14c39959..b6bb7e52 100755
--- a/setup.py
+++ b/setup.py
@@ -18,9 +18,8 @@ exec(init_file.read(), d)
init_file.close()
SETUP_COMMANDS = d['__all__']
-VERSION = "0.9.1"
-from setuptools import setup, find_packages
+import setuptools
from setuptools.command.build_py import build_py as _build_py
from setuptools.command.test import test as _test
@@ -94,7 +93,7 @@ if sys.platform == 'win32' or os.environ.get("SETUPTOOLS_INSTALL_WINDOWS_SPECIFI
setup_params = dict(
name="setuptools",
- version=VERSION,
+ version=setuptools.__version__,
description="Easily download, build, install, upgrade, and uninstall "
"Python packages",
author="The fellowship of the packaging",
@@ -105,7 +104,7 @@ setup_params = dict(
url = "https://pypi.python.org/pypi/setuptools",
test_suite = 'setuptools.tests',
src_root = src_root,
- packages = find_packages(),
+ packages = setuptools.find_packages(),
package_data = package_data,
py_modules = ['pkg_resources', 'easy_install'],
@@ -196,4 +195,4 @@ setup_params = dict(
)
if __name__ == '__main__':
- dist = setup(**setup_params)
+ dist = setuptools.setup(**setup_params)