@@ -31,13 +31,13 @@ setup: setup-prod setup-dev
3131
3232# # Install needed dependencies
3333setup-prod :
34- python -m pip install --upgrade pip
34+ python3 -m pip install --upgrade pip
3535 pip install pipenv
3636 pipenv install
3737
3838# # Install developer dependencies
3939setup-dev :
40- python -m pip install --upgrade pip
40+ python3 -m pip install --upgrade pip
4141 pip install pipenv
4242 pipenv install --dev
4343
@@ -46,11 +46,11 @@ setup-dev:
4646# # Build the package
4747build :
4848 # Builds the package distributions
49- pipenv run python3 setup.py sdist bdist_wheel --universal
49+ pipenv run python3 -m build
5050
5151local-install :
5252 # Locally install mapillary - DO THIS ONLY AFTER RUNNING `make build`
53- pipenv run pip3 install -e .
53+ pipenv run pip install -e .
5454
5555# CODE QUALITY
5656
@@ -59,18 +59,18 @@ style: format lint
5959
6060# # # Formatting
6161format :
62- @ black src/mapillary
63- @ black tests/
62+ @ pipenv run black src/mapillary
63+ @ pipenv run black tests/
6464
6565# # # Linting
6666lint :
67- @ # stop the build if there are Python syntax errors or undefined names
68- @ flake8 src/mapillary --count --select=E9,F63,F7,F82 --show-source --statistics
69- @ flake8 tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
67+ @ # stop the build if there are python3 syntax errors or undefined names
68+ @ pipenv run flake8 src/mapillary --count --select=E9,F63,F7,F82 --show-source --statistics
69+ @ pipenv run flake8 tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
7070
7171 @ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
72- @ flake8 src/mapillary --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
73- @ flake8 tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
72+ @ pipenv run flake8 src/mapillary --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
73+ @ pipenv run flake8 tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
7474
7575# DOCUMENTATION
7676
@@ -82,7 +82,7 @@ docs-gen: docs-sphinx docs-py docs-start
8282docs-sphinx :
8383 sphinx-apidoc -o sphinx-docs ./src/ sphinx-apidoc --full -A ' Mapillary' ; cd sphinx-docs; echo " $$ PYTHON_SCRIPT" >> conf.py; make markdown;
8484
85- # # # Python Script for moving markdown from sphinx -> docusaurus
85+ # # # python3 Script for moving markdown from sphinx -> docusaurus
8686docs-py :
8787 python3 scripts/documentation.py
8888
@@ -132,7 +132,7 @@ dump-clean:
132132
133133# # Execute pytest on tests/
134134test :
135- @ pytest --log-cli-level=20
135+ @pipenv run pytest --log-cli-level=20
136136
137137test-no-warn :
138138 @ pytest --log-cli-level=20 --disable-warnings
0 commit comments