forked from willtrking/thumbor_aws
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (32 loc) · 1.04 KB
/
Makefile
File metadata and controls
47 lines (32 loc) · 1.04 KB
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
.PHONY: install reinstall setup test clean-setup setup_docs setup_publish build_docs docs publish
install:
pip install . --quiet
reinstall:
pip uninstall tc_aws -y
pip install . --quiet
# Cached setup to avoid reinstalling dependencies on every test run
DEPS_DIR := .deps
SETUP_STAMP := $(DEPS_DIR)/tests.ok
$(DEPS_DIR):
mkdir -p $(DEPS_DIR)
$(SETUP_STAMP): setup.py version.txt tests/requirements.txt tests/constraints.txt | $(DEPS_DIR)
python -m pip install --upgrade pip setuptools wheel
SETUPTOOLS_USE_DISTUTILS=local pip install -e . -c tests/constraints.txt
SETUPTOOLS_USE_DISTUTILS=local pip install -r tests/requirements.txt -c tests/constraints.txt
touch $(SETUP_STAMP)
setup: $(SETUP_STAMP)
clean-setup:
rm -rf $(DEPS_DIR)
setup_docs:
pip install -r docs/requirements.txt
setup_publish:
pip install -r publish_requirements.txt
build_docs:
cd docs && make html
docs: setup_docs build_docs
python -mwebbrowser file:///`pwd`/docs/_build/html/index.html
test:
pytest
publish: setup_publish
python setup.py sdist
twine upload dist/*