Skip to content

Commit

Permalink
chore: Add support for python 3.11 (#1115)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Boucher <eric.p.boucher@gmail.com>
  • Loading branch information
laurentS and ericboucher authored Nov 4, 2022
1 parent 2cc6d56 commit 75965be
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 146 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ jobs:
- { session: tests, python-version: "3.8", os: "ubuntu-latest" }
- { session: tests, python-version: "3.9", os: "ubuntu-latest" }
- { session: tests, python-version: "3.10", os: "ubuntu-latest" }
- { session: tests, python-version: "3.11", os: "ubuntu-latest" }
- { session: tests, python-version: "3.7", os: "macos-latest" }
- { session: tests, python-version: "3.8", os: "macos-latest" }
- { session: tests, python-version: "3.9", os: "macos-latest" }
- { session: tests, python-version: "3.10", os: "macos-latest" }
- { session: tests, python-version: "3.11", os: "macos-latest" }
- { session: tests, python-version: "3.7", os: "windows-latest" }
- { session: tests, python-version: "3.8", os: "windows-latest" }
- { session: tests, python-version: "3.9", os: "windows-latest" }
- { session: tests, python-version: "3.10", os: "windows-latest" }
- { session: tests, python-version: "3.11", os: "windows-latest" }
- { session: doctest, python-version: "3.10", os: "ubuntu-latest" }
- { session: mypy, python-version: "3.8", os: "ubuntu-latest" }

Expand Down
8 changes: 6 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
raise SystemExit(dedent(message)) from None

package = "singer_sdk"
python_versions = ["3.10", "3.9", "3.8", "3.7"]
python_versions = ["3.11", "3.10", "3.9", "3.8", "3.7"]
main_python_version = "3.10"
locations = "singer_sdk", "tests", "noxfile.py", "docs/conf.py"
nox.options.sessions = (
Expand Down Expand Up @@ -58,7 +58,6 @@ def tests(session: Session) -> None:
"pytest",
"freezegun",
"pandas",
"pyarrow",
"requests-mock",
# Cookiecutter tests
"black",
Expand All @@ -70,6 +69,11 @@ def tests(session: Session) -> None:
"flake8-docstrings",
"mypy",
)
# temp fix until pyarrow is supported on python 3.11
if session.python != "3.11":
session.install(
"pyarrow",
)

try:
session.run(
Expand Down
Loading

0 comments on commit 75965be

Please # to comment.