Skip to content

Commit ea93372

Browse files
committed
Fix makefile (#1397)
1 parent 7482b74 commit ea93372

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

Makefile

+17-9
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ MYPY ?= mypy
3333
PRECOMMIT ?= pre-commit
3434
FLAKE8 ?= flake8
3535

36-
DIR := ${CURDIR}
37-
DIST := ${CURDIR}/dist
38-
DOCDIR := ${DIR}/doc
39-
INDEX_HTML := file://${DOCDIR}/html/build/index.html
36+
DIR := "${CURDIR}"
37+
DIST := "${CURDIR}/dist""
38+
DOCDIR := "${DIR}/doc"
39+
INDEX_HTML := "file://${DOCDIR}/build/html/index.html"
4040

4141
install-dev:
4242
$(PIP) install -e ".[test,examples,docs]"
@@ -88,7 +88,7 @@ clean: clean-doc clean-build
8888

8989
# Build a distribution in ./dist
9090
build:
91-
$(PYTHON) setup.py bdist
91+
$(PYTHON) setup.py sdist
9292

9393
doc:
9494
$(MAKE) -C ${DOCDIR} html-noexamples
@@ -108,15 +108,23 @@ examples:
108108
# Publish to testpypi
109109
# Will echo the commands to actually publish to be run to publish to actual PyPi
110110
# This is done to prevent accidental publishing but provide the same conveniences
111-
publish: clean-build build
111+
publish: clean build
112112
$(PIP) install twine
113113
$(PYTHON) -m twine upload --repository testpypi ${DIST}/*
114114
@echo
115-
@echo "Test with the following line:"
116-
@echo "pip install --index-url https://test.pypi.org/simple/ auto-sklearn"
115+
@echo "Test with the following:"
116+
@echo "* Create a new virtual environment to install the uplaoded distribution into"
117+
@echo "* Run the following:"
118+
@echo
119+
@echo " pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ autosklearn"
120+
@echo
121+
@echo "* Run this to make sure it can import correctly, plus whatever else you'd like to test:"
122+
@echo
123+
@echo " python -c 'import autosklearn'"
117124
@echo
118125
@echo "Once you have decided it works, publish to actual pypi with"
119-
@echo "python -m twine upload dist/*"
126+
@echo
127+
@echo " python -m twine upload dist/*"
120128

121129
test:
122130
$(PYTEST) test

0 commit comments

Comments
 (0)