Skip to content

Commit 0fac59c

Browse files
authored
Python 3.13 support (#7)
1 parent ad676fd commit 0fac59c

File tree

3 files changed

+17
-24
lines changed

3 files changed

+17
-24
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-python@v5
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919
- run: pip install uv
20-
- run: uv venv
21-
- run: uv pip install --requirement pyproject.toml
22-
- run: uv pip install setuptools setuptools-scm wheel build
23-
- run: .venv/bin/python -m build --no-isolation
24-
- name: Publish package distributions to PyPI
25-
uses: pypa/gh-action-pypi-publish@release/v1
20+
- run: uv build
21+
- run: uv publish

.github/workflows/test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.10", "3.11", "3.12"]
14+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- run: pip install uv
2121
- run: uv venv
22-
- run: uv pip install --requirement pyproject.toml --all-extras
23-
- run: uv pip install --editable .
24-
- run: .venv/bin/pytest
22+
- run: uv sync
23+
- run: uv run pytest
2524

2625
lint:
2726
runs-on: ubuntu-latest
@@ -30,7 +29,7 @@ jobs:
3029
- uses: actions/setup-python@v5
3130
- run: pip install uv
3231
- run: uv venv
33-
- run: uv pip install --requirement pyproject.toml --all-extras
34-
- run: .venv/bin/ruff format --check .
35-
- run: .venv/bin/ruff check .
36-
- run: .venv/bin/mypy graphql_core_promise
32+
- run: uv sync
33+
- run: uv run ruff format --check .
34+
- run: uv run ruff check .
35+
- run: uv run pyright graphql_core_promise

pyproject.toml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[build-system]
2-
requires = ["setuptools", "setuptools-scm"]
3-
build-backend = "setuptools.build_meta"
4-
51
[project]
62
name = "graphql-core-promise"
73
dynamic = ["version"]
@@ -15,13 +11,15 @@ authors = [
1511
license = { text = "BSD-3-Clause" }
1612
dependencies = ["graphql-core>=3.2", "promise>=2.3"]
1713

18-
[project.optional-dependencies]
19-
dev = ["mypy~=1.9", "pytest~=8.2", "pytest-benchmark~=4.0", "ruff~=0.4"]
14+
[dependency-groups]
15+
dev = ["pyright>=1.1.396", "pytest~=8.2", "pytest-benchmark~=4.0", "ruff~=0.4"]
2016

21-
[tool.setuptools]
22-
packages = ["graphql_core_promise"]
17+
[build-system]
18+
requires = ["hatchling", "hatch-vcs"]
19+
build-backend = "hatchling.build"
2320

24-
[tool.setuptools_scm]
21+
[tool.hatch.version]
22+
source = "vcs"
2523

2624
[tool.ruff.lint]
2725
select = [

0 commit comments

Comments
 (0)