-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 784 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 784 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
PACKAGE := yas
VERSION := $(shell sed -En "s/.*version='([^']+)'.*/\1/p" setup.py)
noop:
@echo 'Doing nothing. Have a look at the Makefile if you want to find something to do.'
dist: dist/${PACKAGE}-${VERSION}.tar.gz
dist/${PACKAGE}-${VERSION}.tar.gz:
python setup.py sdist bdist_wheel
test-pypi: update-on-test-pypi
update-on-test-pypi: dist
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
pypi: update-on-pypi
update-on-pypi: dist
python -m twine upload dist/*
git-tag:
git tag -s ${VERSION}
git push --tags
clean:
rm -rf dist build *.egg-info
find . -name __pycache__ -exec rm -rf {} +
distribute: | clean git-tag pypi
.PHONY: \
clean \
dist \
distribute \
git-tag \
noop \
pypi update-on-pypi \
test-pypi update-on-test-pypi \