From: Vivien Maisonneuve Date: Sat, 23 Aug 2014 07:52:11 +0000 (+0200) Subject: Back to distutils, add upload command X-Git-Tag: 1.0.1~1 X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/commitdiff_plain/916d092d8a3bc9b0f2097c4f6c953f3a69b668e7 Back to distutils, add upload command --- diff --git a/Makefile b/Makefile index 9b6366b..93cf689 100644 --- a/Makefile +++ b/Makefile @@ -14,14 +14,15 @@ default: @echo " make doc generate the documentation" @echo " make view_doc open the documentation index" @echo " make clean remove the generated files" + @echo " make upload upload the module on PyPI" .PHONY: build build: $(SETUP) build_ext --inplace .PHONY: test -test: - $(SETUP) test +test: build + $(PYTHON) -m unittest -v .PHONY: doc doc: @@ -36,3 +37,7 @@ clean: $(RM) build dist MANIFEST venv LinPy.egg-info $(NAME)/_islhelper.*.so find . -name __pycache__ | xargs $(RM) $(MAKE) -C doc $@ + +.PHONY: upload +upload: + $(SETUP) register sdist upload diff --git a/setup.py b/setup.py index 2aff11f..72569e4 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with LinPy. If not, see . -from setuptools import setup, Extension +from distutils.core import setup, Extension with open('linpy/_version.py') as file: @@ -39,6 +39,5 @@ setup( Extension('linpy._islhelper', sources=['linpy/_islhelper.c'], libraries=['isl']) - ], - test_suite='linpy.tests' + ] )