Skip to content

Commit d4a2aed

Browse files
committed
cleanup
- run python using "python3 -m" - convert single quote into double quote - polish README file
1 parent 77ede28 commit d4a2aed

File tree

4 files changed

+159
-159
lines changed

4 files changed

+159
-159
lines changed

Makefile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@ all: clean install readme doc lint test build oobt check
1818
clean:
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
2424
lint:
25-
pylint serpapi
25+
python3 -m pylint serpapi
2626

2727
# test with Python 3
2828
test:
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
3636
install:
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

4444
readme:
4545
erb -T '-' README.md.erb > README.md
@@ -53,17 +53,17 @@ build:
5353

5454
# out of box testing / user acceptance before delivery
5555
oobt: build
56-
pip3 install ./${dist}
56+
python3 -m pip install ./${dist}
5757
python3 oobt/demo.py
5858

5959

6060
check: oobt
61-
twine check ${dist}
61+
python3 -m twine check ${dist}
6262

6363
release: # check
64-
twine upload ${dist}
64+
python3 -m twine upload ${dist}
6565

6666
# run example only
6767
# and display output (-s)
6868
example:
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

Comments
 (0)