mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
49 lines
867 B
Makefile
49 lines
867 B
Makefile
PYTHON := python3
|
|
PYTEST := pytest
|
|
PIP := $(PYTHON) -m pip
|
|
MYPY := $(PYTHON) -m mypy
|
|
PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG
|
|
VERSION := 0.2
|
|
|
|
all: docs test
|
|
|
|
clean:
|
|
rm -rf build
|
|
|
|
develop:
|
|
$(PYTHON) setup.py develop
|
|
|
|
dist:
|
|
$(PYTHON) setup.py sdist bdist_wheel
|
|
|
|
dist-upload:
|
|
$(PYTHON) -m twine upload dist/*
|
|
|
|
docs:
|
|
rm -rf ../docs/$(VERSION) html
|
|
mkdocs build -d ../docs/$(VERSION)/
|
|
pdoc3 --html miplearn
|
|
mv -v html ../docs/$(VERSION)/api
|
|
|
|
|
|
install-deps:
|
|
$(PIP) install -i https://pypi.gurobi.com gurobipy
|
|
$(PIP) install xpress
|
|
$(PIP) install -r requirements.txt
|
|
|
|
install:
|
|
$(PYTHON) setup.py install
|
|
|
|
uninstall:
|
|
$(PIP) uninstall miplearn
|
|
|
|
reformat:
|
|
$(PYTHON) -m black .
|
|
|
|
test:
|
|
$(MYPY) -p miplearn
|
|
$(MYPY) -p tests
|
|
$(PYTEST) $(PYTEST_ARGS) tests/classifiers
|
|
|
|
.PHONY: test test-watch docs install
|