1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-28 08:38:44 +02:00

Makefile improvements

This commit is contained in:
Jakub Roztocil 2016-01-02 14:28:46 -03:00
parent 84b81c00ea
commit c82c9f0ae4
2 changed files with 15 additions and 4 deletions

View File

@ -80,6 +80,9 @@ Running all tests:
# Run all tests in all of the supported and available Pythons via Tox # Run all tests in all of the supported and available Pythons via Tox
make test-tox make test-tox
# Run all tests for code as well as packaging, etc.
make test-all
Running specific tests: Running specific tests:
*********************** ***********************
@ -99,6 +102,7 @@ Running specific tests:
----- -----
See `Makefile`_ for additional development utilities.
Don't forget to add yourself to `AUTHORS`_! Don't forget to add yourself to `AUTHORS`_!
@ -106,6 +110,7 @@ Don't forget to add yourself to `AUTHORS`_!
.. _supported Python environments: https://github.com/jkbrzt/httpie/blob/master/tox.ini .. _supported Python environments: https://github.com/jkbrzt/httpie/blob/master/tox.ini
.. _existing issues: https://github.com/jkbrzt/httpie/issues?state=open .. _existing issues: https://github.com/jkbrzt/httpie/issues?state=open
.. _AUTHORS: https://github.com/jkbrzt/httpie/blob/master/AUTHORS.rst .. _AUTHORS: https://github.com/jkbrzt/httpie/blob/master/AUTHORS.rst
.. _Makefile: https://github.com/jkbrzt/httpie/blob/master/Makefile
.. _pytest: http://pytest.org/ .. _pytest: http://pytest.org/
.. _Style Guide for Python Code: http://python.org/dev/peps/pep-0008/ .. _Style Guide for Python Code: http://python.org/dev/peps/pep-0008/
.. _test suite: https://github.com/jkbrzt/httpie/tree/master/tests .. _test suite: https://github.com/jkbrzt/httpie/tree/master/tests

View File

@ -10,14 +10,20 @@ END=" \#\#\# \033[0m\n"
all: test all: test
uninstall-httpie: uninstall-httpie:
@echo $(TAG)Removing existing installation of HTTPie$(END) @echo $(TAG)Uninstalling httpie$(END)
@echo "(NOTE: uninstall httpie manually if this fails)"
@echo @echo
- pip uninstall --yes httpie >/dev/null - pip uninstall --yes httpie &2>/dev/null
! which http @echo "Verifying…"
cd .. && ! python -m httpie --version &2>/dev/null
@echo "Done"
@echo @echo
uninstall-all: uninstall-httpie 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) - pip uninstall --yes -r $(REQUIREMENTS)
init: uninstall-httpie init: uninstall-httpie