-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathMakefile
59 lines (46 loc) · 1.37 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
all: build
install: clean
python setup.py install
build: clean
python setup.py build
clean: clean-build clean-pyc clean-test
clean-build: ## remove build artifacts
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc: ## remove Python file artifacts
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test: ## remove test and coverage artifacts
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
lint: ## Check python code conventions
tox -e lint
test: ## Run automated test suite
nosetests
test-all: ## Run tests on all supported Python environments
tox
coverage: ## Generate test coverage report
coverage run --source src/ifcfg `which nosetests`
coverage report -m
release: dist ## Generate and upload release to PyPi
@echo ""
@echo "Release check list:"
@echo ""
@echo "1. Release notes?"
@echo "2. Did you do a signed commit and push to Github?"
@echo "3. Check that the .whl and .tar.gz dists work - e.g. that MANIFEST.in is updated."
@echo ""
@read -p "CTRL+C or ENTER" dummy
twine upload -s dist/*
dist: clean ## Generate wheels distribution
python setup.py bdist_wheel
python setup.py sdist
ls -l dist
req:
pip install --requirement requirements_dev.txt