Skip to content

Commit 1272976

Browse files
authored
chore: update and pin github action versions, drop Python 3.6-3.8 (#73)
* chore: update and pin github action versions Many of the currently-used GitHub Actions emit warnings about using an older runtime. Update to most recent, and use hash-pinning as a way to ensure that the action requested is the one in use. Signed-off-by: Mike Fiedler <[email protected]> * chore: use available ubuntu runner Refs: actions/runner-images#11101 Signed-off-by: Mike Fiedler <[email protected]> * chore: remove unsupported Python versions Signed-off-by: Mike Fiedler <[email protected]> * chore: use recent macos runner Signed-off-by: Mike Fiedler <[email protected]> * chore: another round of updates Signed-off-by: Mike Fiedler <[email protected]> * fix: pin to a newer version of cffi Signed-off-by: Mike Fiedler <[email protected]> * fix: add pycparser for build Signed-off-by: Mike Fiedler <[email protected]> --------- Signed-off-by: Mike Fiedler <[email protected]>
1 parent bd4ed48 commit 1272976

File tree

5 files changed

+17
-20
lines changed

5 files changed

+17
-20
lines changed

.github/workflows/nox-test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ on:
88

99
jobs:
1010
lint:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
name: Lint
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1515

1616
- name: Setup git submodule
1717
run: git submodule update --init --recursive
1818

1919
- name: Setup python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2121
with:
2222
python-version: '3.11'
2323

@@ -33,21 +33,21 @@ jobs:
3333
noxenv/bin/nox
3434
3535
test:
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-24.04
3737
strategy:
3838
fail-fast: false
3939
matrix:
40-
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
40+
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
4141

4242
name: Test Python ${{ matrix.python-version }}
4343
steps:
44-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4545

4646
- name: Setup git submodule
4747
run: git submodule update --init --recursive
4848

4949
- name: Setup python
50-
uses: actions/setup-python@v4
50+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
5151
with:
5252
python-version: ${{ matrix.python-version }}
5353

.github/workflows/pypi-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-20.04, windows-2019, macos-11]
17+
os: [ubuntu-24.04, windows-2019, macos-15]
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121

2222
- name: Setup git submodule
2323
run: git submodule update --init --recursive
2424

2525
- name: Checkout cmark-gfm
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2727
with:
2828
repository: github/cmark-gfm
2929
path: cmark-gfm
3030

31-
- uses: actions/setup-python@v4
31+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3232
name: Install Python
3333
with:
3434
python-version: '3.12'
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
python -m pip --disable-pip-version-check install cibuildwheel==2.21.3 twine==5.1.1 setuptools
3939
40-
- uses: docker/setup-qemu-action@v1
40+
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
4141
if: runner.os == 'Linux'
4242
name: Set up QEMU
4343

@@ -60,7 +60,7 @@ jobs:
6060
run: |
6161
twine upload --skip-existing ./dist/*
6262
63-
- uses: actions/upload-artifact@v3
63+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6464
with:
6565
path: |
6666
./wheelhouse/*.whl

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and can be installed with `pip` or `pipenv`::
1212
pip install --user cmarkgfm
1313
pipenv install cmarkgfm
1414

15-
Wheels are provided for macOS, Linux, and Windows for Python 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11.
15+
Wheels are provided for macOS, Linux, and Windows for Python 3.9, 3.10, 3.11, 3.12, and 3.13.
1616

1717

1818
Usage

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import nox
66

77

8-
@nox.session(py=['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'])
8+
@nox.session(py=['3.9', '3.10', '3.11', '3.12', '3.13'])
99
def unit(session):
1010
session.install('pytest', 'pytest-cov')
1111
session.install('.')

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ def finalize_options(self):
3838
'Topic :: Software Development :: Build Tools',
3939
'License :: OSI Approved :: MIT License',
4040
'Programming Language :: Python :: 3',
41-
'Programming Language :: Python :: 3.6',
42-
'Programming Language :: Python :: 3.7',
43-
'Programming Language :: Python :: 3.8',
4441
'Programming Language :: Python :: 3.9',
4542
'Programming Language :: Python :: 3.10',
4643
'Programming Language :: Python :: 3.11',
@@ -50,8 +47,8 @@ def finalize_options(self):
5047
package_dir={'': 'src'},
5148
packages=find_packages(where='src'),
5249
cffi_modules=["src/cmarkgfm/build_cmark.py:ffibuilder"],
53-
setup_requires=["cffi>=1.15.0"],
54-
install_requires=["cffi>=1.15.0"],
50+
setup_requires=["cffi>=2.0.0", "pycparser>=2.06"],
51+
install_requires=["cffi>=2.0.0"],
5552
project_urls={
5653
'Bug Reports': 'https://github.com/theacodes/cmarkgfm/issues',
5754
'Funding': 'https://donate.pypi.org',

0 commit comments

Comments
 (0)