Skip to content

Commit 095b4cd

Browse files
committed
fix: enhance project configuration with dynamic versioning and update CI workflow for artifact handling
1 parent 6f5ccda commit 095b4cd

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
with:
24-
fetch-depth: 1
24+
fetch-depth: 0
2525

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

33-
- name: Install python packages
34-
run: |
35-
uv sync
36-
- name: Build a binary wheel and a source tarball
37-
run: |
38-
uv build --sdist --wheel --out-dir dist
33+
- name: Build
34+
run: uv build
3935

40-
- name: Publish build artifacts
36+
- name: Upload build artifacts
4137
uses: actions/upload-artifact@v4
4238
with:
4339
name: pypi-dists
44-
path: "./dist"
40+
path: dist/
4541

4642
pypi-publish:
4743
runs-on: ubuntu-latest
@@ -73,6 +69,7 @@ jobs:
7369
uses: pypa/gh-action-pypi-publish@release/v1
7470
with:
7571
packages-dir: dist/
72+
7673
github-release:
7774
name: >-
7875
Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub

pyproject.toml

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

55
[project]
66
name = "browser-use-mcp-server"
7-
version = "0.1.3"
7+
dynamic = ["version"]
88
description = "MCP browser-use server library"
99
readme = "README.md"
1010
requires-python = ">=3.11,<4.0"
@@ -78,3 +78,11 @@ include = ["server"]
7878

7979
[tool.hatch.build.targets.wheel]
8080
packages = ["src/browser_use_mcp_server", "server"]
81+
82+
[tool.hatch.version]
83+
source = "uv-dynamic-versioning"
84+
85+
[tool.uv-dynamic-versioning]
86+
vcs = "git"
87+
style = "pep440"
88+
bump = true

0 commit comments

Comments
 (0)