Skip to content

Commit

Permalink
feat: Support Python 3.12 🐍
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed May 25, 2023
1 parent 196f05a commit af9112e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 36 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
tests:
name: Test on ${{ matrix.python-version }} (${{ matrix.session }}) / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental || false }}
env:
NOXSESSION: ${{ matrix.session }}
strategy:
Expand All @@ -30,6 +31,7 @@ jobs:
include:
- { session: doctest, python-version: "3.10", os: "ubuntu-latest" }
- { session: mypy, python-version: "3.8", os: "ubuntu-latest" }
- { session: tests, python-version: "3.12", os: "ubuntu-latest", experimental: true }

steps:
- name: Check out the repository
Expand All @@ -45,7 +47,7 @@ jobs:
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.6.0
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}${{ matrix.experimental && '-dev' || '' }}
architecture: x64
cache: 'pip'
cache-dependency-path: 'poetry.lock'
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"""

package = "singer_sdk"
python_versions = ["3.11", "3.10", "3.9", "3.8", "3.7"]
python_versions = ["3.12", "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
66 changes: 33 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ license = "Apache-2.0"
"Youtube" = "https://www.youtube.com/meltano"

[tool.poetry.dependencies]
python = "<3.12,>=3.7.1"
python = "<4.0,>=3.7.1"
backoff = ">=2.0.0,<3.0"
pendulum = "^2.1.0"
click = "~=8.0"
Expand Down

0 comments on commit af9112e

Please # to comment.