Skip to content

Commit 56e6211

Browse files
fix: loosen runtime requirements (#21)
* fix: Loosen runtime requirements * Bump `setup-python` * Loosen `setuptools` requirement * chore: update setuptools requirements * fixup! chore: update setuptools requirements * fixup! chore: update setuptools requirements --------- Co-authored-by: Arthur Pastel <[email protected]>
1 parent 367ef47 commit 56e6211

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches: [master]
55
pull_request:
66
branches: [master]
7+
workflow_dispatch:
78

89
concurrency:
910
group: ${{ github.ref }}
@@ -13,9 +14,9 @@ jobs:
1314
static-analysis:
1415
runs-on: ubuntu-latest
1516
steps:
16-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1718
- name: Set up Python 3.11
18-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
1920
with:
2021
python-version: "3.11"
2122
- uses: pre-commit/[email protected]
@@ -37,12 +38,12 @@ jobs:
3738
- "3.9"
3839
- "3.10"
3940
- "3.11"
40-
- "3.12.0-beta.1"
41+
- "3.12"
4142

4243
steps:
43-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v4
4445
- name: "Set up Python ${{ matrix.python-version }}"
45-
uses: actions/setup-python@v2
46+
uses: actions/setup-python@v5
4647
with:
4748
python-version: "${{ matrix.python-version }}"
4849
- if: matrix.config == 'valgrind' || matrix.config == 'pytest-benchmark'

.github/workflows/codspeed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python 3.12
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: "3.12.0-beta.3"
17+
python-version: "3.12"
1818
- name: Install local version of pytest-codspeed
1919
run: pip install .
2020
- name: Run benchmarks

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ classifiers = [
3535
"Typing :: Typed",
3636
]
3737
dependencies = [
38-
"cffi ~= 1.15.1",
38+
"cffi >= 1.15.1",
39+
# cffi doesn't automatically install setuptools with python 3.12+
40+
# cf https://github.com/python-cffi/cffi/releases/tag/v1.16.0
41+
"setuptools; python_full_version >= '3.12.0'",
3942
"pytest>=3.8",
40-
"filelock ~= 3.12.2",
41-
"setuptools ~= 67.8.0; python_full_version >= '3.12.0b1'", # FIXME: remove when cffi supports directly python 3.12
43+
"filelock >= 3.12.2",
4244
]
4345

4446
[project.optional-dependencies]

0 commit comments

Comments
 (0)