newer towncrier works with py2.7

This commit is contained in:
meejah 2019-04-09 15:33:55 -06:00
parent 972f6eb835
commit c731473d9e
2 changed files with 5 additions and 10 deletions

View File

@ -1,8 +1,6 @@
[tool.towncrier] [tool.towncrier]
# towncrier requires python3.5+ but Tahoe-LAFS doesn't support that package_dir = "src"
# so we can't import it -- must specify --version to towncrier package = "allmydata"
# package = "allmydata"
# package_dir = "src"
filename = "NEWS.rst" filename = "NEWS.rst"
directory = "newsfragments" directory = "newsfragments"
start_string = ".. towncrier start line" start_string = ".. towncrier start line"

View File

@ -68,7 +68,6 @@ commands =
python -m towncrier.check python -m towncrier.check
[testenv:draftnews] [testenv:draftnews]
basepython=python3.6
passenv = TAHOE_LAFS_* PIP_* SUBUNITREPORTER_* USERPROFILE HOMEDRIVE HOMEPATH passenv = TAHOE_LAFS_* PIP_* SUBUNITREPORTER_* USERPROFILE HOMEDRIVE HOMEPATH
# Get "certifi" to avoid bug #2913. Basically if a `setup_requires=...` causes # Get "certifi" to avoid bug #2913. Basically if a `setup_requires=...` causes
# a package to be installed (with setuptools) then it'll fail on certain # a package to be installed (with setuptools) then it'll fail on certain
@ -79,8 +78,7 @@ passenv = TAHOE_LAFS_* PIP_* SUBUNITREPORTER_* USERPROFILE HOMEDRIVE HOMEPATH
whitelist_externals = mv whitelist_externals = mv
deps = deps =
certifi certifi
towncrier towncrier >= 19.2
skip_install = true
commands = commands =
# With pip >= 10 the existence of pyproject.toml (which we are # With pip >= 10 the existence of pyproject.toml (which we are
# required to have to configure towncrier) triggers a "build # required to have to configure towncrier) triggers a "build
@ -93,9 +91,8 @@ commands =
# https://github.com/pypa/pip/issues/5696 # https://github.com/pypa/pip/issues/5696
mv towncrier.pyproject.toml pyproject.toml mv towncrier.pyproject.toml pyproject.toml
# this burns in another copy of the version -- but we can't # towncrier 19.2 + works with python2.7
# import tahoe until it supports python3.5+ python -m towncrier --draft
python -m towncrier --draft --version 1.14.0
# put it back # put it back
mv pyproject.toml towncrier.pyproject.toml mv pyproject.toml towncrier.pyproject.toml