diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2019-07-05 10:27:40 +0200 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2019-07-05 10:27:40 +0200 |
commit | 17ba10e33a3eeb3a5a03af4dfb2cddc900bc1f2e (patch) | |
tree | 99ab694d72c5f480fd0ca9d026bbf6838f452f9b /Makefile | |
parent | 852e330bfca616e033fa4453fcd77bd4f1af1a06 (diff) |
clean manifest and add wheels build in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -2,7 +2,7 @@ PYTHON=python3 branch := $(shell git symbolic-ref --short -q HEAD) -CIBW_BEFORE_BUILD="pip install numpy cython" + help : @@ -15,6 +15,7 @@ help : @echo " sremove - remove the package (system with sudo)" @echo " clean - remove any temporary files" @echo " notebook - launch ipython notebook" + build : $(PYTHON) setup.py build @@ -49,14 +50,15 @@ test : FORCE pep8 pytest : FORCE $(PYTHON) -m pytest -v test/ --doctest-modules --ignore ot/gpu/ --cov=ot -uploadpypi : - #python setup.py register - $(PYTHON) setup.py sdist upload -r pypi +release : + twine upload dist/* + +release_test : + twine upload --repository-url https://test.pypi.org/legacy/ dist/* rdoc : pandoc --from=markdown --to=rst --output=docs/source/readme.rst README.md - notebook : ipython notebook --matplotlib=inline --notebook-dir=notebooks/ @@ -76,7 +78,11 @@ autopep8 : aautopep8 : autopep8 -air test ot examples --jobs -1 -wheels: - cibuildwheel --platform linux --output-dir dist +wheels : + CIBW_BEFORE_BUILD="pip install numpy cython" cibuildwheel --platform linux --output-dir dist + +dist : wheels + $(PYTHON) setup.py sdist + FORCE : |