-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (33 loc) · 1.37 KB
/
makefile
File metadata and controls
38 lines (33 loc) · 1.37 KB
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
# Makefile for setting up the development environment
#
# This Makefile defines targets for:
# - dev: setting up the development environment
# - dev_docs: setting up the documentation development environment
# - tests: running tests using pytest
# - docs: serving the documentation locally using MkDocs
#
# Usage:
# - To set up the development environment, run: `make dev`
# - To set up the documentation development environment, run: `make dev_docs`
# - To run the tests, run: `make tests`
# - To serve the documentation locally, run: `make docs`
.PHONY: dev dev_docs tests docs
# Target to set up the development environment.
# Installs required dependencies from requirements.txt, and installs the current package in editable mode,
dev:
python -m pip install -r requirements.txt
python -m pip install -e .
# Target to set up the documentation development environment.
# Installs the required dependencies for documentation from docs/requirements.txt
# and installs the current package in editable mode (overriding FauxPy in docs/requirements.txt).
dev_docs:
python -m pip install -r docs/requirements.txt
python -m pip install -e .
# Target to run the tests.
# Uses pytest to execute all tests located in the tests directory.
tests:
python -m pytest tests
# Target to serve the documentation locally.
# Starts the MkDocs server for local preview of the documentation.
docs:
mkdocs serve