Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Publish

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read # Required for checkout
id-token: write # For trusted publishing if using OIDC

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ./.github/actions/setup_build_env
with:
python-version: "3.10"
run-uv-sync: true
- name: Build and publish
run: |
uv build
uv publish --token ${{ secrets.PYPI_API_TOKEN }}
13 changes: 11 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "reflex"
version = "0.7.6dev1"
dynamic = ["version"]
description = "Web apps in pure Python."
license = { text = "Apache-2.0" }
authors = [
Expand Down Expand Up @@ -62,7 +62,7 @@ documentation = "https://reflex.dev/docs/getting-started/introduction"
reflex = "reflex.reflex:cli"

[build-system]
requires = ["hatchling"]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"

[tool.hatch.build]
Expand All @@ -78,6 +78,15 @@ artifacts = ["*.pyi"]
dependencies = ["plotly", "ruff"]
require-runtime-dependencies = true

[tool.hatch.version]
source = "uv-dynamic-versioning"

[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
bump = true
metadata = false

[tool.pyright]
reportIncompatibleMethodOverride = false

Expand Down
Loading