Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj443 committed Nov 20, 2023
1 parent 0ab8c85 commit 9654a0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MARKER=.initialized-with-makefile
VENVDEPS=$(REQUIREMENTS setup.py)

$(VENV):
python -m venv .venv
$(VENV)/python -m pip install --upgrade pip setuptools wheel
python3 -m venv .venv
$(VENV)/python3 -m pip install --upgrade pip setuptools wheel

$(VENV)/$(MARKER): $(VENVDEPS) | $(VENV)
$(VENV)/pip install $(foreach path,$(REQUIREMENTS),-r $(path))
Expand All @@ -19,13 +19,13 @@ lint: venv
$(VENV)/pylint percy/* tests/*

test: venv
$(VENV)/python -m unittest discover
$(VENV)/python3 -m unittest discover

clean:
rm -rf $$(cat .gitignore)

build: venv
$(VENV)/python setup.py sdist bdist_wheel
$(VENV)/python3 setup.py sdist bdist_wheel

release: build
$(VENV)/twine upload dist/* --username __token__ --password ${PYPI_TOKEN}
Expand Down

0 comments on commit 9654a0c

Please sign in to comment.