File tree Expand file tree Collapse file tree 4 files changed +32
-7
lines changed Expand file tree Collapse file tree 4 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 35
35
36
36
- name : Test
37
37
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 }}
Original file line number Diff line number Diff line change 1
1
[project ]
2
- name = " browser-use"
2
+ name = " browser-use-sdk "
3
3
4
4
[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 "
8
8
readme = " README.md"
9
9
authors = []
10
10
keywords = []
Original file line number Diff line number Diff line change @@ -22,9 +22,10 @@ def __init__(
22
22
23
23
def get_headers (self ) -> typing .Dict [str , str ]:
24
24
headers : typing .Dict [str , str ] = {
25
+ "User-Agent" : "browser-use-sdk/2.0.2" ,
25
26
"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 " ,
28
29
** (self .get_custom_headers () or {}),
29
30
}
30
31
headers ["X-Browser-Use-API-Key" ] = self .api_key
Original file line number Diff line number Diff line change 1
1
from importlib import metadata
2
2
3
- __version__ = metadata .version ("browser-use" )
3
+ __version__ = metadata .version ("browser-use-sdk " )
You can’t perform that action at this time.
0 commit comments