aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-05-13 07:07:03 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-05-13 07:07:03 -0400
commit8f05565451ef38cc10074582ad826941f8f8c899 (patch)
tree3b13af466ad891a3481fd420c63f612a7621b44e /setup.py
parenta0d19667eaa92bd95f2bebfcb50a68d0921282eb (diff)
parent068ab0e3a6e5146137ee9f913e3b1fbc5b337c22 (diff)
downloadexternal_python_setuptools-8f05565451ef38cc10074582ad826941f8f8c899.tar.gz
external_python_setuptools-8f05565451ef38cc10074582ad826941f8f8c899.tar.bz2
external_python_setuptools-8f05565451ef38cc10074582ad826941f8f8c899.zip
Merge with Distribute 0.6.39
--HG-- rename : distribute_setup.py => ez_setup.py
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py32
1 files changed, 10 insertions, 22 deletions
diff --git a/setup.py b/setup.py
index 6cd15f25..dd31f13a 100755
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ exec(init_file.read(), d)
init_file.close()
SETUP_COMMANDS = d['__all__']
-VERSION = "0.6.36"
+VERSION = "0.6.40"
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py as _build_py
@@ -107,28 +107,16 @@ class test(_test):
f.close()
-# return contents of reStructureText file with linked issue references
-def _linkified(rst_path):
- bitroot = 'http://bitbucket.org/tarek/distribute'
- revision = re.compile(r'\b(issue\s+#?\d+)\b', re.M | re.I)
-
- rst_file = open(rst_path)
- rst_content = rst_file.read()
- rst_file.close()
-
- anchors = revision.findall(rst_content) # ['Issue #43', ...]
- anchors = sorted(set(anchors))
- rst_content = revision.sub(r'`\1`_', rst_content)
- rst_content += "\n"
- for x in anchors:
- issue = re.findall(r'\d+', x)[0]
- rst_content += '.. _`%s`: %s/issue/%s\n' % (x, bitroot, issue)
- rst_content += "\n"
- return rst_content
-
readme_file = open('README.txt')
-long_description = readme_file.read() + _linkified('CHANGES.txt')
+# the release script adds hyperlinks to issues
+if os.path.exists('CHANGES (links).txt'):
+ changes_file = open('CHANGES (links).txt')
+else:
+ # but if the release script has not run, fall back to the source file
+ changes_file = open('CHANGES.txt')
+long_description = readme_file.read() + changes_file.read()
readme_file.close()
+changes_file.close()
dist = setup(
name="setuptools",
@@ -144,7 +132,7 @@ dist = setup(
test_suite = 'setuptools.tests',
src_root = src_root,
packages = find_packages(),
- package_data = {'setuptools':['*.exe']},
+ package_data = {'setuptools':['*.exe'], 'setuptools.command':['*.xml']},
py_modules = ['pkg_resources', 'easy_install', 'site'],