Skip to content

Commit acadda0

Browse files
committed
feat: add support for python library build/publishing
1 parent c64757b commit acadda0

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Python 🐍 distribution to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.12'
20+
21+
- name: Install build tool
22+
run: pip install build
23+
24+
- name: Build package
25+
run: python -m build
26+
27+
- name: Publish to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1
29+
with:
30+
password: ${{ secrets.PYPI_TOKEN }}

appwrite_lab/cli/list_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from appwrite_lab import get_global_labs
2-
from appwrite_lab.utils import print_table, print_2d_table, console
2+
from appwrite_lab.utils import print_table
33
from appwrite_lab._orchestrator import get_template_versions
44
import typer
55

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "appwrite-lab"
37
version = "0.0.1"
48
description = "Zero-click Appwrite test environments."
59
readme = "README.md"
6-
requires-python = ">=3.12"
7-
dependencies = ["playwright", "typer"]
8-
10+
requires-python = ">=3.11"
11+
dependencies = ["playwright", "typer>=0.16.0", "python-dotenv>=1.1.0"]
12+
license = { text = "MIT" }
913
[project.scripts]
10-
appwrite-lab = "appwrite_lab.cli.entry:app"
14+
appwrite-lab = "appwrite_lab.cli.entry:app"

0 commit comments

Comments
 (0)