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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.12 #239

Open
wants to merge 4 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
timeout-minutes: 5

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: cache pip
uses: actions/cache@v3
Expand All @@ -27,7 +27,7 @@ jobs:
${{ runner.os }}-

- name: setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: install tools
Expand All @@ -42,7 +42,7 @@ jobs:
- name: script/test install_check_version
run: stages=venv,check_version script/test

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
Expand All @@ -58,21 +58,21 @@ jobs:

steps:
- name: cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-publish
restore-keys: |
${{ runner.os }}-pip-

- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: install tools
run: pip install twine

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: dist
path: dist/
Expand Down Expand Up @@ -104,13 +104,13 @@ jobs:
${{ runner.os }}-pip-

- name: setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: install tools
run: pip install twine

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: dist
path: dist/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
timeout-minutes: 5

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@v4
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
schedule:
- cron: "34 4 */7 * *" # every week, time chosen by RNG
env:
FORCE_COLOR: 1
jobs:
test:
name: "test ${{ matrix.py }}"
Expand All @@ -24,17 +26,19 @@ jobs:
- { py: 3.9, ignore-error: false, os: ubuntu-latest }
- { py: "3.10", ignore-error: false, os: ubuntu-latest }
- { py: "3.11", ignore-error: false, os: ubuntu-latest }
- { py: "3.12", ignore-error: false, os: ubuntu-latest }
- { py: 3.x, ignore-error: true, os: ubuntu-latest }
- { py: pypy2.7, ignore-error: false, os: ubuntu-latest }
- { py: pypy3.9, ignore-error: false, os: ubuntu-latest }

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup python ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
allow-prereleases: true
cache: pip
cache-dependency-path: |
pyproject.toml
Expand All @@ -56,7 +60,7 @@ jobs:
if: false && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'httplib2/httplib2')
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: cache pip
uses: actions/cache@v3
Expand Down
6 changes: 3 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ mock==2.0.0;python_version<"3.3"
pytest-cov==2.12.1
pytest-forked==1.3.0
pytest-randomly==1.2.3
pytest-timeout==1.4.2
pytest-timeout==2.1.0
pytest-xdist==1.34.0
pytest==4.6.11;python_version<="3.4"
pytest==6.1.2;python_version>"3.4" and python_version<"3.10"
pytest==6.2.5;python_version>="3.10"
six==1.10.0
pytest==7.4.2;python_version>="3.10"
six==1.16.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def read_requirements(name):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
],
Expand Down