-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 1018 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 1018 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
.PHONY = help create_project_env install_requirements run_tests
PROJECT_ENV = pydtm
PYTHON_VERSION = 3.9
help:
@echo "----------------------------------------------------------------------"
@echo "| HELP |"
@echo "----------------------------------------------------------------------"
@echo "To create the project's conda environment > make create_project_env"
@echo "To install the project's requirements > make install_requirements"
@echo "To run the tests > make run_tests"
create_project_env:
@echo "Creating Project Environment with conda"
@conda create -n ${PROJECT_ENV} python=${PYTHON_VERSION} -y
install_requirements:
@echo "Installing the necessary requirements"
@pip install -r env/requirements.txt
run_tests:
@echo "Running tests..."
@export PYTHONPATH=. && pytest tests --color yes --verbose
update_version:
@echo "Updating the version of the project to the version specified in the version file"
@python update_version.py