Skip to content

Commit 88831cf

Browse files
committed
Support Python 3.11
1 parent 8333a14 commit 88831cf

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 4 deletions
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 = [
@@ -30,12 +31,13 @@ packages = [
3031
"Documentation" = "https://pandas.pydata.org/pandas-docs/stable"
3132

3233
[tool.poetry.dependencies]
33-
python = ">=3.8,<3.11"
34+
python = ">=3.8,<3.12"
3435
types-pytz = ">= 2022.1.1"
3536

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

tests/test_io.py

Lines changed: 5 additions & 0 deletions
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)