99 rm -rf build/ dist/ # Cleanup build dir
1010
1111setup :
12- brew install pandoc sphinx-doc
12+ brew install pandoc sphinx-doc uv
1313 brew link --force sphinx-doc
14- python3 -m pip install -r requirements.txt
14+ uv sync
1515
1616build : clean
17- # Upgrade setup tools
18- python3 -m pip install --user --upgrade setuptools wheel twine
19- # Build package
20- python3 setup.py sdist bdist_wheel
21- # Check package
22- python3 -m twine check dist/*
23-
17+ uv build
2418
2519release_debug : documentation
2620 ./release.py test release
@@ -38,23 +32,23 @@ lint_python3:
3832# adbe/adbe.py:764:8: W0601: Global variable 'screen_record_file_path_on_device' undefined at the module level (global-variable-undefined)
3933# adbe/adbe.py:752:4: W0621: Redefining name 'screen_record_file_path_on_device' from outer scope (line 759) (redefined-outer-name)
4034# C0111: Missing function docstring (missing-docstring)
41- pylint --disable=C0103,C0111,C0209,W1514 release.py setup.py
42- pylint adbe/*.py tests/*.py --disable=R0123,R0911,R0912,R0914,R0915,R1705,R1710,C0103,C0111,C0209,C0301,C0302,C1801,W0511,W0621,W0601,W0602,W0603
43- flake8 adbe --count --ignore=F401,E126,E501,W504 --show-source --statistics
35+ uv run -- pylint --disable=C0103,C0111,C0209,W1514 release.py setup.py
36+ uv run -- pylint adbe/*.py tests/*.py --disable=R0123,R0911,R0912,R0914,R0915,R1705,R1710,C0103,C0111,C0209,C0301,C0302,C1801,W0511,W0621,W0601,W0602,W0603
37+ uv run -- flake8 adbe --count --ignore=F401,E126,E501,W504 --show-source --statistics
4438 # Default complexity limit is 10
4539 # Default line length limit is 127
46- flake8 adbe --count --exit-zero --ignore=F401,E126,E501,W504 --max-complexity=13 --max-line-length=127 --statistics
40+ uv run -- flake8 adbe --count --exit-zero --ignore=F401,E126,E501,W504 --max-complexity=13 --max-line-length=127 --statistics
4741
4842# To run a single test, for example, test_file_move3, try this
4943# python3 -m pytest -v tests/adbe_tests.py -k test_file_move3
5044test_python3 :
5145 echo " Wait for device"
5246 adb wait-for-device
5347 echo " Run the tests"
54- python3 -m pytest -v tests/adbe_tests.py # Python3 tests
48+ uv run -- pytest -v tests/adbe_tests.py # Python3 tests
5549
5650test_python3_installation :
5751 echo " Wait for device"
5852 adb wait-for-device
5953 echo " Run the tests"
60- python3 -m pytest -v tests/adbe_tests.py --durations=0 --testpythoninstallation true
54+ uv run -- pytest -v tests/adbe_tests.py --durations=0 --testpythoninstallation true
0 commit comments