Skip to content

Commit bbe074a

Browse files
authored
Drop Python 3.8 support
* Upgrade pre-commit dependencies * Drop Python 3.8 support * Allow manual triggering of test workflow
1 parent 25ad07e commit bbe074a

File tree

6 files changed

+29
-32
lines changed

6 files changed

+29
-32
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: "Test"
33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
branches:
@@ -13,7 +14,6 @@ jobs:
1314
fail-fast: false
1415
matrix:
1516
python-version: [
16-
"3.8",
1717
"3.9",
1818
"3.10",
1919
"3.11",

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.5.1
3+
rev: v0.8.5
44
hooks:
55
- id: ruff
66
args: [--fix, --exit-non-zero-on-fix]
77
- id: ruff-format
88
- repo: https://github.com/igorshubovych/markdownlint-cli
9-
rev: v0.41.0
9+
rev: v0.43.0
1010
hooks:
1111
- id: markdownlint

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dynamic = [
1717
"readme",
1818
]
1919
description = "Archivematica API client library."
20-
requires-python = ">=3.8"
20+
requires-python = ">=3.9"
2121
license = {file = "LICENSE"}
2222
dependencies = [
2323
"requests",
@@ -34,7 +34,6 @@ classifiers = [
3434
"License :: OSI Approved :: GNU Affero General Public License v3",
3535
"Operating System :: POSIX :: Linux",
3636
"Programming Language :: Python :: 3 :: Only",
37-
"Programming Language :: Python :: 3.8",
3837
"Programming Language :: Python :: 3.9",
3938
"Programming Language :: Python :: 3.10",
4039
"Programming Language :: Python :: 3.11",
@@ -107,11 +106,10 @@ omit = [
107106
[tool.tox]
108107
legacy_tox_ini = """
109108
[tox]
110-
envlist = py{38,39,310,311,312}, linting
109+
envlist = py{39,310,311,312}, linting
111110
112111
[gh-actions]
113112
python =
114-
3.8: py38
115113
3.9: py39
116114
3.10: py310
117115
3.11: py311

requirements-dev.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,65 +4,65 @@
44
#
55
# pip-compile --allow-unsafe --extra=dev --output-file=requirements-dev.txt pyproject.toml
66
#
7-
build==1.2.1
7+
build==1.2.2.post1
88
# via pip-tools
9-
certifi==2024.7.4
9+
certifi==2024.12.14
1010
# via requests
11-
charset-normalizer==3.3.2
11+
charset-normalizer==3.4.1
1212
# via requests
13-
click==8.1.7
13+
click==8.1.8
1414
# via pip-tools
15-
coverage[toml]==7.5.4
15+
coverage[toml]==7.6.10
1616
# via
1717
# amclient (pyproject.toml)
1818
# pytest-cov
19-
exceptiongroup==1.2.1
19+
exceptiongroup==1.2.2
2020
# via pytest
21-
idna==3.7
21+
idna==3.10
2222
# via requests
23-
importlib-metadata==8.0.0
23+
importlib-metadata==8.5.0
2424
# via build
2525
iniconfig==2.0.0
2626
# via pytest
27-
packaging==24.1
27+
packaging==24.2
2828
# via
2929
# build
3030
# pytest
3131
pip-tools==7.4.1
3232
# via amclient (pyproject.toml)
3333
pluggy==1.5.0
3434
# via pytest
35-
pyproject-hooks==1.1.0
35+
pyproject-hooks==1.2.0
3636
# via
3737
# build
3838
# pip-tools
39-
pytest==8.2.2
39+
pytest==8.3.4
4040
# via
4141
# amclient (pyproject.toml)
4242
# pytest-cov
43-
pytest-cov==5.0.0
43+
pytest-cov==6.0.0
4444
# via amclient (pyproject.toml)
4545
requests==2.32.3
4646
# via amclient (pyproject.toml)
47-
ruff==0.5.1
47+
ruff==0.8.5
4848
# via amclient (pyproject.toml)
49-
tomli==2.0.1
49+
tomli==2.2.1
5050
# via
5151
# build
5252
# coverage
5353
# pip-tools
5454
# pytest
55-
urllib3==2.2.2
55+
urllib3==2.3.0
5656
# via
5757
# amclient (pyproject.toml)
5858
# requests
59-
wheel==0.43.0
59+
wheel==0.45.1
6060
# via pip-tools
61-
zipp==3.19.2
61+
zipp==3.21.0
6262
# via importlib-metadata
6363

6464
# The following packages are considered to be unsafe in a requirements file:
65-
pip==24.1.2
65+
pip==24.3.1
6666
# via pip-tools
67-
setuptools==70.2.0
67+
setuptools==75.6.0
6868
# via pip-tools

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
#
55
# pip-compile --allow-unsafe --output-file=requirements.txt pyproject.toml
66
#
7-
certifi==2024.7.4
7+
certifi==2024.12.14
88
# via requests
9-
charset-normalizer==3.3.2
9+
charset-normalizer==3.4.1
1010
# via requests
11-
idna==3.7
11+
idna==3.10
1212
# via requests
1313
requests==2.32.3
1414
# via amclient (pyproject.toml)
15-
urllib3==2.2.2
15+
urllib3==2.3.0
1616
# via
1717
# amclient (pyproject.toml)
1818
# requests

tests/test_amclient.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import unittest
55
import uuid
66
from binascii import hexlify
7-
from typing import Dict
87
from unittest import mock
98

109
import pytest
@@ -1371,7 +1370,7 @@ def test_close_completed_ingests_ingests(call_url: mock.Mock):
13711370
},
13721371
],
13731372
)
1374-
def test_hide_units(call_url: mock.Mock, fixture: Dict):
1373+
def test_hide_units(call_url: mock.Mock, fixture: dict):
13751374
"""Test the hiding of a unit type (transfer or ingest) via the
13761375
Archivematica API.
13771376
"""

0 commit comments

Comments
 (0)