Skip to content

Commit 0d5062e

Browse files
committed
Upgrade makefile
1 parent 7f216d9 commit 0d5062e

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

Makefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@ SETUP = $(PYTHON) setup.py
33
TESTRUNNER = $(shell which nosetests)
44
TESTFLAGS =
55

6-
all: build
6+
all::
7+
@grep -Ee '^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all
8+
9+
release:: clean
10+
# Check if latest tag is the current head we're releasing
11+
echo "Latest tag = $$(git tag | sort -nr | head -n1)"
12+
echo "HEAD SHA = $$(git rev-parse head)"
13+
echo "Latest tag SHA = $$(git tag | sort -nr | head -n1 | xargs git rev-parse)"
14+
@test "$$(git rev-parse head)" = "$$(git tag | sort -nr | head -n1 | xargs git rev-parse)"
15+
make force_release
16+
17+
force_release:: clean
18+
git push --tags
19+
python3 setup.py sdist bdist_wheel
20+
twine upload -s -i byronimo@gmail.com dist/*
721

822
doc::
923
make -C doc/ html

gitdb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _init_externals():
2929
__author__ = "Sebastian Thiel"
3030
__contact__ = "byronimo@gmail.com"
3131
__homepage__ = "https://github.com/gitpython-developers/gitdb"
32-
version_info = (2, 0, 0)
32+
version_info = (2, 0, 3)
3333
__version__ = '.'.join(str(i) for i in version_info)
3434

3535

gitdb/ext/smmap

Submodule smmap updated from ac5df70 to 91d506e

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
__author__ = "Sebastian Thiel"
88
__contact__ = "byronimo@gmail.com"
99
__homepage__ = "https://github.com/gitpython-developers/gitdb"
10-
version_info = (2, 0, 0)
10+
version_info = (2, 0, 3)
1111
__version__ = '.'.join(str(i) for i in version_info)
1212

1313
setup(

0 commit comments

Comments
 (0)