mirror of
https://github.com/httpie/cli.git
synced 2024-11-25 01:03:27 +01:00
Makefile improvements
This commit is contained in:
parent
c82c9f0ae4
commit
c6690e0182
47
Makefile
47
Makefile
@ -7,45 +7,36 @@ REQUIREMENTS="requirements-dev.txt"
|
|||||||
TAG="\n\n\033[0;32m\#\#\# "
|
TAG="\n\n\033[0;32m\#\#\# "
|
||||||
END=" \#\#\# \033[0m\n"
|
END=" \#\#\# \033[0m\n"
|
||||||
|
|
||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|
||||||
uninstall-httpie:
|
|
||||||
@echo $(TAG)Uninstalling httpie$(END)
|
|
||||||
@echo
|
|
||||||
- pip uninstall --yes httpie &2>/dev/null
|
|
||||||
@echo "Verifying…"
|
|
||||||
cd .. && ! python -m httpie --version &2>/dev/null
|
|
||||||
@echo "Done"
|
|
||||||
@echo
|
|
||||||
|
|
||||||
uninstall-all: uninstall-httpie
|
|
||||||
|
|
||||||
@echo $(TAG)Uninstalling httpie requirements$(END)
|
|
||||||
- pip uninstall --yes pygments requests
|
|
||||||
|
|
||||||
@echo $(TAG)Uninstalling development requirements$(END)
|
|
||||||
- pip uninstall --yes -r $(REQUIREMENTS)
|
|
||||||
|
|
||||||
init: uninstall-httpie
|
init: uninstall-httpie
|
||||||
@echo $(TAG)Installing dev requirements$(END)
|
@echo $(TAG)Installing dev requirements$(END)
|
||||||
pip install --upgrade -r $(REQUIREMENTS)
|
pip install --upgrade -r $(REQUIREMENTS)
|
||||||
|
|
||||||
@echo $(TAG)Installing HTTPie$(END)
|
@echo $(TAG)Installing HTTPie$(END)
|
||||||
pip install --upgrade --editable .
|
pip install --upgrade --editable .
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
test: init
|
test: init
|
||||||
@echo $(TAG)Running tests on the current Python interpreter with coverage $(END)
|
@echo $(TAG)Running tests on the current Python interpreter with coverage $(END)
|
||||||
py.test --cov ./httpie --cov ./tests --doctest-modules --verbose ./httpie ./tests
|
py.test --cov ./httpie --cov ./tests --doctest-modules --verbose ./httpie ./tests
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
test-tox: init
|
test-tox: init
|
||||||
@echo $(TAG)Running tests on all Pythons via Tox$(END)
|
@echo $(TAG)Running tests on all Pythons via Tox$(END)
|
||||||
tox
|
tox
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
test-dist: test-sdist test-bdist-wheel
|
test-dist: test-sdist test-bdist-wheel
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
test-sdist: clean uninstall-httpie
|
test-sdist: clean uninstall-httpie
|
||||||
@echo $(TAG)Testing sdist build an installation$(END)
|
@echo $(TAG)Testing sdist build an installation$(END)
|
||||||
python setup.py sdist
|
python setup.py sdist
|
||||||
@ -53,6 +44,7 @@ test-sdist: clean uninstall-httpie
|
|||||||
which http
|
which http
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
test-bdist-wheel: clean uninstall-httpie
|
test-bdist-wheel: clean uninstall-httpie
|
||||||
@echo $(TAG)Testing wheel build an installation$(END)
|
@echo $(TAG)Testing wheel build an installation$(END)
|
||||||
python setup.py bdist_wheel
|
python setup.py bdist_wheel
|
||||||
@ -60,9 +52,11 @@ test-bdist-wheel: clean uninstall-httpie
|
|||||||
which http
|
which http
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
# This tests everything, even this Makefile.
|
# This tests everything, even this Makefile.
|
||||||
test-all: uninstall-all clean init test test-tox test-dist
|
test-all: uninstall-all clean init test test-tox test-dist
|
||||||
|
|
||||||
|
|
||||||
publish: test-all
|
publish: test-all
|
||||||
@echo $(TAG)Testing wheel build an installation$(END)
|
@echo $(TAG)Testing wheel build an installation$(END)
|
||||||
@echo "$(VERSION)"
|
@echo "$(VERSION)"
|
||||||
@ -72,8 +66,29 @@ publish: test-all
|
|||||||
python setup.py bdist_wheel upload
|
python setup.py bdist_wheel upload
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo $(TAG)Cleaning up$(END)
|
@echo $(TAG)Cleaning up$(END)
|
||||||
rm -rf .tox *.egg dist build .coverage
|
rm -rf .tox *.egg dist build .coverage
|
||||||
find . -name '__pycache__' -delete -print -o -name '*.pyc' -delete -print
|
find . -name '__pycache__' -delete -print -o -name '*.pyc' -delete -print
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
||||||
|
uninstall-httpie:
|
||||||
|
@echo $(TAG)Uninstalling httpie$(END)
|
||||||
|
- pip uninstall --yes httpie &2>/dev/null
|
||||||
|
|
||||||
|
@echo "Verifying…"
|
||||||
|
cd .. && ! python -m httpie --version &2>/dev/null
|
||||||
|
|
||||||
|
@echo "Done"
|
||||||
|
@echo
|
||||||
|
|
||||||
|
|
||||||
|
uninstall-all: uninstall-httpie
|
||||||
|
|
||||||
|
@echo $(TAG)Uninstalling httpie requirements$(END)
|
||||||
|
- pip uninstall --yes pygments requests
|
||||||
|
|
||||||
|
@echo $(TAG)Uninstalling development requirements$(END)
|
||||||
|
- pip uninstall --yes -r $(REQUIREMENTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user