Skip to content

Commit 0882e67

Browse files
authored
Merge pull request #3 from teaql/20260813-public-package-release
Prepare trusted PyPI release for teaql
2 parents cce3f0d + ad33abc commit 0882e67

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish Python package
2+
3+
on:
4+
push:
5+
tags:
6+
- "python-v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
- run: python -m pip install --upgrade build
17+
- run: python -m pip install --editable ".[test]"
18+
- name: Verify tag matches package version
19+
run: test "${GITHUB_REF_NAME#python-v}" = "$(python -c 'import importlib.metadata; print(importlib.metadata.version("teaql"))')"
20+
- run: python -m pytest
21+
- run: python -m build
22+
- uses: actions/upload-artifact@v4
23+
with:
24+
name: python-distributions
25+
path: dist/
26+
27+
publish:
28+
needs: build
29+
runs-on: ubuntu-latest
30+
environment:
31+
name: pypi
32+
url: https://pypi.org/project/teaql/
33+
permissions:
34+
id-token: write
35+
steps:
36+
- uses: actions/download-artifact@v4
37+
with:
38+
name: python-distributions
39+
path: dist/
40+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ version = "0.1.0"
88
description = "TeaQL Runtime and Data Service for Python"
99
readme = "README.md"
1010
requires-python = ">=3.10"
11+
license = "Apache-2.0"
12+
authors = [{ name = "TeaQL" }]
13+
keywords = ["teaql", "query", "database", "orm"]
14+
classifiers = [
15+
"Development Status :: 3 - Alpha",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.10",
18+
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
21+
"Typing :: Typed",
22+
]
1123
dependencies = [
1224
"pydantic>=2.0.0",
1325
"aiosqlite>=0.19.0",
@@ -23,6 +35,18 @@ test = [
2335
"mypy>=1.0.0",
2436
]
2537

38+
[project.urls]
39+
Homepage = "https://teaql.io"
40+
Documentation = "https://teaql.io/docs"
41+
Repository = "https://github.com/teaql/teaql-python"
42+
Issues = "https://github.com/teaql/teaql-python/issues"
43+
44+
[tool.setuptools.packages.find]
45+
where = ["src"]
46+
47+
[tool.setuptools.package-data]
48+
teaql = ["py.typed"]
49+
2650
[tool.pytest.ini_options]
2751
asyncio_mode = "auto"
2852
testpaths = ["tests"]

src/teaql/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)