summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorptaneli <31743851+ptaneli@users.noreply.github.com>2018-12-24 11:55:22 +0000
committerBernát Gábor <gaborjbernat@gmail.com>2018-12-24 13:55:22 +0200
commite8d82ce7499178afba14e425dc944e8364b7e690 (patch)
tree1f085401b376ccba126a7cf7aa39bfbd56168924 /setup.py
parent971d341ce383420af342a8f9d531ce77242fda0e (diff)
downloadvirtualenv-boostrap.tar.gz
Move to news files for changelog via towncrier. (#1234)boostrap
Closes #1230. Co-Authored-By: Sia Agarwal <44545228+thisissia@users.noreply.github.com> Co-Authored-By: Deniz Taneli <7292227+dtaneli@users.noreply.github.com>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py22
1 files changed, 2 insertions, 20 deletions
diff --git a/setup.py b/setup.py
index f293396..d543d66 100644
--- a/setup.py
+++ b/setup.py
@@ -52,25 +52,7 @@ def read_file(*paths):
# Get long_description from index.rst:
long_description_full = read_file("docs", "index.rst")
long_description = long_description_full.strip().split("split here", 1)[0]
-# Add release history
-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
+long_description += "\n\n`Read the changelog here <https://virtualenv.pypa.io/en/latest/changes.html>`_."
def get_version():
@@ -128,7 +110,7 @@ setup(
'xonsh; python_version>="3.4"',
"six >= 1.10.0, < 2",
],
- "docs": ["sphinx >= 1.8.0, < 2"],
+ "docs": ["sphinx >= 1.8.0, < 2", "towncrier >= 18.5.0"],
},
**setup_params
)