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 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 }}
Original file line number Diff line number Diff line change 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 "
88readme = " README.md"
99authors = []
1010keywords = []
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11from importlib import metadata
22
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