mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 01:36:17 +00:00
newer towncrier works with py2.7
This commit is contained in:
parent
972f6eb835
commit
c731473d9e
@ -1,8 +1,6 @@
|
||||
[tool.towncrier]
|
||||
# towncrier requires python3.5+ but Tahoe-LAFS doesn't support that
|
||||
# so we can't import it -- must specify --version to towncrier
|
||||
# package = "allmydata"
|
||||
# package_dir = "src"
|
||||
package_dir = "src"
|
||||
package = "allmydata"
|
||||
filename = "NEWS.rst"
|
||||
directory = "newsfragments"
|
||||
start_string = ".. towncrier start line"
|
||||
|
9
tox.ini
9
tox.ini
@ -68,7 +68,6 @@ commands =
|
||||
python -m towncrier.check
|
||||
|
||||
[testenv:draftnews]
|
||||
basepython=python3.6
|
||||
passenv = TAHOE_LAFS_* PIP_* SUBUNITREPORTER_* USERPROFILE HOMEDRIVE HOMEPATH
|
||||
# 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
|
||||
@ -79,8 +78,7 @@ passenv = TAHOE_LAFS_* PIP_* SUBUNITREPORTER_* USERPROFILE HOMEDRIVE HOMEPATH
|
||||
whitelist_externals = mv
|
||||
deps =
|
||||
certifi
|
||||
towncrier
|
||||
skip_install = true
|
||||
towncrier >= 19.2
|
||||
commands =
|
||||
# With pip >= 10 the existence of pyproject.toml (which we are
|
||||
# required to have to configure towncrier) triggers a "build
|
||||
@ -93,9 +91,8 @@ commands =
|
||||
# https://github.com/pypa/pip/issues/5696
|
||||
mv towncrier.pyproject.toml pyproject.toml
|
||||
|
||||
# this burns in another copy of the version -- but we can't
|
||||
# import tahoe until it supports python3.5+
|
||||
python -m towncrier --draft --version 1.14.0
|
||||
# towncrier 19.2 + works with python2.7
|
||||
python -m towncrier --draft
|
||||
|
||||
# put it back
|
||||
mv pyproject.toml towncrier.pyproject.toml
|
||||
|
Loading…
x
Reference in New Issue
Block a user