@@ -18,28 +18,28 @@ all: clean install readme doc lint test build oobt check
1818clean :
1919 find . -name ' *.pyc' -delete
2020 find . -type d -name " __pycache__" -delete
21- pip3 uninstall serpapi
21+ python3 -m pip uninstall serpapi
2222
2323# lint check
2424lint :
25- pylint serpapi
25+ python3 -m pylint serpapi
2626
2727# test with Python 3
2828test :
29- pytest --cov=serpapi --cov-report html tests/* .py
29+ python3 -mpytest --cov=serpapi --cov-report html tests/* .py
3030
3131# install dependencies
3232#
3333# pytest-cov - code coverage extension for pytest
3434# sphinx - documentation
3535# twine - release automation
3636install :
37- pip3 install -U setuptools
38- pip3 install -r requirements.txt
39- pip3 install pylint
40- pip3 install pytest-cov
41- pip3 install twine
42- pip3 install sphinx
37+ python3 -m pip install -U setuptools
38+ python3 -m pip install -r requirements.txt
39+ python3 -m pip install pylint
40+ python3 -m pip install pytest-cov
41+ python3 -m pip install twine
42+ python3 -m pip install sphinx
4343
4444readme :
4545 erb -T ' -' README.md.erb > README.md
@@ -53,17 +53,17 @@ build:
5353
5454# out of box testing / user acceptance before delivery
5555oobt : build
56- pip3 install ./${dist}
56+ python3 -m pip install ./${dist}
5757 python3 oobt/demo.py
5858
5959
6060check : oobt
61- twine check ${dist}
61+ python3 -m twine check ${dist}
6262
6363release : # check
64- twine upload ${dist}
64+ python3 -m twine upload ${dist}
6565
6666# run example only
6767# and display output (-s)
6868example :
69- pytest -s " tests/test_example.py::TestExample::test_async"
69+ python3 -m pytest -s " tests/test_example.py::TestExample::test_async"
0 commit comments