Skip to content

Commit

Permalink
feat: remove support for python 3.7 and older (#232)
Browse files Browse the repository at this point in the history
* feat: remove support for python 3.7 and older

Signed-off-by: Frost Ming <[email protected]>

* debug test

Signed-off-by: Frost Ming <[email protected]>

* debug

Signed-off-by: Frost Ming <[email protected]>

* fix: remove unused functions

Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming authored Apr 18, 2024
1 parent 5f53873 commit 32e3a33
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 575 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ on:
pull_request:
push:
branches:
- master
- main

jobs:
Testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "pypy-3.7", "pypy-3.8"]
os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "pypy-3.8"]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install Dependencies
run: |
python -m pip install -U pip pytest setuptools editables
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"

- name: Build artifacts
run: |
python -m pip install build
python -m build
pipx run build
- name: Test Build
run: |
Expand All @@ -42,5 +41,4 @@ jobs:
- name: Upload to Pypi
run: |
pip install twine
twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*
pipx run twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
hooks:
- id: pyupgrade
args:
- --py37-plus
- --py38-plus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.5'
Expand Down
37 changes: 6 additions & 31 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
{ name = "Frost Ming", email = "[email protected]" }
]
license = {text = "MIT"}
requires-python = ">=3.7"
requires-python = ">=3.8"
readme = "README.md"
keywords = ["packaging", "PEP 517", "build"]
dynamic = ["version"]
Expand All @@ -16,11 +16,11 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

dependencies = [
Expand Down Expand Up @@ -92,7 +92,7 @@ test = [

dev = [
"editables",
"vendoring; python_version ~= '3.8'",
"vendoring",
]
docs = [
"mkdocs>=1.4.2",
Expand Down
Loading

0 comments on commit 32e3a33

Please sign in to comment.