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 name: flake8
on: pull_request on:
push:
pull_request:
workflow_dispatch:
jobs: jobs:
flake8-lint: flake8-lint:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
name: Lint name: Lint
steps: steps:
- name: Check out source repository - name: Check out source repository
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Set up Python environment - name: Set up Python environment
uses: actions/setup-python@v2 uses: actions/setup-python@v5
with: with:
python-version: "3.9" python-version: "3.13"
- name: flake8 Lint - name: flake8 Lint
uses: reviewdog/action-flake8@v3 uses: reviewdog/action-flake8@v3
with: with:

View File

@ -6,18 +6,18 @@ on:
jobs: jobs:
run_tests: run_tests:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: 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: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
@ -31,10 +31,10 @@ jobs:
coverage_report: coverage_report:
needs: run_tests needs: run_tests
runs-on: ubuntu-latest runs-on: ubuntu-24.04
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -49,7 +49,8 @@ jobs:
run: poetry run coverage xml run: poetry run coverage xml
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v5
with: with:
files: coverage.xml 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.12
3.11 3.11
3.10 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.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12" "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
] ]
[tool.poetry.scripts] [tool.poetry.scripts]
pipreqs = "pipreqs.pipreqs:main" pipreqs = "pipreqs.pipreqs:main"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8.1,<3.13" python = ">=3.8.1,<3.14"
yarg = "0.1.9" yarg = "0.1.9"
docopt = "0.6.2" docopt = "0.6.2"
nbconvert = "^7.11.0" nbconvert = "^7.11.0"

View File

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