@@ -33,10 +33,10 @@ MYPY ?= mypy
33
33
PRECOMMIT ?= pre-commit
34
34
FLAKE8 ?= flake8
35
35
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"
40
40
41
41
install-dev :
42
42
$(PIP ) install -e " .[test,examples,docs]"
@@ -88,7 +88,7 @@ clean: clean-doc clean-build
88
88
89
89
# Build a distribution in ./dist
90
90
build :
91
- $(PYTHON ) setup.py bdist
91
+ $(PYTHON ) setup.py sdist
92
92
93
93
doc :
94
94
$(MAKE ) -C ${DOCDIR} html-noexamples
@@ -108,15 +108,23 @@ examples:
108
108
# Publish to testpypi
109
109
# Will echo the commands to actually publish to be run to publish to actual PyPi
110
110
# This is done to prevent accidental publishing but provide the same conveniences
111
- publish : clean-build build
111
+ publish : clean build
112
112
$(PIP ) install twine
113
113
$(PYTHON ) -m twine upload --repository testpypi ${DIST} /*
114
114
@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'"
117
124
@echo
118
125
@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/*"
120
128
121
129
test :
122
130
$(PYTEST ) test
0 commit comments