diff options
author | Jelmer Vernooij <jelmer@jelmer.uk> | 2022-07-01 19:31:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 19:31:43 +0100 |
commit | dbada1efac5c89c996b2b1536f4b0c5fb227d000 (patch) | |
tree | 0b92268fa5d204a7b0bc8d1497a94268a568fd11 | |
parent | 621553dd73ff076c00aa80a1afcf87d4ab415981 (diff) | |
parent | 4cbf5cfc2c39571389f9f0da7f7a14f53a4d554e (diff) | |
download | testtools-dbada1efac5c89c996b2b1536f4b0c5fb227d000.tar.gz |
Merge pull request #327 from cjwatson/twisted-extra
Provide a ``testtools[twisted]`` extra
-rw-r--r-- | .github/workflows/test.yml | 4 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | README.rst | 3 | ||||
-rw-r--r-- | doc/twisted-support.rst | 3 | ||||
-rw-r--r-- | readthedocs-requirements.txt | 3 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
7 files changed, 13 insertions, 7 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67bcba9..6793d7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,8 +34,8 @@ jobs: run: | python3 -m pip install -U pip python3 -m pip install -U wheel setuptools - python3 -m pip install sphinx Twisted - python3 -m pip install ".[test]" + python3 -m pip install sphinx + python3 -m pip install ".[test,twisted]" - name: Tests run: | @@ -18,6 +18,9 @@ Improvements * Distutils integration is deprecated and will be removed in the next major version. +* Provide a ``testtools[twisted]`` extra documenting dependencies needed for + ``testtools.twistedsupport``. + 2.5.0 ~~~~~ @@ -47,7 +47,8 @@ tested on Linux and macOS. Optional Dependencies --------------------- -If you would like to use our Twisted support, then you will need Twisted. +If you would like to use our Twisted support, then you will need the +``testtools[twisted]`` extra. If you want to use ``fixtures`` then you can either install fixtures (e.g. from https://launchpad.net/python-fixtures or https://pypi.python.org/pypi/fixtures) diff --git a/doc/twisted-support.rst b/doc/twisted-support.rst index 3ec6d0f..6243592 100644 --- a/doc/twisted-support.rst +++ b/doc/twisted-support.rst @@ -3,7 +3,8 @@ Twisted support =============== -testtools provides support for testing Twisted code. +testtools provides support for testing Twisted code. Install the +``testtools[twisted]`` extra to use this. Matching Deferreds diff --git a/readthedocs-requirements.txt b/readthedocs-requirements.txt index e44982f..80bdb5c 100644 --- a/readthedocs-requirements.txt +++ b/readthedocs-requirements.txt @@ -6,5 +6,4 @@ # that it knows exactly what to install in order to render the full # documentation. -testtools[test] -Twisted +testtools[test,twisted] @@ -28,6 +28,8 @@ classifier = test = testscenarios testresources +twisted = + Twisted [files] packages = testtools @@ -6,8 +6,8 @@ minversion = 1.6 usedevelop = True deps = sphinx - Twisted extras = test + twisted commands = python -W once -m testtools.run testtools.tests.test_suite |