blob: 82c0a3bc85414d057cde62ba27186480afd8b001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
PYTHON = python
SETUP = $(PYTHON) setup.py
TESTRUNNER = $(shell which nosetests)
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 -s -i 763629FEC8788FC35128B5F6EE029D1E5EB40300 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) $(TESTRUNNER) --cover-package=gitdb --with-coverage --cover-erase --cover-inclusive gitdb
|