Skip to content

Drop old Python versions and add Python 3.13 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
Expand Down
58 changes: 58 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

--------------
Changelog
--------------

UNRELEASED
++++++++++

* Dropped support for EOL Python versions and added support for Python 3.13.

v1.1.1 (2024-01-20)
+++++++++++++++++++

* Fixes #54 - ``AttributeError`` when cacheprovider plugin disabled. Thanks @jhanm12


v1.1.0 (2022-12-03)
+++++++++++++++++++

* Fixes xdist support (thanks @matejsp)


v1.0.4 (2018-11-30)
+++++++++++++++++++

* Fixes issues with doctests reported in #36 - ``class``, ``package`` and ``module`` didn't work
because ``DoctestItem`` doesn't have ``cls`` or ``module`` attributes. Thanks @tobywf.
* Deprecate ``none`` bucket type. **Update**: this was a mistake, it will be kept for backwards compatibility.
* With tox, run tests of pytest-random-order with both pytest 3 and 4.

v1.0.3 (2018-11-16)
+++++++++++++++++++

* Fixes compatibility issues with pytest 4.0.0, works with pytest 3.0+ as before.
* Tests included in the source distribution.

v1.0.0 (2018-10-20)
+++++++++++++++++++

* Plugin no longer alters the test order by default. You will have to either 1) pass ``--random-order``,
or ``--random-order-bucket=<bucket>``, or ``--random-order-seed=<seed>``, or
2) edit your pytest configuration file and add one of these options
there under ``addopts``, or 3) specify these flags in environment variable ``PYTEST_ADDOPTS``.
* Python 3.5+ is required. If you want to use this plugin with Python 2.7, use v0.8.0 which is stable and fine
if you are happy with it randomising the test order by default.
* The name under which the plugin registers itself is changed from ``random-order`` (hyphen) to ``random_order``
(underscore). This addresses the issue of consistency when disabling or enabling this plugin via the standard
``-p`` flag. Previously, the plugin could be disabled by passing ``-p no:random-order`` yet re-enabled
only by passing ``-p pytest_random_order.plugin``. Now they are ``-p no:random_order``
to disable and ``-p random_order.plugin`` to enable (The ``.plugin`` bit, I think, is required because
pytest probably thinks it's an unrelated thing to ``random_order`` and import it, yet without it it's the
same thing so doesn't import it).


v0.8.0
++++++

* pytest cache plugin's ``--failed-first`` works now.
52 changes: 0 additions & 52 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,58 +228,6 @@ pass undeservedly, you can disable it:
Note that randomisation is disabled by default. By passing ``-p no:random_order`` you are stopping the plugin
from being registered so its hooks won't be registered and its command line options won't appear in ``--help``.

--------------
Changelog
--------------

v1.1.1 (2024-01-20)
+++++++++++++++++++

* Fixes #54 - ``AttributeError`` when cacheprovider plugin disabled. Thanks @jhanm12


v1.1.0 (2022-12-03)
+++++++++++++++++++

* Fixes xdist support (thanks @matejsp)


v1.0.4 (2018-11-30)
+++++++++++++++++++

* Fixes issues with doctests reported in #36 - ``class``, ``package`` and ``module`` didn't work
because ``DoctestItem`` doesn't have ``cls`` or ``module`` attributes. Thanks @tobywf.
* Deprecate ``none`` bucket type. **Update**: this was a mistake, it will be kept for backwards compatibility.
* With tox, run tests of pytest-random-order with both pytest 3 and 4.

v1.0.3 (2018-11-16)
+++++++++++++++++++

* Fixes compatibility issues with pytest 4.0.0, works with pytest 3.0+ as before.
* Tests included in the source distribution.

v1.0.0 (2018-10-20)
+++++++++++++++++++

* Plugin no longer alters the test order by default. You will have to either 1) pass ``--random-order``,
or ``--random-order-bucket=<bucket>``, or ``--random-order-seed=<seed>``, or
2) edit your pytest configuration file and add one of these options
there under ``addopts``, or 3) specify these flags in environment variable ``PYTEST_ADDOPTS``.
* Python 3.5+ is required. If you want to use this plugin with Python 2.7, use v0.8.0 which is stable and fine
if you are happy with it randomising the test order by default.
* The name under which the plugin registers itself is changed from ``random-order`` (hyphen) to ``random_order``
(underscore). This addresses the issue of consistency when disabling or enabling this plugin via the standard
``-p`` flag. Previously, the plugin could be disabled by passing ``-p no:random-order`` yet re-enabled
only by passing ``-p pytest_random_order.plugin``. Now they are ``-p no:random_order``
to disable and ``-p random_order.plugin`` to enable (The ``.plugin`` bit, I think, is required because
pytest probably thinks it's an unrelated thing to ``random_order`` and import it, yet without it it's the
same thing so doesn't import it).


v0.8.0
++++++

* pytest cache plugin's ``--failed-first`` works now.

-------
Credits
Expand Down
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def read(fname):
'random_order',
],
include_package_data=True,
python_requires=">=3.5.0",
python_requires=">=3.9",
install_requires=[
'pytest>=3.0.0',
'pytest',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand All @@ -38,14 +38,11 @@ def read(fname):
'Topic :: Software Development :: Testing',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'License :: OSI Approved :: MIT License',
],
keywords='pytest random test order shuffle',
Expand Down