Skip to content

Commit b3d6652

Browse files
committed
CI: add release workflow
1 parent 287a9e2 commit b3d6652

File tree

4 files changed

+67
-1
lines changed

4 files changed

+67
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test FastAPI bindings
2+
3+
on:
4+
workflow_dispatch:
5+
inputs: {}
6+
push:
7+
branches:
8+
- release
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- "python-fastapi/src/gel_auth_fastapi/_version.py"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: python-fastapi
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
26+
with:
27+
version: "0.6.2"
28+
29+
- name: Build
30+
run: uv build
31+
32+
- uses: actions/upload-artifact@v4
33+
with:
34+
name: dist
35+
path: python-fastapi/dist/*

python-fastapi/examples/basic-async/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
description = "Basic async example project"
55
readme = "README.md"
66
requires-python = ">=3.13"
7+
classifiers = ["Private :: Do Not Upload"]
78
dependencies = [
89
"gel-auth-fastapi",
910
]

python-fastapi/pyproject.toml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
22
name = "gel-auth-fastapi"
3-
version = "0.1.0"
43
description = "Gel auth extension binding for FastAPI"
54
readme = "README.md"
65
authors = [
76
{ name = "Gel Data Inc.", email = "[email protected]" }
87
]
98
requires-python = ">=3.9"
109
dependencies = []
10+
dynamic = ["version"]
1111

1212
[build-system]
1313
requires = ["hatchling"]
@@ -39,3 +39,14 @@ indent-width = 4
3939
[tool.black]
4040
line-length = 80
4141
target-version = ["py39", "py310", "py311", "py312", "py313"]
42+
43+
[tool.hatch.version]
44+
path = "src/gel_auth_fastapi/_version.py"
45+
46+
[tool.hatch.build.targets.sdist]
47+
exclude = [
48+
"/examples",
49+
]
50+
51+
[tool.hatch.build.targets.sdist.force-include]
52+
"../LICENSE" = "LICENSE"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# This source file is part of the Gel open source project.
3+
#
4+
# Copyright 2025-present Gel Data Inc. and the Gel authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
19+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)