diff options
author | Donald Stufft <donald@stufft.io> | 2016-01-19 19:55:31 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2016-01-19 19:55:31 -0500 |
commit | 4ac44d2a1508e86d78e06fa158373e723f3b4dcb (patch) | |
tree | bdcd6e4b760bf325d4f079a8f4c1612927df4cf4 /setup.py | |
parent | 134c9a6c67081cda67befd61bae68a999ed00f48 (diff) | |
parent | 130399fdd13152d09e5cb133bf72abd95dc7e5b0 (diff) | |
download | virtualenv-14.0.0.tar.gz |
Merge branch 'develop'14.0.0
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 30 |
1 files changed, 24 insertions, 6 deletions
@@ -15,18 +15,17 @@ try: def initialize_options(self): TestCommand.initialize_options(self) - self.pytest_args = None + self.pytest_args = [] def finalize_options(self): TestCommand.finalize_options(self) - self.test_args = [] - self.test_suite = True + #self.test_args = [] + #self.test_suite = True def run_tests(self): # import here, because outside the eggs aren't loaded import pytest - errno = pytest.main(self.pytest_args) - sys.exit(errno) + sys.exit(pytest.main(self.pytest_args)) setup_params = { 'entry_points': { @@ -61,7 +60,24 @@ def read_file(*paths): long_description = read_file('docs', 'index.rst') long_description = long_description.strip().split('split here', 1)[0] # Add release history -long_description += "\n\n" + read_file('docs', 'changes.rst') +changes = read_file('docs', 'changes.rst') +# Only report last two releases for brevity +releases_found = 0 +change_lines = [] +for line in changes.splitlines(): + change_lines.append(line) + if line.startswith('--------------'): + releases_found += 1 + if releases_found > 2: + break + +changes = '\n'.join(change_lines[:-2]) + '\n' +changes += '`Full Changelog <https://virtualenv.pypa.io/en/latest/changes.html>`_.' +# Replace issue/pull directives +changes = re.sub(r':pull:`(\d+)`', r'PR #\1', changes) +changes = re.sub(r':issue:`(\d+)`', r'#\1', changes) + +long_description += '\n\n' + changes def get_version(): @@ -97,6 +113,8 @@ setup( 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', ], keywords='setuptools deployment installation distutils', author='Ian Bicking', |