[spyder-unittest] 01/02: Initial debianisation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Mar 8 11:38:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository spyder-unittest.
commit cabb7c7750c82e3ea66c545371efa2c008f33a87
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sun Mar 5 10:06:57 2017 +0000
Initial debianisation
---
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 35 ++++++++++++++++++
debian/copyright | 30 ++++++++++++++++
debian/gbp.conf | 7 ++++
.../Fix-calls-to-nose-and-pytest-on-Debian.patch | 41 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 14 ++++++++
debian/source/format | 1 +
debian/source/local-options | 1 +
debian/tests/control | 11 ++++++
debian/watch | 3 ++
12 files changed, 150 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f25a052
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+spyder-unittest (0.1.2-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #854363)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com> Sun, 05 Mar 2017 10:02:12 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ed86af0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,35 @@
+Source: spyder-unittest
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+ dh-python,
+ dpkg-dev (>= 1.17.14),
+ python3-all,
+ python3-lxml <!nocheck>,
+ python3-nose <!nocheck>,
+ python3-pytest <!nocheck>,
+ python3-pytest-xvfb <!nocheck>,
+ python3-pytestqt <!nocheck>,
+ python3-setuptools,
+ python3-spyder <!nocheck>
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/spyder-unittest.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/spyder-unittest.git
+Homepage: https://github.com/spyder-ide/spyder-unittest
+X-Python3-Version: >= 3.5
+
+Package: python3-spyder-unittest
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends}
+Description: plugin to run tests within the Spyder IDE
+ This is a plugin for the Spyder IDE that integrates popular unit test
+ frameworks. It allows you to run tests and view the results.
+ .
+ The plugin adds an item Run unit tests to the Run menu in Spyder. Click on
+ this to run the unit tests. After you specify the testing framework and the
+ directory under which the tests are stored, the tests are run. The Unit
+ testing window pane (displayed at the top of this file) will pop up with the
+ results.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..035bac0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: spyder-unittest
+Source: https://pypi.python.org/pypi/spyder-unittest
+
+Files: *
+Copyright: 2013 Spyder Project Contributors
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/patches/Fix-calls-to-nose-and-pytest-on-Debian.patch b/debian/patches/Fix-calls-to-nose-and-pytest-on-Debian.patch
new file mode 100644
index 0000000..b56a823
--- /dev/null
+++ b/debian/patches/Fix-calls-to-nose-and-pytest-on-Debian.patch
@@ -0,0 +1,41 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Thu, 23 Feb 2017 23:14:16 +0000
+Subject: Fix calls to nose and pytest on Debian
+
+---
+ spyder_unittest/backend/testrunner.py | 4 ++--
+ spyder_unittest/backend/tests/test_testrunner.py | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/spyder_unittest/backend/testrunner.py b/spyder_unittest/backend/testrunner.py
+index 04d03e7..c215601 100644
+--- a/spyder_unittest/backend/testrunner.py
++++ b/spyder_unittest/backend/testrunner.py
+@@ -124,12 +124,12 @@ class TestRunner(QObject):
+ self.process.setProcessEnvironment(processEnvironment)
+
+ if framework == 'nose':
+- executable = 'nosetests'
++ executable = 'nosetests3'
+ p_args = [
+ '--with-xunit', '--xunit-file={}'.format(self.resultfilename)
+ ]
+ elif framework == 'py.test':
+- executable = 'py.test'
++ executable = 'py.test-3'
+ p_args = ['--junit-xml', self.resultfilename]
+ else:
+ raise ValueError('Unknown framework')
+diff --git a/spyder_unittest/backend/tests/test_testrunner.py b/spyder_unittest/backend/tests/test_testrunner.py
+index 30e4e88..f0b7953 100644
+--- a/spyder_unittest/backend/tests/test_testrunner.py
++++ b/spyder_unittest/backend/tests/test_testrunner.py
+@@ -43,7 +43,7 @@ def test_testrunner_start(monkeypatch):
+ mock_process.finished.connect.assert_called_once_with(runner.finished)
+ mock_process.setProcessEnvironment.assert_called_once_with(
+ mock_environment)
+- executable_name = 'py.test.exe' if os.name == 'nt' else 'py.test'
++ executable_name = 'py.test.exe' if os.name == 'nt' else 'py.test-3'
+ mock_process.start.assert_called_once_with(executable_name,
+ ['--junit-xml', 'results'])
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6af3dd0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Fix-calls-to-nose-and-pytest-on-Debian.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..df7c715
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = spyder-unittest
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+else
+export PYBUILD_TEST_ARGS = {dir}
+endif
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..b2b7b88
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+\.egg-info/"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a8ab0e8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Test-Command: set -e
+ ; PYTEST_ROOTDIR="$(pwd)"
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; HOME=/tmp $py -m pytest -v "$PYTEST_ROOTDIR"
+ ; done
+Depends: python3-all,
+ python3-pytest-xvfb,
+ python3-pytestqt,
+ python3-spyder-unittest
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2400bed
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/spyder-unittest/spyder_unittest@ANY_VERSION@@ARCHIVE_EXT@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/spyder-unittest.git
More information about the debian-science-commits
mailing list