From 0722ea12ef3e5b298c16782c23dc925cd4117712 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 23 Jul 2018 16:12:07 -0300 Subject: [PATCH] Use a tox environment to update the release files --- HOWTORELEASE.rst | 8 ++++---- dev-requirements.txt | 1 - tox.ini | 13 ++++++++++++- 3 files changed, 16 insertions(+), 6 deletions(-) delete mode 100644 dev-requirements.txt diff --git a/HOWTORELEASE.rst b/HOWTORELEASE.rst index 270b18a..078c35b 100644 --- a/HOWTORELEASE.rst +++ b/HOWTORELEASE.rst @@ -24,13 +24,13 @@ To publish a new release ``X.Y.Z``, the steps are as follows: #. Create a new branch named ``release-X.Y.Z`` from the latest ``master``. -#. Install ``pytest-xdist`` and dev requirements in a virtualenv:: +#. Install ``tox`` in a virtualenv:: - $ pip install -e . -U -r dev-requirements.txt + $ pip install tox -#. Update ``CHANGELOG.rst`` file by running:: +#. Update the necessary files with:: - $ towncrier --version X.Y.Z --yes + $ tox -e release -- X.Y.Z #. Commit and push the branch for review. diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index 0d2d2d7..0000000 --- a/dev-requirements.txt +++ /dev/null @@ -1 +0,0 @@ -towncrier diff --git a/tox.ini b/tox.ini index 0b69ad7..8bda1c2 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,18 @@ deps = readme skip_install = true commands = python setup.py check -r -s +[testenv:release] +changedir= +decription = do a release, required posarg of the version number +basepython = python3.6 +skipsdist = True +usedevelop = True +passenv = * +deps = + towncrier +commands = + towncrier --version {posargs} --yes [pytest] addopts = -rsfxX -;; hello +