-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (23 loc) · 829 Bytes
/
Makefile
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
# This is purely for author use because these steps are annoying
VERSION=1.0.1
SDIST_TARGET=dist/unitstyle-$(VERSION).tar.gz
WHEEL_TARGET=dist/unitstyle-$(VERSION)-py2.py3-none-any.whl
all: $(SDIST_TARGET) $(WHEEL_TARGET)
sign: $(SDIST_TARGET).asc $(WHEEL_TARGET).asc
upload: sign
twine upload --config-file ~/.config/pypi/pypirc dist/*
register: $(SDIST_TARGET)
twine register --config-file ~/.config/pypi/pypirc $<
$(SDIST_TARGET): README.rst
python setup.py sdist
$(WHEEL_TARGET): README.rst
python setup.py bdist_wheel
$(SDIST_TARGET).asc: $(SDIST_TARGET)
gpg --detach-sign -a $<
$(WHEEL_TARGET).asc: $(WHEEL_TARGET)
gpg --detach-sign -a $<
README.rst: README.md
pandoc --from=markdown --to=rst $< -o $@
clean:
$(RM) -rf build unitstyle.egg-info dist README.rst
.PHONY: all sign upload clean register