summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--setup.py5
2 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index a58b1f6..69ba627 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
# Note: This is meant for Scilab2Py developer use only
-.PHONY: all clean test
+.PHONY: all clean test release
export KILL_SCILAB="from scilab2py import kill_scilab; kill_scilab()"
@@ -13,6 +13,13 @@ clean:
find . -name "*.pyc" -o -name "*.py,cover"| xargs rm -f
python -c $(KILL_SCILAB)
+release:
+ make clean
+ pip install wheel
+ python setup.py register
+ python setup.py bdist_wheel upload
+ python setup.py sdist --formats=gztar,zip upload
+
test:
make clean
python setup.py install
diff --git a/setup.py b/setup.py
index 2afcacb..e5df28d 100644
--- a/setup.py
+++ b/setup.py
@@ -4,11 +4,6 @@ import json
import os
import sys
-if sys.argv[-1] == 'publish':
- os.system('python setup.py register')
- os.system('python setup.py sdist --formats=gztar,zip upload')
- sys.exit()
-
kernel_json = {"argv": [sys.executable, "-m", "scilab_kernel", "-f",
"{connection_file}"],