Skip to content

Commit

Permalink
feat: support Python 3.10+ only and update the lockfile
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Jan 25, 2024
1 parent 2ce8128 commit e99545b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 112 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: Install Dependencies
run: |
pdm install -dGtest
pdm sync -dGtest
- name: Run Tests
run: |
pdm run pytest -v tests
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@ jobs:

- uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: '3.11'

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

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Build artifacts
run: |
python -m pip install build
python -m build
run: pipx run build

- name: Upload to Pypi
run: |
Expand Down
152 changes: 53 additions & 99 deletions pdm.lock

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

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ authors = [
dependencies = [
"tomli>=2.0.1; python_version < \"3.11\"",
]
requires-python = ">=3.7"
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
dynamic = ["version"]
classifiers = [
"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 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[project.urls]
Expand Down

0 comments on commit e99545b

Please sign in to comment.