Skip to content

Commit 6ce3ff7

Browse files
committed
Release 2.0.2
1 parent 9528bc9 commit 6ce3ff7

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,27 @@ jobs:
3535

3636
- name: Test
3737
run: poetry run pytest -rP .
38+
39+
publish:
40+
needs: [compile, test]
41+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout repo
45+
uses: actions/checkout@v4
46+
- name: Set up python
47+
uses: actions/setup-python@v4
48+
with:
49+
python-version: 3.8
50+
- name: Bootstrap poetry
51+
run: |
52+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
53+
- name: Install dependencies
54+
run: poetry install
55+
- name: Publish to pypi
56+
run: |
57+
poetry config repositories.remote https://upload.pypi.org/legacy/
58+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
59+
env:
60+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
61+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[project]
2-
name = "browser-use"
2+
name = "browser-use-sdk"
33

44
[tool.poetry]
5-
name = "browser-use"
6-
version = "0.0.0"
7-
description = ""
5+
name = "browser-use-sdk"
6+
version = "2.0.2"
7+
description = "The official Python library for the Browser Use API"
88
readme = "README.md"
99
authors = []
1010
keywords = []

src/browser_use_sdk/core/client_wrapper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25+
"User-Agent": "browser-use-sdk/2.0.2",
2526
"X-Fern-Language": "Python",
26-
"X-Fern-SDK-Name": "browser-use",
27-
"X-Fern-SDK-Version": "0.0.0",
27+
"X-Fern-SDK-Name": "browser-use-sdk",
28+
"X-Fern-SDK-Version": "2.0.2",
2829
**(self.get_custom_headers() or {}),
2930
}
3031
headers["X-Browser-Use-API-Key"] = self.api_key

src/browser_use_sdk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from importlib import metadata
22

3-
__version__ = metadata.version("browser-use")
3+
__version__ = metadata.version("browser-use-sdk")

0 commit comments

Comments
 (0)