Skip to content

Commit

Permalink
Support Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
KotlinIsland committed Nov 10, 2022
1 parent 8333a14 commit 88831cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10.6']
python-version: ['3.8', '3.9', '3.10.6', '3.11']

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering"
]
packages = [
Expand All @@ -30,12 +31,13 @@ packages = [
"Documentation" = "https://pandas.pydata.org/pandas-docs/stable"

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
python = ">=3.8,<3.12"
types-pytz = ">= 2022.1.1"

[tool.poetry.dev-dependencies]
mypy = "==0.990"
pyarrow = ">=9.0.0"
# Until pyarrow releases wheels for 3.11 this is required to make the ci pass
pyarrow = { version = ">=9.0.0", python = "<3.11" }
pytest = ">=7.1.2"
pyright = ">=1.1.278"
poethepoet = "0.16.0"
Expand All @@ -47,8 +49,8 @@ pre-commit = ">=2.19.0"
black = ">=22.8.0"
isort = ">=5.10.1"
openpyxl = ">=3.0.10"
tables = ">=3.7.0"
lxml = ">=4.7.1,<4.9.0"
tables = { version = ">=3.7.0", python = "<3.11" }
lxml = { version = ">=4.7.1,<4.9.0", python = "<3.11" }
pyreadstat = ">=1.1.9"
xlrd = ">=2.0.1"
pyxlsb = ">=1.0.9"
Expand Down
5 changes: 5 additions & 0 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pathlib
from pathlib import Path
import sqlite3
import sys
from typing import (
TYPE_CHECKING,
Any,
Expand Down Expand Up @@ -69,6 +70,10 @@
CWD = os.path.split(os.path.abspath(__file__))[0]


if sys.version_info >= (3, 11):
# This is only needed temporarily due to no wheels being available for arrow on 3.11
_arrow = pytest.importorskip("arrow")

@pytest.mark.skipif(WINDOWS, reason="ORC not available on windows")
def test_orc():
with ensure_clean() as path:
Expand Down

0 comments on commit 88831cf

Please sign in to comment.