Skip to content

Commit c07520e

Browse files
committed
Drop support for python 3.7
1 parent 9606216 commit c07520e

File tree

5 files changed

+16
-26
lines changed

5 files changed

+16
-26
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
if: github.repository == 'pytest-dev/pytest-base-url'
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
persist-credentials: false
1818

1919
- name: Build and Check Package
20-
uses: hynek/build-and-inspect-python-package@v1
20+
uses: hynek/build-and-inspect-python-package@v2
2121

2222
- name: Download Package
23-
uses: actions/download-artifact@v3
23+
uses: actions/download-artifact@v4
2424
with:
2525
name: Packages
2626
path: dist

.github/workflows/test.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,33 @@ concurrency:
1616

1717
jobs:
1818
test:
19-
name: ${{ matrix.python-version }}
19+
name: ${{ matrix.tox-env }}
2020
runs-on: ubuntu-latest
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
python-version: ["3.7", "3.8", "3.9", "3.10"]
25-
include:
26-
- python-version: pypy3.9
27-
tox-env: py3.9
28-
- python-version: 3.11-dev
29-
tox-env: devel
24+
tox-env: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10", "devel"]
3025

3126
steps:
32-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
3328

3429
- name: Set up python
35-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
3631
with:
37-
python-version: ${{ matrix.python-version }}
32+
python-version: ${{ matrix.tox-env == 'devel' && 3.12 || matrix.tox-env }} # default is for devel
3833

3934
- name: Install tox
4035
run: |
4136
python -m pip install --upgrade pip
4237
pip install tox
4338
4439
- name: Cache tox environments
45-
uses: actions/cache@v3
40+
uses: actions/cache@v4
4641
with:
4742
path: .tox
48-
key: tox-ubuntu-latest-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
43+
key: ubuntu-latest-tox-${{ matrix.tox-env }}-${{ hashFiles('pyproject.toml', 'tox.ini') }}
4944
restore-keys: |
50-
tox-ubuntu-latest-${{ matrix.python-version }}-
45+
ubuntu-latest-tox-${{ matrix.tox-env }}-
5146
5247
- name: Run tests
53-
if: ${{ ! matrix.tox-env }}
54-
run: tox -e py${{ matrix.python-version }}
55-
56-
- name: Run tests
57-
if: ${{ matrix.tox-env }}
5848
run: tox -e ${{ matrix.tox-env }}

README.rst

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

2626
You will need the following prerequisites in order to use pytest-base-url:
2727

28-
- Python 3.7+ or PyPy3
28+
- Python 3.8+ or PyPy3
2929

3030
Installation
3131
------------

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "pytest-base-url"
1010
description = "pytest plugin for URL based testing"
1111
readme = "README.rst"
1212
license = "MPL-2.0"
13-
requires-python = ">=3.7"
13+
requires-python = ">=3.8"
1414
keywords = [
1515
"pytest",
1616
"base",
@@ -26,16 +26,16 @@ classifiers = [
2626
"Development Status :: 5 - Production/Stable",
2727
"Framework :: Pytest",
2828
"Intended Audience :: Developers",
29-
"License :: OSI Approved :: MIT License",
29+
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
3030
"Natural Language :: English",
3131
"Operating System :: POSIX",
3232
"Operating System :: Microsoft :: Windows",
3333
"Operating System :: MacOS :: MacOS X",
34-
"Programming Language :: Python :: 3.7",
3534
"Programming Language :: Python :: 3.8",
3635
"Programming Language :: Python :: 3.9",
3736
"Programming Language :: Python :: 3.10",
3837
"Programming Language :: Python :: 3.11",
38+
"Programming Language :: Python :: 3.12",
3939
"Programming Language :: Python :: Implementation :: CPython",
4040
"Programming Language :: Python :: Implementation :: PyPy",
4141
"Topic :: Software Development :: Quality Assurance",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{3.7, 3.8, 3.9, 3.10, py3.9}, linting
2+
envlist = py{3.8, 3.9, 3.10, 3.11, 3.12, py3.10}, linting
33
isolated_build = True
44

55
[testenv]

0 commit comments

Comments
 (0)