Skip to content

Commit dbd04e7

Browse files
authored
auto release (#6)
* auto-release * no auto for altair for now * use uv.lock
1 parent 2d4fd3d commit dbd04e7

File tree

5 files changed

+1244
-544
lines changed

5 files changed

+1244
-544
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish reflex-pyplot
2+
3+
on:
4+
push:
5+
tags:
6+
- "pyplot-v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
environment: release
12+
permissions:
13+
id-token: write
14+
contents: read
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up uv
23+
uses: astral-sh/setup-uv@v4
24+
with:
25+
version: "latest"
26+
27+
- name: Set up Python
28+
run: uv python install
29+
30+
- name: Build package
31+
run: |
32+
cd pyplot
33+
uv build
34+
35+
- name: Publish to PyPI
36+
run: |
37+
cd pyplot
38+
uv publish
39+
env:
40+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_PYPLOT_TOKEN }}
41+

altair/pyproject.toml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling", "uv-dynamic-versioning"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "reflex-altair"
7-
version = "0.1.1"
7+
dynamic = ["version"]
88
description = "Reflex custom component to render altair/vega"
99
readme = "README.md"
1010
license = { text = "Apache-2.0" }
@@ -19,8 +19,22 @@ classifiers = ["Development Status :: 4 - Beta"]
1919
homepage = "https://github.com/LeoGrosjean/reflex-graphing/tree/main/altair"
2020
source = "https://github.com/LeoGrosjean/reflex-graphing/tree/main/altair"
2121

22-
[project.optional-dependencies]
23-
dev = ["build", "twine"]
22+
[tool.hatch.version]
23+
source = "uv-dynamic-versioning"
2424

25-
[tool.setuptools.packages.find]
26-
where = ["custom_components"]
25+
[tool.uv-dynamic-versioning]
26+
vcs = "git"
27+
style = "pep440"
28+
bump = true
29+
metadata = false
30+
31+
[tool.hatch.build.targets.wheel]
32+
packages = ["custom_components"]
33+
34+
[dependency-groups]
35+
dev = [
36+
"build",
37+
"twine",
38+
"pytest",
39+
"ruff"
40+
]

0 commit comments

Comments
 (0)