Skip to content

Commit 65f06f2

Browse files
committed
Merge branch 'master' into lint/ruff
2 parents 5ddf690 + 7ad2d51 commit 65f06f2

File tree

9 files changed

+52
-33
lines changed

9 files changed

+52
-33
lines changed

.github/dependabot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Basic dependabot.yml file with
2+
# minimum configuration for two package managers
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for python
7+
- package-ecosystem: "pip"
8+
# Look for a `requirements` in the `root` directory
9+
directory: "/"
10+
# Check for updates once a month
11+
schedule:
12+
interval: "monthly"
13+
groups:
14+
pip:
15+
patterns:
16+
- "*"
17+
# Labels on pull requests for version updates only
18+
labels: ["maintenance"]
19+
20+
# Enable version updates for GitHub Actions
21+
- package-ecosystem: "github-actions"
22+
directory: "/"
23+
# Check for updates once a monthly
24+
schedule:
25+
interval: "monthly"
26+
groups:
27+
actions:
28+
patterns:
29+
- "*"
30+
# Labels on pull requests for version updates only
31+
labels: ["maintenance"]

.github/workflows/lint.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: Lint
22

33
on:
44
push:
5-
branches: [ master ]
65
pull_request:
7-
branches: [ master ]
86
type: [ "opened", "reopened", "synchronize" ]
97

108
env:
@@ -16,10 +14,10 @@ jobs:
1614
runs-on: ubuntu-latest
1715

1816
steps:
19-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
2018

2119
- name: Cache
22-
uses: actions/cache@v3
20+
uses: actions/cache@v4
2321
with:
2422
path: |
2523
~/.cache/pip
@@ -30,7 +28,7 @@ jobs:
3028
lint-v1-
3129
3230
- name: Set up Python
33-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@v5
3432
with:
3533
python-version: '3.x'
3634

.github/workflows/test.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: Test
22

33
on:
44
push:
5-
branches: [ master ]
65
pull_request:
7-
branches: [ master ]
86
type: [ "opened", "reopened", "synchronize" ]
97
schedule:
108
- cron: '0 12 * * 0' # run once a week on Sunday
@@ -22,13 +20,12 @@ jobs:
2220
fail-fast: false
2321
matrix:
2422
python-version: [
25-
"3.7",
2623
"3.8",
2724
"3.9",
2825
"3.10",
2926
"3.11",
3027
"3.12",
31-
"pypy-3.9",
28+
"pypy-3.10",
3229
]
3330
pytest-version: [
3431
"7.0.*",
@@ -38,14 +35,11 @@ jobs:
3835
"7.4.*",
3936
"main",
4037
]
41-
exclude:
42-
# pytest-main only supports Python 3.8+
43-
- { python-version: "3.7", pytest-version: "main" }
4438
steps:
45-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4640

4741
- name: Set up Python ${{ matrix.python-version }}
48-
uses: actions/setup-python@v4
42+
uses: actions/setup-python@v5
4943
with:
5044
python-version: ${{ matrix.python-version }}
5145

@@ -55,7 +49,7 @@ jobs:
5549
echo "::set-output name=dir::$(pip cache dir)"
5650
5751
- name: Cache
58-
uses: actions/cache@v3
52+
uses: actions/cache@v4
5953
with:
6054
path: ${{ steps.pip-cache.outputs.dir }}
6155
key:
@@ -88,10 +82,10 @@ jobs:
8882
os: [ubuntu-latest, windows-latest, macos-latest]
8983
steps:
9084
- name: Checkout
91-
uses: actions/checkout@v3
85+
uses: actions/checkout@v4
9286

9387
- name: Setup Python
94-
uses: actions/setup-python@v4
88+
uses: actions/setup-python@v5
9589
with:
9690
python-version: '3.x'
9791
architecture: 'x64'

CHANGES.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ Changelog
44
13.1 (unreleased)
55
-----------------
66

7-
- Nothing changed yet.
7+
Breaking changes
8+
++++++++++++++++
89

10+
- Drop support for Python 3.7.
911

1012
13.0 (2023-11-22)
1113
-----------------

CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Preparing Pull Requests
2929

3030
#. Install `tox <https://tox.readthedocs.io/en/latest/>`_:
3131

32-
Tox is used to run all the tests and will automatically setup virtualenvs
32+
tox is used to run all the tests and will automatically setup virtualenvs
3333
to run the tests in. Implicitly https://virtualenv.pypa.io/ is used::
3434

3535
$ pip install tox
36-
$ tox -e linting,py37
36+
$ tox -e linting,py312
3737

38-
#. Follow **PEP-8** for naming and `black <https://github.com/psf/black>`_ for formatting.
38+
#. Follow **PEP 8** for naming and `black <https://github.com/psf/black>`_ for formatting.
3939

4040
#. Add a line item to the current **unreleased** version in ``CHANGES.rst``,
4141
unless the change is trivial.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Requirements
1919

2020
You will need the following prerequisites in order to use pytest-rerunfailures:
2121

22-
- Python 3.7, up to 3.12, or PyPy3
22+
- Python 3.8+ or PyPy3
2323
- pytest 7.0 or newer
2424

2525
This plugin can recover from a hard crash with the following optional

pytest_rerunfailures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import hashlib
2-
import importlib.metadata as importlib_metadata
2+
import importlib.metadata
33
import os
44
import platform
55
import re
@@ -35,8 +35,8 @@ def works_with_current_xdist():
3535
3636
"""
3737
try:
38-
d = importlib_metadata.distribution("pytest-xdist")
39-
except importlib_metadata.PackageNotFoundError:
38+
d = importlib.metadata.distribution("pytest-xdist")
39+
except importlib.metadata.PackageNotFoundError:
4040
return None
4141
else:
4242
return parse_version(d.version) >= parse_version("1.20")

setup.cfg

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[bdist_wheel]
2-
universal = 0
3-
41
[check-manifest]
52
ignore =
63
.pre-commit-config.yaml
@@ -27,7 +24,6 @@ classifiers =
2724
Topic :: Software Development :: Testing
2825
Topic :: Utilities
2926
Programming Language :: Python :: 3
30-
Programming Language :: Python :: 3.7
3127
Programming Language :: Python :: 3.8
3228
Programming Language :: Python :: 3.9
3329
Programming Language :: Python :: 3.10
@@ -40,11 +36,10 @@ classifiers =
4036
[options]
4137
zip_safe = False
4238
py_modules = pytest_rerunfailures
43-
python_requires = >= 3.7
39+
python_requires = >= 3.8
4440
install_requires =
4541
packaging >= 17.1
4642
pytest >= 7
47-
importlib-metadata>=1;python_version<"3.8"
4843

4944
[options.entry_points]
5045
pytest11 =

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ max-line-length = 88
1111
[tox]
1212
envlist =
1313
linting
14-
py{37,38,39,310,311,312,py3}-pytest{70,71,72,73,74}
15-
py{38,39,310,311,312,py3}-pytest{main}
14+
py{38,39,310,311,312,py3}-pytest{70,71,72,73,74,main}
1615
minversion = 4.0
1716

1817
[testenv]

0 commit comments

Comments
 (0)