Skip to content

Commit 32e3a33

Browse files
authored
feat: remove support for python 3.7 and older (#232)
* feat: remove support for python 3.7 and older Signed-off-by: Frost Ming <me@frostming.com> * debug test Signed-off-by: Frost Ming <me@frostming.com> * debug Signed-off-by: Frost Ming <me@frostming.com> * fix: remove unused functions Signed-off-by: Frost Ming <me@frostming.com>
1 parent 5f53873 commit 32e3a33

File tree

8 files changed

+29
-575
lines changed

8 files changed

+29
-575
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
87
- main
98

109
jobs:
1110
Testing:
1211
runs-on: ${{ matrix.os }}
1312
strategy:
1413
matrix:
15-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "pypy-3.7", "pypy-3.8"]
16-
os: [ubuntu-latest, macOS-latest, windows-latest]
14+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "pypy-3.8"]
15+
os: [ubuntu-latest, windows-latest, macos-latest]
1716

1817
steps:
19-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
2019
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2221
with:
2322
python-version: ${{ matrix.python-version }}
23+
allow-prereleases: true
2424
- name: Install Dependencies
2525
run: |
2626
python -m pip install -U pip pytest setuptools editables

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,26 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

18-
- uses: actions/setup-node@v3
18+
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 16
20+
node-version: 20
2121

2222
- run: npx changelogithub
2323
continue-on-error: true
2424
env:
2525
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2626

27-
- uses: actions/setup-python@v4
27+
- uses: actions/setup-python@v5
2828
with:
29-
python-version: "3.10"
29+
python-version: "3.11"
3030

3131
- name: Build artifacts
3232
run: |
33-
python -m pip install build
34-
python -m build
33+
pipx run build
3534
3635
- name: Test Build
3736
run: |
@@ -42,5 +41,4 @@ jobs:
4241
4342
- name: Upload to Pypi
4443
run: |
45-
pip install twine
46-
twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*
44+
pipx run twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
hooks:
99
- id: pyupgrade
1010
args:
11-
- --py37-plus
11+
- --py38-plus
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
1414
rev: 'v0.3.5'

pdm.lock

Lines changed: 6 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
{ name = "Frost Ming", email = "me@frostming.com" }
88
]
99
license = {text = "MIT"}
10-
requires-python = ">=3.7"
10+
requires-python = ">=3.8"
1111
readme = "README.md"
1212
keywords = ["packaging", "PEP 517", "build"]
1313
dynamic = ["version"]
@@ -16,11 +16,11 @@ classifiers = [
1616
"Development Status :: 5 - Production/Stable",
1717
"Topic :: Software Development :: Build Tools",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.7",
2019
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
2424
]
2525

2626
dependencies = [
@@ -92,7 +92,7 @@ test = [
9292

9393
dev = [
9494
"editables",
95-
"vendoring; python_version ~= '3.8'",
95+
"vendoring",
9696
]
9797
docs = [
9898
"mkdocs>=1.4.2",

0 commit comments

Comments
 (0)