Skip to content

Commit

Permalink
feat: Support Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 12, 2024
1 parent 85de855 commit 99deb84
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ jobs:
fail-fast: false
matrix:
script: ["test:integration"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
include:
- { script: "test:dependencies", python-version: "3.12" }
- { script: "typing:check", python-version: "3.12" }
Expand All @@ -44,6 +50,7 @@ jobs:
id: setup-python
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip

- name: Upgrade pip
Expand All @@ -53,11 +60,12 @@ jobs:
- name: Install Hatch
run: |
pipx install --python '${{ steps.setup-python.outputs.python-path }}' hatch
pipx install hatch
hatch --version
- name: Run
env:
HATCH_PYTHON: ${{ matrix.python-version }}
TAP_NEON_API_KEY: ${{ secrets.TAP_NEON_API_KEY }}
run: |
hatch run ${{ matrix.script }}
21 changes: 20 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
]
dependencies = [
"requests>=2.26",
"singer-sdk~=0.38.0",
"singer-sdk~=0.39.0a1",
]
optional-dependencies.dev = [
"tap-neon[testing,typing]",
]
optional-dependencies.testing = [
"deptry>=0.12",
Expand All @@ -54,6 +58,17 @@ scripts."tap-neon" = "tap_neon.tap:TapNeon.cli"
[tool.hatch.version]
source = "vcs"

[tool.hatch.envs.default]
installer = "uv"

[tool.hatch.envs.default.env-vars]
UV_PRERELEASE = "allow"

[tool.hatch.envs.default.overrides]
env.GITHUB_ACTIONS.dev-mode = { value = false, if = [
"true",
] }

[tool.hatch.envs.sync.scripts]
console = "tap-neon {args}"
jsonl = "tap-neon {args} > tap-neon.jsonl"
Expand All @@ -75,6 +90,7 @@ python = [
"3.10",
"3.11",
"3.12",
"3.13",
]

[tool.hatch.envs.typing]
Expand Down Expand Up @@ -125,6 +141,9 @@ DEP002 = [
"pytest",
]

[tool.pyproject-fmt]
max_supported_python = "3.13"

[tool.pytest.ini_options]
addopts = "-vvv"

Expand Down

0 comments on commit 99deb84

Please sign in to comment.