Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (30 sloc)
847 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PYTHON = python | |
| SETUP = $(PYTHON) setup.py | |
| TESTFLAGS = | |
| all:: | |
| @grep -Ee '^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all | |
| release:: clean | |
| # Check if latest tag is the current head we're releasing | |
| echo "Latest tag = $$(git tag | sort -nr | head -n1)" | |
| echo "HEAD SHA = $$(git rev-parse head)" | |
| echo "Latest tag SHA = $$(git tag | sort -nr | head -n1 | xargs git rev-parse)" | |
| @test "$$(git rev-parse head)" = "$$(git tag | sort -nr | head -n1 | xargs git rev-parse)" | |
| make force_release | |
| force_release:: clean | |
| git push --tags | |
| python3 setup.py sdist bdist_wheel | |
| twine upload dist/* | |
| doc:: | |
| make -C doc/ html | |
| build:: | |
| $(SETUP) build | |
| $(SETUP) build_ext -i | |
| build_ext:: | |
| $(SETUP) build_ext -i | |
| install:: | |
| $(SETUP) install | |
| clean:: | |
| $(SETUP) clean --all | |
| rm -f *.so | |
| coverage:: build | |
| PYTHONPATH=. $(PYTHON) -m pytest --cov=gitdb gitdb | |