-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (25 loc) · 810 Bytes
/
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
# Author: Yang Zhang
# Date: 2024-07-13
# Description: Makefile for the project
install: clean
@version=$$(grep "version" pyproject.toml | sed -n 's/version = "\([0-9.]*\)"/\1/p'); \
echo "Installing the package; Version $${version}"; \
python -m build; \
pip install -v ./dist/nearl-$${version}-py3-none-any.whl --force-reinstall;
$(MAKE) clean
# print:
# echo "Version: $$version";
install_dependencies:
echo "install_dependencies; "
# TODO: Add the installation later
install_mamba:
echo "micromamba; "
clean:
rm -rf dist/ build/ nearl.egg-info/ .pytest_cache/
dotest:
python3 -c "import nearl; print(nearl.__version__)"
pytest nearl/tests
compilepdf:
cd docs && docker run --rm --volume ./:/data --env JOURNAL=joss openjournals/inara
compilehtml:
cd docs && make html