forked from conda-incubator/conda-mirror
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (25 loc) · 1 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
.PHONY: help test
ENV_NAME:=conda-mirror-dev
help:
# http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
activate: ## Make an conda activate command
@echo "conda activate $(ENV_NAME)"
clean: ## Make a clean source tree
-find . -name '*.pyc' -exec rm -fv {} \;
rm -rf conda_mirror/__pycache__ test/__pycache__ __pycache__ dist *.egg-info
env: ## Make a conda development environment
conda create -n $(ENV_NAME) --file requirements.txt --file requirements-test.txt
release: sdist ## Make a pypi release
python setup.py sdist
twine upload dist/*.tar.gz
sdist: clean ## Make a source distribution
python setup.py sdist
format-check: ## Check to make sure format is correct
black --check .
format: ## Use black to format the python source code
black .
lint: ## Check syntax with flake8
flake8
test: lint ## Make a test run
python run_tests.py -vxrs test/