[spyder-unittest] 01/02: Initial debianisation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Feb 23 16:20:05 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 2d241f3882031b0fe85528d54702ba81117a4bd3
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Tue Feb 21 18:47:26 2017 +0000
Initial debianisation
---
debian/changelog | 5 ++++
debian/clean | 1 +
debian/compat | 1 +
debian/control | 28 ++++++++++++++++++++
debian/copyright | 30 ++++++++++++++++++++++
debian/gbp.conf | 7 +++++
debian/patches/Fix-parsing-of-module-version.patch | 22 ++++++++++++++++
debian/patches/series | 1 +
debian/rules | 12 +++++++++
debian/source/format | 1 +
debian/watch | 3 +++
11 files changed, 111 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..62a782e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+spyder-unittest (0.1.1-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #854363)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com> Tue, 21 Feb 2017 18:46:08 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..45149aa
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+*.egg-info/*
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..88d2319
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+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,
+ python3-all,
+ python3-setuptools
+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-parsing-of-module-version.patch b/debian/patches/Fix-parsing-of-module-version.patch
new file mode 100644
index 0000000..4599e92
--- /dev/null
+++ b/debian/patches/Fix-parsing-of-module-version.patch
@@ -0,0 +1,22 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Mon, 13 Feb 2017 20:22:25 +0000
+Subject: Fix parsing of module version
+
+---
+ setup.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index a0b7041..baf07b5 100644
+--- a/setup.py
++++ b/setup.py
+@@ -15,7 +15,8 @@ import os.path as osp
+
+ def get_version():
+ """Get version from source file"""
+- with open("spyder_unittest/__init__.py") as f:
++ import codecs
++ with codecs.open("spyder_unittest/__init__.py", encoding="utf-8") as f:
+ lines = f.read().splitlines()
+ for l in lines:
+ if "__version__" in l:
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1d526e7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Fix-parsing-of-module-version.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8e5f0e9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export PYBUILD_NAME = spyder-unittest
+# The tests are currently disabled whilst upstream is working on a fix,
+# see <https://github.com/spyder-ide/spyder-unittest/issues/64>
+export PYBUILD_DISABLE = test
+
+%:
+ 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/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