forked from macropin/django-registration
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 688 Bytes
/
Makefile
File metadata and controls
37 lines (31 loc) · 688 Bytes
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
.PHONY: installdeps\
build\
test\
lint\
clean \
release
installdeps:
pip install -U -r requirements.txt
build:
invoke build $(ARGS)
test:
invoke test
lint:
invoke lint
clean:
invoke clean $(ARGS)
release: clean lint test
ifeq ($(TAG_NAME),)
$(error Usage: make release TAG_NAME=<tag-name>)
endif
# NOTE(joshblum): First you should update the changelog and bump the
# version in setup.py
git clean -dxf
git tag $(TAG_NAME)
git push --tags
# To check whether the README formats properly.
python setup.py check -s --restructuredtext
# Create the wheels for Python2 and Python3.
python setup.py bdist_wheel --universal
# Upload to pypi.
twine upload dist/*