forked from raimon49/pip-licenses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (43 loc) · 1.08 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
DEV_DEPENDS='dev-requirements'
.DEFAULT: help
.PHONY: help
help:
@echo 'Usage: make <subcommand>'
@echo ''
@echo 'Subcommands:'
@echo ' setup Setup for development'
@echo ' local-install Install locally'
@echo ' local-uninstall Uninstall locally'
@echo ' update-depends Re-compile requirements for development'
@echo ' test Run unittests'
@echo ' deploy Release to PyPI server'
@echo ' test-deploy Release to Test PyPI server'
@echo ' build Build package'
@echo ' clean Clean directories'
.PHONY: setup
setup:
pip install -r $(DEV_DEPENDS).txt
.PHONY: local-install
local-install:
pip install -e .
.PHONY: local-uninstall
local-uninstall:
pip uninstall -y pip-licenses
.PHONY: update-depends
update-depends:
pip-compile -U $(DEV_DEPENDS).in
.PHONY: test
test:
python setup.py test
.PHONY: deploy
deploy: build
twine upload dist/*
.PHONY: test-deploy
test-deploy: build
twine upload -r pypitest dist/*
.PHONY: build
build: clean
python setup.py sdist bdist_wheel
.PHONY: clean
clean:
rm -rf dist