forked from canonical/pycloudlib
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 629 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 629 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
PYTHON = python3
SETUP := $(PYTHON) setup.py
.PHONY: build clean install publish source test venv
build:
$(SETUP) build
clean:
$(SETUP) clean
rm -rf .tox .eggs *.egg-info build dist venv
@find . -regex '.*\(__pycache__\|\.py[co]\)' -delete
$(MAKE) -C docs clean
install:
$(SETUP) install
publish:
rm -rf dist/
$(SETUP) sdist
pip install twine
twine upload dist/*
source:
$(SETUP) sdist
test:
$(SETUP) check -r -s
tox
venv:
$(PYTHON) -m virtualenv -p /usr/bin/$(PYTHON) venv
venv/bin/pip install -Ur requirements.txt
@echo "Now run the following to activate the virtual env:"
@echo ". venv/bin/activate"