Skip to content

Commit 5db392e

Browse files
committed
update makefile style a bit
1 parent 9abb96d commit 5db392e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Diff for: Makefile

+10-9
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,18 @@ resetdb:
4343
python $(MANAGE) migrate --noinput
4444
python $(MANAGE) loaddata sample_data
4545

46-
# Release Instructions:
47-
#
48-
# 1. bump version number above
49-
# 2. `make release`
50-
# 3. git push origin master --tags
51-
#
52-
# If this doesn't work, make sure you have wheels installed:
53-
# pip install wheel
54-
release:
46+
# Set the version. Done this way to avoid fancy, brittle Python import magic
47+
version:
5548
@sed -i -r /version/s/[0-9.]+/$(VERSION)/ setup.py
5649
@sed -i -r /version/s/[0-9.]+/$(VERSION)/ django_object_actions/__init__.py
50+
51+
# Release instructions
52+
# 1. bump VERSION above
53+
# 2. run `make release`
54+
# 3. `git push --tags origin master`
55+
# 4. update release notes
56+
release: clean version
5757
@git commit -am "bump version to v$(VERSION)"
5858
@git tag v$(VERSION)
59+
@-pip install wheel > /dev/null
5960
python setup.py sdist bdist_wheel upload

0 commit comments

Comments
 (0)