Skip to content

Commit 98666d9

Browse files
committed
Support Python 3.11
1 parent 69710a1 commit 98666d9

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest, windows-latest, macos-latest]
17-
python-version: ['3.8', '3.9', '3.10.6']
17+
python-version: ['3.8', '3.9', '3.10.6', '3.11']
1818

1919
steps:
2020
- uses: actions/checkout@v3

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.8",
2020
"Programming Language :: Python :: 3.9",
2121
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
2223
"Topic :: Scientific/Engineering"
2324
]
2425
packages = [
@@ -31,12 +32,13 @@ packages = [
3132
"Source Code" = "https://github.com/pandas-dev/pandas-stubs"
3233

3334
[tool.poetry.dependencies]
34-
python = ">=3.8,<3.11"
35+
python = ">=3.8,<3.12"
3536
types-pytz = ">= 2022.1.1"
3637

3738
[tool.poetry.dev-dependencies]
3839
mypy = "==0.971"
39-
pyarrow = ">=9.0.0"
40+
# Until pyarrow releases wheels for 3.11 this is required to make the ci pass
41+
pyarrow = { version = ">=9.0.0", python = "<3.11" }
4042
pytest = ">=7.1.2"
4143
pyright = ">=1.1.266"
4244
poethepoet = "0.16.0"
@@ -48,8 +50,8 @@ pre-commit = ">=2.19.0"
4850
black = ">=22.8.0"
4951
isort = ">=5.10.1"
5052
openpyxl = ">=3.0.10"
51-
tables = ">=3.7.0"
52-
lxml = ">=4.7.1,<4.9.0"
53+
tables = { version = ">=3.7.0", python = "<3.11" }
54+
lxml = { version = ">=4.7.1,<4.9.0", python = "<3.11" }
5355
pyreadstat = ">=1.1.9"
5456
xlrd = ">=2.0.1"
5557
pyxlsb = ">=1.0.9"

tests/test_io.py

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pathlib
66
from pathlib import Path
77
import sqlite3
8+
import sys
89
from typing import (
910
TYPE_CHECKING,
1011
Any,
@@ -69,6 +70,10 @@
6970
CWD = os.path.split(os.path.abspath(__file__))[0]
7071

7172

73+
if sys.version_info >= (3, 11):
74+
# This is only needed temporarily due to no wheels being available for arrow on 3.11
75+
_arrow = pytest.importorskip("arrow")
76+
7277
@pytest.mark.skipif(WINDOWS, reason="ORC not available on windows")
7378
def test_orc():
7479
with ensure_clean() as path:

0 commit comments

Comments
 (0)