-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
55 lines (42 loc) · 1.57 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
CODESPELL_DIRS ?= ./pydynamicreporting
CODESPELL_SKIP ?= "*.pyc,*.xml,*.txt,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./docs/build/*,./docs/images/*,./dist/*,*~,.hypothesis*,./docs/source/examples/*,*cover,*.dat,*.mac,\#*,PKG-INFO,*.mypy_cache/*,*.xml,*.aedt,*.svg"
CODESPELL_IGNORE ?= "ignore_words.txt"
TEST_FILE ?= "tests\test_service.py"
INSTALL_PATH ?= "C:\Program Files\ANSYS Inc\v252"
doctest: codespell
codespell:
echo "Running codespell"
codespell $(CODESPELL_DIRS) -S $(CODESPELL_SKIP) # -I $(CODESPELL_IGNORE)
build:
python -m build --wheel
python codegen/rename_whl.py
rm -rf build
build-nightly: build
install:
pip uninstall ansys-dynamicreporting-core -y
pip install dist/*.whl
install-dev:
pip uninstall ansys-dynamicreporting-core -y
pip install -e .[dev]
pull-docker:
bash .ci/pull_adr_image.sh
test:
pip install -e .[test]
pytest -rvx --setup-show --cov=ansys.dynamicreporting.core --cov-report html:coverage-html --cov-report term --cov-report xml:coverage.xml
test-dev:
pip install -e .[test]
pytest -rvx --setup-show "$(TEST_FILE)" --use-local-launcher --install-path "$(INSTALL_PATH)"
smoketest:
python tests/smoketest.py
clean:
rm -rf dist build
rm -f src/ansys/dynamicreporting/core/adr_item.py
rm -f src/ansys/dynamicreporting/core/adr_utils.py
rm -f src/ansys/dynamicreporting/core/build_info.py
rm -rf **/*.egg-info
rm -rf coverage-html
rm -rf .pytest_cache
find . -name \*.pyc -delete
test_clean:
python test_cleanup.py
all: clean build install