Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.13 and drop EOL 3.8 #105

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

name: Lint package

on: [pull_request, push]
on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 1
Expand All @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Run pre-commit hooks
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,27 @@

name: Test package

on: [pull_request, push]
on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 1

jobs:
build:
name: Run package tests
name: Tests

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.12', 'pypy-3.10']
python-version: ['3.9', '3.13', 'pypy-3.10']

steps:
- name: Checkout
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 }}
- name: Upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/regebro/pyroma
Expand Down
4 changes: 2 additions & 2 deletions pyroma/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class PyPITest(unittest.TestCase):
@unittest.mock.patch("pyroma.pypidata._get_project_data")
def test_distribute(self, projectdatamock):
datafile = resource_filename(__name__, os.path.join("testdata", "jsondata", "distribute.json"))
with open(datafile, "rt", encoding="UTF-8") as file:
with open(datafile, encoding="UTF-8") as file:
projectdatamock.return_value = json.load(file)

proxystub.set_debug_context("distributedata.py", xmlrpclib.ServerProxy, False)
Expand Down Expand Up @@ -308,7 +308,7 @@ def test_distribute(self, projectdatamock):
@unittest.mock.patch("pyroma.pypidata._get_project_data")
def test_complete(self, projectdatamock):
datafile = resource_filename(__name__, os.path.join("testdata", "jsondata", "complete.json"))
with open(datafile, "rt", encoding="UTF-8") as file:
with open(datafile, encoding="UTF-8") as file:
projectdatamock.return_value = json.load(file)

proxystub.set_debug_context("completedata.py", xmlrpclib.ServerProxy, False)
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
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
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Expand All @@ -32,7 +32,7 @@ include_package_data = True
packages = find:
package_dir =
= .
python_requires = >=3.8
python_requires = >=3.9
install_requires =
build>=0.7.0
docutils
Expand Down
Loading