-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
68 lines (53 loc) · 2.13 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
60
61
62
63
64
65
66
67
68
.PHONY: help install-dependencies install-testing-dependencies test lint coverage docs-test build build-test release clean clean-pyc clean-tests clean-coverage clean-build
help:
@echo ""
@echo "install-dependencies installs dependencies (includes development dependencies)"
@echo "install-testing-dependencies installs dependencies for testing"
@echo "test runs tests"
@echo "lint runs linter"
@echo "coverage runs test coverage"
@echo "docs-test tests docs for build errors and serves them locally"
@echo "build builds python package (sdist)"
@echo "build-test tests build for errors and uploads to test.pypi.org"
@echo "release builds and uploads python package to pypi.org"
@echo ""
@echo "clean runs all cleaning functions"
@echo "clean-pyc removes python file artifacts"
@echo "clean-tests removes temp test files and folders"
@echo "clean-coverage removes coverage files"
@echo "clean-build removes packaging artifacts"
install-dependencies:
python -m pip install -r requirements-dev.txt
install-testing-dependencies:
python -m pip install -r requirements-testing.txt
test:
python -m pytest tests/ -vv
lint:
python -m pylint fastaparser setup.py
python -m black --check .
coverage:
python -m coverage run --source fastaparser -m pytest tests/ -q
python -m coverage report -m
docs-test:
mkdocs serve -s -f .mkdocs.yml
build: clean-pyc clean-build
python setup.py sdist bdist_wheel
build-test:
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
release: build
twine upload dist/*
clean: clean-pyc clean-tests clean-coverage clean-build
clean-pyc:
rm -rf fastaparser/__pycache__ tests/__pycache__
rm -f fastaparser/*.pyc tests/*.pyc
rm -f fastaparser/*.pyo tests/*.pyo
rm -f fastaparser/*~ tests/*~
clean-tests:
rm -rf .pytest_cache/
clean-coverage:
python -m coverage erase
clean-build:
rm -rf build/
rm -rf dist/
rm -rf fastaparser.egg-info/