From 2acd7e9e1223672687a5c628407fc8528f64246a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 5 Aug 2013 17:14:16 +0200 Subject: Move version into its own file so that setuptools machinery isn't necessary to elicit the version. --HG-- extra : rebase_source : 1611131e6765a30fd0fe94d8455418ccd3ae46ae --- release.py | 2 +- setuptools/__init__.py | 2 +- setuptools/version.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 setuptools/version.py diff --git a/release.py b/release.py index da8ee859..c2b331c7 100644 --- a/release.py +++ b/release.py @@ -16,7 +16,7 @@ def before_upload(): _add_bootstrap_bookmark() files_with_versions = ( - 'ez_setup.py', 'setuptools/__init__.py', + 'ez_setup.py', 'setuptools/version.py', ) test_info = "Travis-CI tests: http://travis-ci.org/#!/jaraco/setuptools" diff --git a/setuptools/__init__.py b/setuptools/__init__.py index 6dc64e5e..45b95f90 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -7,8 +7,8 @@ from distutils.core import Command as _Command from distutils.util import convert_path import os import sys +from setuptools.version import __version__ -__version__ = '0.9.9' __all__ = [ 'setup', 'Distribution', 'Feature', 'Command', 'Extension', 'Require', 'find_packages' diff --git a/setuptools/version.py b/setuptools/version.py new file mode 100644 index 00000000..1b1a934d --- /dev/null +++ b/setuptools/version.py @@ -0,0 +1 @@ +__version__ = '0.9.9' -- cgit v1.2.3