Skip to content

Commit bd36771

Browse files
authored
1 parent d8c3419 commit bd36771

File tree

10 files changed

+7
-226
lines changed

10 files changed

+7
-226
lines changed

.github/workflows/main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
strategy:
1919
matrix:
2020
python-version:
21-
- 3.8
2221
- 3.9
2322
- '3.10'
2423
- '3.11'

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
rev: v3.17.0
3535
hooks:
3636
- id: pyupgrade
37-
args: [--py38-plus]
37+
args: [--py39-plus]
3838
- repo: https://github.com/psf/black-pre-commit-mirror
3939
rev: 24.8.0
4040
hooks:

CHANGELOG.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Changelog
33
=========
44

5+
* Drop Python 3.8 support.
6+
57
3.15.0 (2023-08-15)
68
-------------------
79

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Install with:
114114
115115
python -m pip install pytest-randomly
116116
117-
Python 3.8 to 3.12 supported.
117+
Python 3.9 to 3.12 supported.
118118

119119
Usage
120120
=====

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ keywords = [
1919
authors = [
2020
{ name = "Adam Johnson", email = "[email protected]" },
2121
]
22-
requires-python = ">=3.8"
22+
requires-python = ">=3.9"
2323
classifiers = [
2424
"Development Status :: 5 - Production/Stable",
2525
"Framework :: Pytest",
2626
"Intended Audience :: Developers",
2727
"License :: OSI Approved :: MIT License",
2828
"Natural Language :: English",
2929
"Programming Language :: Python :: 3 :: Only",
30-
"Programming Language :: Python :: 3.8",
3130
"Programming Language :: Python :: 3.9",
3231
"Programming Language :: Python :: 3.10",
3332
"Programming Language :: Python :: 3.11",

src/pytest_randomly/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
from pytest import fixture
1818
from pytest import hookimpl
1919

20-
from pytest_randomly.compat import md5
21-
2220
if sys.version_info < (3, 10):
2321
from importlib_metadata import entry_points
2422
else:
@@ -291,7 +289,7 @@ def reduce_list_of_lists(lists: list[list[T]]) -> list[T]:
291289

292290

293291
def _md5(string: str) -> bytes:
294-
hasher = md5()
292+
hasher = hashlib.md5(usedforsecurity=False)
295293
hasher.update(string.encode())
296294
return hasher.digest()
297295

src/pytest_randomly/compat.py

-10
This file was deleted.

tests/requirements/compile.py

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*sys.argv[1:],
2020
]
2121
run = partial(subprocess.run, check=True)
22-
run([*common_args, "--python", "3.8", "--output-file", "py38.txt"])
2322
run([*common_args, "--python", "3.9", "--output-file", "py39.txt"])
2423
run([*common_args, "--python", "3.10", "--output-file", "py310.txt"])
2524
run([*common_args, "--python", "3.11", "--output-file", "py311.txt"])

tests/requirements/py38.txt

-206
This file was deleted.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires =
33
tox>=4.2
44
env_list =
5-
py{312, 311, 310, 39, 38}
5+
py{312, 311, 310, 39}
66

77
[testenv]
88
package = wheel

0 commit comments

Comments
 (0)