summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #79 from stephenfin/readme-tweaksHEADmasterJelmer Vernooij2023-03-311-8/+10
|\ | | | | README: Use actual admonitions
| * README: Use actual admonitionsStephen Finucane2023-03-311-8/+10
|/ | | | | | I forgot I was editing reStructuredText, not markdown /o\ Signed-off-by: Stephen Finucane <stephen@that.guru>
* Merge pull request #76 from stephenfin/readme-improvementsJelmer Vernooij2023-03-312-142/+198
|\ | | | | README tweaks
| * README: Document missing fixturesStephen Finucane2023-03-311-0/+48
| | | | | | | | Signed-off-by: Stephen Finucane <stephen@that.guru>
| * README: Trivial fixesStephen Finucane2023-03-312-142/+150
| | | | | | | | | | | | | | - Ensure code is formatted as such - Correct some typos Signed-off-by: Stephen Finucane <stephen@that.guru>
* | Merge pull request #78 from stephenfin/ci-tweaksJelmer Vernooij2023-03-311-13/+13
|\ \ | |/ |/| github: Update actions, switch to 3.11 by default
| * github: Update actions, switch to 3.11 by defaultStephen Finucane2023-03-311-13/+13
|/ | | | Signed-off-by: Stephen Finucane <stephen@that.guru>
* Merge pull request #50 from stephenfin/warnings-filterJelmer Vernooij2022-10-196-5/+117
|\ | | | | Add WarningsFilter fixture
| * Update tox.iniJelmer Vernooij2022-10-191-1/+1
| |
| * Add WarningsFilter fixtureStephen Finucane2022-10-195-4/+116
| | | | | | | | | | | | | | | | | | This has enough users around OpenStack to justify adding it to 'fixtures' proper. It's intentionally dumb, since the main purpose of this is to avoid people calling `resetwarnings` in their variant of the fixture, as that clears *all* filters including those we don't control. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | Merge pull request #75 from stephenfin/explore-testsJelmer Vernooij2022-10-194-18/+24
|\ \ | | | | | | Replace hardcoded list of tests
| * | tests: Replace hardcoded list of test modulesStephen Finucane2022-10-191-14/+7
| |/ | | | | | | | | | | Avoid this being an issue again the future. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
| * tests: Run 'warnings' testsStephen Finucane2022-10-194-5/+18
|/ | | | | | | | These were never added to the list of filtered modules, meaning they never actually ran. Correct that and fix the failures, which were caused by DeprecationWarning being disabled by default in Python 3.2 onwards. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Don't explicitly build-require wheelJelmer Vernooij2022-10-191-1/+1
| | | | See https://github.com/pypa/setuptools/commit/f7d30a9529378cf69054b5176249e5457aaf640a
* Merge pull request #73 from stephenfin/drop-python36Jelmer Vernooij2022-07-205-5/+7
|\ | | | | Drop support for Python 3.6
| * Drop support for Python 3.6Stephen Finucane2022-07-205-5/+7
|/ | | | | | It's EOL Signed-off-by: Stephen Finucane <stephen@that.guru>
* Merge pull request #71 from cjwatson/release-4.0.14.0.1Jelmer Vernooij2022-07-011-0/+3
|\ | | | | Release 4.0.1
| * Release 4.0.1Colin Watson2022-06-011-0/+3
|/
* Merge pull request #70 from cjwatson/remove-testtools-from-requirements.txtColin Watson2022-06-012-1/+3
|\ | | | | Remove testtools from requirements.txt as well
| * Remove testtools from requirements.txt as wellColin Watson2022-06-012-1/+3
|/
* github: Add all pypy3 versions to test matrixMichał Górny2022-05-221-1/+1
|
* github: Add Python 3.11 betas to test matrixMichał Górny2022-05-221-1/+1
|
* tox: Add py311Michał Górny2022-05-221-1/+1
|
* Support Popen's process_group argument from Python 3.11Michał Górny2022-05-222-2/+21
|
* Update classmethod expectations (again) for Python 3.11Michał Górny2022-05-221-1/+2
| | | | | | | It seems that the classmethod behavior in Python 3.11.0b1 is back to the one found in Python 3.8. Adjust the test expectations again. This time around, we expect the "old-new" behavior in CPython 3.9 and 3.10 only.
* Merge pull request #65 from mgorny/pypy3Colin Watson2022-04-281-3/+6
|\ | | | | Revert to the previous classmethod expectations for PyPy3.9
| * Revert to the previous classmethod expectations for PyPy3.9Michał Górny2022-04-281-3/+6
|/ | | | | | | | Commit fe83067 has changed TestMonkeyPatch to account for changes in classmethod handling in CPython 3.9. Unfortunately, this broke the tests on PyPy3.9. Revert to the old expectations when using PyPy. Fixes #64
* Merge pull request #63 from cjwatson/release-4.0.04.0.0Colin Watson2022-04-251-1/+19
|\ | | | | Release 4.0.0
| * Release 4.0.0Colin Watson2022-04-251-0/+3
| |
| * Document more changes since 3.0.0Colin Watson2022-04-251-1/+16
|/
* Merge pull request #62 from cjwatson/move-testtools-to-extraColin Watson2022-04-256-13/+27
|\ | | | | Move testtools requirement to a "streams" extra
| * Document change in NEWSColin Watson2022-04-251-0/+1
| |
| * Mention extra in another place in READMEColin Watson2022-04-251-0/+2
| |
| * Move testtools requirement to a "streams" extraColin Watson2022-04-233-3/+13
| | | | | | | | | | | | | | | | | | | | Now that the core of `fixtures` no longer uses `testtools`, all that remains to make it optional and break the cyclic requirement is to deal with its use by streams fixtures. These intrinsically rely on `testtools`, but are also very much optional, so move the requirement to a new `fixtures[streams]` extra. Fixes #38.
| * Stop using testtools.helpers.try_importColin Watson2022-04-232-10/+11
|/ | | | | It's only barely more complex to just write out the `try`/`except` directly.
* tests: Validate function signature of FakePopenStephen Finucane2022-02-111-2/+48
| | | | | | Make sure we maintain compatibility as subprocess.Popen changes. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Support all Popen arguments up to Python 3.10Colin Watson2022-02-093-17/+71
| | | | Fixes #53.
* Failing test for compatibility problem with Python 3.7Jürgen Gmach2022-02-091-0/+14
|
* Merge pull request #57 from stephenfin/modern-requirementsColin Watson2022-02-094-10/+11
|\ | | | | Update requirements
| * Stop using 'make' to run testsStephen Finucane2022-02-082-5/+5
| | | | | | | | | | | | tox can run the command directly. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
| * tox: Install extras properlyStephen Finucane2022-02-081-2/+3
| | | | | | | | | | | | | | | | The disabling of sdists and circular dependency with testtools seemed to result in us dragging in fixtures from PyPI rather than using the local source. Address this by building the sdist locally. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
| * requirements: Sync pbr versionsStephen Finucane2022-02-082-2/+2
| | | | | | | | | | | | | | | | Our pyproject.yaml file states that pbr 5.7.0 is required, since this was the first version to provide a PEP-517 compliant interface. Sync this requirement elsewhere. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
| * requirements: Bump testtools minimumStephen Finucane2022-02-081-1/+1
|/ | | | | | | Earlier versions of testtools had a dependency on unittest2, which is not compatible with Python 3.10. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Clone entire repo for CIStephen Finucane2022-02-081-0/+2
| | | | | | | | | | | The "Checkout" action defaults to a shallow clone, checking out a HEAD. This borks pbr (and likely similar packages like 'setuptools_scm') since they don't have the full history to build a version number from. Fix this by configuring the 'fetch_depth' setting [1]. [1] https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Fix MockPatchMultiple.DEFAULTColin Watson2022-02-081-2/+12
| | | | | | | | | | | | | | The change in #52 broke `TestMockMultiple.test_mock_patch_without_replacement`, since `MockPatchMultiple.DEFAULT` no longer worked as a class property. Fix this using a metaclass. For compatibility, I arranged for it to also work as an instance property; I suspect this isn't much needed since `MockPatchMultiple.DEFAULT` is normally used as an argument to the `MockPatchMultiple` constructor so you wouldn't normally have an instance in hand, but it's easy enough to provide strict compatibility here.
* Merge pull request #56 from cjwatson/py310Colin Watson2022-02-064-8/+9
|\ | | | | Add support for Python 3.10
| * Fix YAML type confusionColin Watson2022-02-051-3/+3
| |
| * Add support for Python 3.10Colin Watson2022-02-054-8/+9
|/
* Merge pull request #51 from stephenfin/github-actionsJelmer Vernooij2022-01-287-30/+82
|\ | | | | Migrate from Travis to GitHub Actions
| * Add GitHub Action workflowStephen Finucane2022-01-282-21/+68
| | | | | | | | | | | | | | Travis CI now requires that we apply for OSS credits. The CI tool used doesn't really matter so long as it works, so switch to GitHub Actions. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>