-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
33 lines (26 loc) · 1014 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
###############################################################################
#
# Installation and release commands for the `earthdata-varinfo` Python package.
# These can be run from within a conda or Pip based virtual environment, or
# from within a Docker container.
#
###############################################################################
.PHONY: clean build test develop install
build: clean
python -m pip install --upgrade pip
python -m pip install --upgrade --quiet setuptools wheel twine
python -m pip install --upgrade --quiet build
python -m build
clean:
rm -rf build dist *.egg-info || true
develop:
pip install -e .[dev]
install:
python -m pip install --upgrade pip
pip install -r requirements.txt -r dev-requirements.txt
lint:
pylint varinfo --extension-pkg-whitelist=netCDF4
prepare-test:
mkdir -p tests/reports tests/coverage
test: prepare-test
pytest --junitxml=tests/reports/earthdata-varinfo_junit.xml --cov varinfo --cov-report html:tests/coverage --cov-report term