Skip to content

Commit

Permalink
chore: python 3.13 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Oct 10, 2024
1 parent ca19029 commit 9289e95
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 22 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,39 @@ on:
paths:
- '.github/workflows/build.yml'
- '**/*.py'
workflow_dispatch: ~

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- run: just install lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pythonversion }}
- run: just install coverage
coverage:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- run: just install coverage
- uses: coverallsapp/github-action@v2
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: release

on:
push:
tags:
- '*'
release:
types: [published]
workflow_dispatch: ~

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
- name: Build package
run: just install build
- name: Publish to PyPI
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ isort-check:

# Run mypy type checking on the project
mypy:
{{VIRTUAL_BIN}}/mypy {{PROJECT_NAME}}/ {{TEST_DIR}}/
{{VIRTUAL_BIN}}/mypy --install-types --non-interactive {{PROJECT_NAME}}/ {{TEST_DIR}}/

# Test the project
test:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
lines_after_imports = 2
include_trailing_comma = true
use_parentheses = true

[tool.mypy]
disable_error_code = "import-untyped"
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@

DEV_REQUIREMENTS = [
'bandit == 1.7.*',
'black == 23.*',
'build == 0.10.*',
'flake8 == 6.*',
'black == 24.*',
'build == 1.1.*',
'flake8 == 7.*',
'isort == 5.*',
'mypy == 1.5.*',
'pytest == 7.*',
'mypy == 1.11.*',
'pytest == 8.*',
'pytest-cov == 4.*',
'twine == 4.*',
]

setuptools.setup(
Expand Down

0 comments on commit 9289e95

Please sign in to comment.