Skip to content

Commit

Permalink
Merge pull request #1 from hugovk/add-3.11
Browse files Browse the repository at this point in the history
Add support for Python 3.11
  • Loading branch information
thombashi authored Feb 18, 2023
2 parents b162600 + 11d9549 commit e4ea1ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 22 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,25 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.8']
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: windows-latest
python-version: '3.6'
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev', 'pypy-3.8']
os: [ubuntu-20.04, macos-latest, windows-latest]
timeout-minutes: 20

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

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
setup.py
**/requirements.txt
- name: Install pip
run: python -m pip install --upgrade --disable-pip-version-check 'pip>=21.1'

- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: Cache pip
uses: actions/cache@v2
with:
path: |
${{ steps.pip-cache.outputs.dir }}
./.tox
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('setup.py', '**/requirements.txt') }}
restore-keys: ${{ matrix.os }}-${{ matrix.python-version }}-pip-

- name: Install dependencies
run: python -m pip install --upgrade --disable-pip-version-check tox

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exclude = '''
)/
| docs/conf.py
'''
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
target-version = ['py36', 'py37', 'py38', 'py39', 'py310', 'py311']

[tool.coverage.run]
source = ['tabledata']
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def get_release_command_class() -> Dict[str, setuptools.Command]:
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{36,37,38,39,310}
py{36,37,38,39,310,311,312}
build
clean
cov
Expand Down

0 comments on commit e4ea1ec

Please sign in to comment.