-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 708 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 708 Bytes
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
help:
@echo "Py-Automapper development makefile"
@echo
@echo "usage: make <target>"
@echo "Targets:"
@echo " clean Clean all the cache in repo directory"
@echo " install Ensure dev/test dependencies are installed"
@echo " test Run all tests"
@echo " docs [not-working] Builds the documentation"
@echo " build Build into a package (/dist folder)"
@echo " publish Publish the package to pypi.org"
clean:
rm -rf build dist .mypy_cache .pytest_cache .coverage py_automapper.egg-info
install:
pip install .[dev]
pip install .[test]
test:
pytest
build:
python -m build
publish:
twine publish
docs: install
rm -fR ./build
sphinx-build -M html docs build