forked from ITD27M01/certbot-dns-oci
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (51 loc) · 1002 Bytes
/
Makefile
File metadata and controls
61 lines (51 loc) · 1002 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.ONESHELL:
SHELL = /bin/bash
default: update
.PHONY: init
init:
@pip3 -q install -r requirements.txt
@pip3 -q install -r build-requirements.txt
@pip3 -q install -r test-requirements.txt
.PHONY: clean
clean:
@python setup.py clean
@rm -rf dist
@rm -rf .tox
@rm -rf build
@rm -rf .pytest_cache
@find . -name "*.pyc" -delete
@find . -type d -name "__pycache__" -exec rm -rf {} +
@rm -rf *.egg-info
@rm -rf .eggs
@pip uninstall certbot-dns-oci -y
.PHONY: check
check:
@flake8 --ignore=W605,E501 certbot_dns_oci
.PHONY: tests
tests:
$(MAKE) clean
$(MAKE) install
@pytest --cache-clear
.PHONY: install
install:
@python setup.py install
.PHONY: update
update:
$(MAKE) clean
$(MAKE) check
$(MAKE) install
@clear
.PHONY: sdist
sdist:
$(MAKE) clean
@python setup.py sdist
.PHONY: bdist
bdist:
$(MAKE) clean
@python setup.py bdist_wheel
.PHONY: upload
upload:
$(MAKE) clean
$(MAKE) sdist
$(MAKE) bdist
@twine upload --username __token__ --password $(TWINE_PASSWORD) dist/*