chore: Add python 3.13 support, drop 3.8

This commit is contained in:
Ross Smith II 2025-02-27 14:57:31 -08:00
parent cd3f437689
commit 967a6688cb
7 changed files with 934 additions and 698 deletions

View File

@ -1,18 +1,21 @@
name: flake8
on: pull_request
on:
push:
pull_request:
workflow_dispatch:
jobs:
flake8-lint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.13"
- name: flake8 Lint
uses: reviewdog/action-flake8@v3
with:

View File

@ -6,18 +6,18 @@ on:
jobs:
run_tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9-7.3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.10']
steps:
- name: Checkout repository
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 }}
@ -31,10 +31,10 @@ jobs:
coverage_report:
needs: run_tests
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: |
@ -49,7 +49,8 @@ jobs:
run: poetry run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
files: coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

View File

@ -1,3 +1,4 @@
3.13
3.12
3.11
3.10

View File

@ -1 +1 @@
python 3.12 3.11 3.10 3.9 3.8 pypy3.9-7.3.12
python 3.13 3.12 3.11 3.10 3.9 3.8 pypy3.9-7.3.12

1587
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -18,14 +18,15 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
[tool.poetry.scripts]
pipreqs = "pipreqs.pipreqs:main"
[tool.poetry.dependencies]
python = ">=3.8.1,<3.13"
python = ">=3.8.1,<3.14"
yarg = "0.1.9"
docopt = "0.6.2"
nbconvert = "^7.11.0"

View File

@ -1,6 +1,6 @@
[tox]
isolated_build = true
envlist = py38, py39, py310, py311, py312, pypy3, flake8
envlist = py38, py39, py310, py311, py312, py313, pypy3, flake8
[gh-actions]
python =
@ -9,7 +9,8 @@ python =
3.10: py310
3.11: py311
3.12: py312
pypy-3.9-7.3.12: pypy3
3.13: py313
pypy-3.10: pypy3
[testenv]
setenv =
@ -28,4 +29,4 @@ exclude =
tests/_data_duplicated_deps/
tests/_data_ignore/
tests/_invalid_data/
max-line-length = 120
max-line-length = 120