forked from danielfrg/s3contents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 1.02 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
PWD := $(shell pwd)
S3DIR := ${PWD}/s3-data
all: tests
.PHONY: minio
minio: ## Run minio server
mkdir -p ${S3DIR}/notebooks; docker run -p 9000:9000 -v ${S3DIR}:/export -e MINIO_ACCESS_KEY=access-key -e MINIO_SECRET_KEY=secret-key minio/minio:RELEASE.2018-06-29T02-11-29Z server /export
.PHONY: tests
tests: ## Run tests
py.test -s -vv s3contents/tests
.PHONY: build
build: ## Build package
python setup.py sdist
.PHONY: upload
upload: ## Upload package to pypi
twine upload dist/*.tar.gz
.PHONY: env
env: ## Create dev environment
@conda create -y -n s3contents-dev python=3.7
.PHONY: deps
deps: ## Install dev dependencies
@pip install pytest pytest-cov python-coveralls nose mock
@pip install -r requirements.txt
@pip install -e .
.PHONY: clean
clean: ##
rm -rf ${S3DIR} ; source deactivate; conda env remove -y -n s3-contents-dev
PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?##.*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?##"; OFS="\t\t"}; {printf "\033[36m%-30s\033[0m %s\n", $$1, ($$2==""?"":$$2)}'