Skip to content
Merged
15 changes: 6 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
fetch-depth: 0

- name: Set up uv and Python
uses: astral-sh/setup-uv@v5
Expand All @@ -30,18 +30,14 @@ jobs:
python-version: "3.13"
cache-dependency-glob: "pyproject.toml"

- name: Install python packages
run: |
uv sync
- name: Build a binary wheel and a source tarball
run: |
uv build --sdist --wheel --out-dir dist
- name: Build
run: uv build

- name: Publish build artifacts
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: pypi-dists
path: "./dist"
path: dist/

pypi-publish:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -73,6 +69,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/

github-release:
name: >-
Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub
Expand Down
12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"

[project]
name = "browser-use-mcp-server"
version = "0.1.3"
dynamic = ["version"]
description = "MCP browser-use server library"
readme = "README.md"
requires-python = ">=3.11,<4.0"
Expand Down Expand Up @@ -78,3 +78,11 @@ include = ["server"]

[tool.hatch.build.targets.wheel]
packages = ["src/browser_use_mcp_server", "server"]

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

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