summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index caad6496..f7be0567 100755
--- a/setup.py
+++ b/setup.py
@@ -90,17 +90,18 @@ class test(_test):
readme_file = io.open('README.txt', encoding='utf-8')
-# 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')
+# The release script adds hyperlinks to issues,
+# but if the release script has not run, fall back to the source file
+changes_names = 'CHANGES (links).txt', 'CHANGES.txt'
+changes_fn = next(iter(filter(os.path.exists, changes_names)))
+changes_file = io.open(changes_fn, encoding='utf-8')
+
with readme_file:
with changes_file:
long_description = readme_file.read() + '\n' + changes_file.read()
-package_data = {'setuptools': ['site-patch.py']}
+package_data = {
+ 'setuptools': ['script (dev).tmpl', 'script.tmpl', 'site-patch.py']}
force_windows_specific_files = (
os.environ.get("SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES")
not in (None, "", "0")
@@ -121,7 +122,7 @@ setup_params = dict(
license="PSF or ZPL",
long_description=long_description,
keywords="CPAN PyPI distutils eggs package management",
- url="https://pypi.python.org/pypi/setuptools",
+ url="https://bitbucket.org/pypa/setuptools",
test_suite='setuptools.tests',
src_root=src_root,
packages=setuptools.find_packages(),