You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-22Lines changed: 43 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,8 @@ the Selenium Python binding update might affect the Appium Python Client behavio
56
56
For example, some changes in the Selenium binding could break the Appium client.
57
57
58
58
>**Note**
59
-
> We strongly recommend you manage dependencies with version management tools such as Pipenv and requirements.txt
60
-
> to keep compatible version combinations.
59
+
> We strongly recommend you manage dependencies with version management tools such as
60
+
>[uv](https://docs.astral.sh/uv/) to keep compatible version combinations.
61
61
62
62
63
63
### Quick migration guide from v4 to v5
@@ -448,61 +448,82 @@ You have two methods to extend the read timeout.
448
448
449
449
### Setup
450
450
451
-
- `pip install --user pipenv`
452
-
- `python -m pipenv lock --clear`
453
-
- If you experience `Locking Failed! unknown locale: UTF-8` error, then refer [pypa/pipenv#187](https://github.com/pypa/pipenv/issues/187) to solve it.
454
-
- `python -m pipenv install --dev --system`
455
-
- `pre-commit install`
451
+
```bash
452
+
make install-uv
453
+
exec$SHELL
454
+
make sync-dev
455
+
```
456
+
457
+
Running above commands should automatically setup the virtual environment for the project
458
+
using the default system Python version and put it into the `.venv` folder under the project root.
459
+
If you'd like to customize the Python version then run the following command before `make sync-dev`:
460
+
461
+
```bash
462
+
uv venv --python <V>
463
+
```
464
+
465
+
where `<V>` is the actual Python version, for example `3.12`.
456
466
457
-
### Run tests
467
+
If you want to customize the folder where uv stores the virtual environment by default
468
+
(e.g. `.venv`) then add an argument containing the destination folder path to the above command:
469
+
470
+
```bash
471
+
uv venv /venv/root/folder
472
+
```
473
+
474
+
In order to activate the newly created virtual environment you may either source it:
475
+
476
+
```bash
477
+
source /venv/root/folder/bin/activate
478
+
```
458
479
459
-
You can run all of the tests running on CI via `tox`in your local.
uv run pytest -n 2 test/functional/ios/search_context/find_by_ios_class_chain_tests.py
493
513
```
494
514
495
515
## Release
496
516
497
517
Follow the below steps.
498
518
499
519
```bash
500
-
$ pip install twine
501
-
$ pip install git+git://github.com/vaab/gitchangelog.git # Getting via GitHub repository is necessary for Python 3.7
520
+
uv pip install setuptools
521
+
uv pip install twine
522
+
uv pip install git+https://github.com/vaab/gitchangelog.git # Getting via GitHub repository is necessary for Python 3.7
502
523
# Type the new version number and 'yes' if you can publish it
503
524
# You can test the command with DRY_RUN
504
-
$ DRY_RUN=1 ./release.sh
505
-
$ ./release.sh # release
525
+
DRY_RUN=1 ./release.sh
526
+
./release.sh # release
506
527
```
507
528
508
529
If the `pypi` was not able to publish with user name and password, please try out `-u` and `-p` option by yourself with `twine` such as `twine upload -u <name> -p <pass> dist/Appium-Python-Client-4.1.0.tar.gz`.
0 commit comments