[Python-modules-commits] [ipython4] 01/01: Quote arguments in ipython.sh
Gordon Ball
chronitis-guest at moszumanska.debian.org
Tue Oct 10 20:58:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
chronitis-guest pushed a commit to branch master
in repository ipython4.
commit 32c14000b58dee7ceb346cbae838a27f41ded964
Author: Gordon Ball <gordon at chronitis.net>
Date: Tue Oct 10 20:00:26 2017 +0000
Quote arguments in ipython.sh
---
debian/changelog | 1 +
debian/ipython.sh | 2 +-
debian/ipython3.sh | 2 +-
debian/tests/control | 7 ++-----
debian/tests/ipyshell | 6 ++++++
5 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cef61b2..5bb9cd6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ ipython (5.5.0-1) UNRELEASED; urgency=medium
* Add myself to uploaders
* Add pydist-overrides file mapping IPython to python-ipython, and
equivalent for python3
+ * Quote arguments to ipython -c (closes: #843793)
-- Gordon Ball <gordon at chronitis.net> Sun, 17 Sep 2017 16:05:57 +0200
diff --git a/debian/ipython.sh b/debian/ipython.sh
index eb642f8..87f1c78 100755
--- a/debian/ipython.sh
+++ b/debian/ipython.sh
@@ -7,5 +7,5 @@ then
echo "Please install the python$VERSION package." >&2
exit 1
else
- exec python$VERSION -c "import sys; sys.argv[0] = '/usr/bin/ipython$VERSION'; from IPython.terminal.ipapp import launch_new_instance; launch_new_instance()" $@
+ exec python$VERSION -c "import sys; sys.argv[0] = '/usr/bin/ipython$VERSION'; from IPython.terminal.ipapp import launch_new_instance; launch_new_instance()" "$@"
fi
diff --git a/debian/ipython3.sh b/debian/ipython3.sh
index 6790e6e..607a34a 100755
--- a/debian/ipython3.sh
+++ b/debian/ipython3.sh
@@ -7,5 +7,5 @@ then
echo "Please install the python$VERSION package." >&2
exit 1
else
- exec python$VERSION -c "import sys; sys.argv[0] = '/usr/bin/ipython$VERSION'; from IPython.terminal.ipapp import launch_new_instance; launch_new_instance()" $@
+ exec python$VERSION -c "import sys; sys.argv[0] = '/usr/bin/ipython$VERSION'; from IPython.terminal.ipapp import launch_new_instance; launch_new_instance()" "$@"
fi
diff --git a/debian/tests/control b/debian/tests/control
index ed1ba42..14f44ec 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -4,10 +4,7 @@ Depends: python, python-ipython
Test-Command: python3 -c "import IPython; print(IPython)"
Depends: python3, python3-ipython
-Test-Command: ipython debian/tests/test.ipy
-Depends: ipython
+Tests: ipyshell
+Depends: ipython, ipython3
Restrictions: allow-stderr
-Test-Command: ipython3 debian/tests/test.ipy
-Depends: ipython3
-Restrictions: allow-stderr
diff --git a/debian/tests/ipyshell b/debian/tests/ipyshell
new file mode 100755
index 0000000..3b3aa34
--- /dev/null
+++ b/debian/tests/ipyshell
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for ipy in ipython ipython3; do
+ $ipy debian/tests/test.ipy
+ $ipy -c 'print("hello world")'
+done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/ipython4.git
More information about the Python-modules-commits
mailing list