Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmasuch committed Aug 17, 2024
1 parent 3115ab8 commit 34640ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
types: [published]
jobs:
publish:
environment: release # needed for PyPI OIDC
environment:
name: release # needed for PyPI OIDC
url: https://pypi.org/p/streamlit-pydantic
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "streamlit-pydantic"
version = "0.1.0"
# dynamic = ["version"]
dynamic = ["version"]
description = "Auto-generate Streamlit UI from Pydantic Models & Dataclasses."
readme = "README.md"
authors = [{ name = "Lukas Masuch", email = "[email protected]" }]
Expand Down Expand Up @@ -67,6 +66,9 @@ dev-dependencies = ["pytest", "mypy", "ruff", "types-dataclasses", "lazydocs"]
[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.targets.wheel]
packages = ["src/streamlit_pydantic"]

Expand Down

0 comments on commit 34640ca

Please sign in to comment.