-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
142 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
PYV:=3.12 | ||
VEDIR=venv/${PYV} | ||
|
||
############################################################################ | ||
#= SETUP, INSTALLATION, PACKAGING | ||
|
||
#=> venv: make a Python 3 virtual environment | ||
.PHONY: venv/% | ||
venv/%: | ||
python$* -m venv $@; \ | ||
source $@/bin/activate; \ | ||
python -m ensurepip --upgrade; \ | ||
pip install --upgrade pip setuptools | ||
|
||
#=> develop: install package in develop mode | ||
.PHONY: develop setup | ||
develop setup: | ||
pip install -r .requirements.txt | ||
|
||
#=> devready: create venv, install prerequisites, install pkg in develop mode | ||
.PHONY: devready | ||
devready: | ||
make ${VEDIR} && source ${VEDIR}/bin/activate && make develop | ||
@echo '#################################################################################' | ||
@echo '### Do not forget to `source ${VEDIR}/bin/activate` to use this environment ###' | ||
@echo '#################################################################################' | ||
|
||
############################################################################ | ||
#= TESTING | ||
# see test configuration in pyproject.toml | ||
|
||
#=> test: execute tests | ||
.PHONY: test | ||
test: | ||
pytest tests/ | ||
|
||
#=> doctest: execute documentation tests (requires extra data) | ||
.PHONY: doctest | ||
doctest: | ||
pytest tests/ --doctest-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.