[Python-modules-commits] [python-json-rpc] 02/03: Initial debianization
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Oct 18 21:08:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository python-json-rpc.
commit 23536b480447a4062505005f0b73ba62fbd3aceb
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Wed Oct 18 19:18:05 2017 +0100
Initial debianization
---
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 47 ++++++++++++++++++++++
debian/copyright | 31 ++++++++++++++
debian/gbp.conf | 7 ++++
...ix-missing-super-call-to-Django-test-case.patch | 21 ++++++++++
...ecated-usage-of-django.conf.urls.patterns.patch | 25 ++++++++++++
debian/patches/series | 2 +
debian/rules | 16 ++++++++
debian/source/format | 1 +
debian/source/options | 1 +
debian/tests/control | 12 ++++++
debian/watch | 3 ++
13 files changed, 172 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1642655
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-json-rpc (1.10.3-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #879050)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com> Wed, 18 Oct 2017 18:24:07 +0100
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..759a138
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,47 @@
+Source: python-json-rpc
+Maintainer: Debian Python Modules Team <python-modules-team 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),
+ pypy,
+ pypy-setuptools,
+ python3-all,
+ python3-django <!nocheck>,
+ python3-flask <!nocheck>,
+ python3-mock <!nocheck>,
+ python3-nose <!nocheck>,
+ python3-setuptools
+Standards-Version: 4.1.1
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-json-rpc.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-json-rpc.git
+Homepage: https://github.com/pavlov99/json-rpc
+X-Python3-Version: >= 3.3
+
+Package: python3-jsonrpc
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends}
+Description: Python implementation of JSON-RPC 1.0 and 2.0 (Python 3)
+ JSON-RPC is a stateless, light-weight remote procedure call (RPC) protocol.
+ Primarily this specification defines several data structures and the rules
+ around their processing. It is transport agnostic in that the concepts can be
+ used within the same process, over sockets, over http, or in many various
+ message passing environments. It uses JSON (RFC 4627) as data format.
+ .
+ This package provides the modules for Python 3.
+
+Package: pypy-jsonrpc
+Architecture: all
+Depends: ${misc:Depends},
+ ${pypy:Depends}
+Description: Python implementation of JSON-RPC 1.0 and 2.0 (PyPy)
+ JSON-RPC is a stateless, light-weight remote procedure call (RPC) protocol.
+ Primarily this specification defines several data structures and the rules
+ around their processing. It is transport agnostic in that the concepts can be
+ used within the same process, over sockets, over http, or in many various
+ message passing environments. It uses JSON (RFC 4627) as data format.
+ .
+ This package provides the modules for PyPy.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f9bd01c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: json-rpc
+Upstream-Contact: Kirill Pavlov <kirill.pavlov at phystech.edu>
+Source: https://pypi.python.org/pypi/json-rpc
+
+Files: *
+Copyright: 2013-2015 Kirill Pavlov <kirill.pavlov at phystech.edu>
+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..b339aaa
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream/latest
+debian-branch = debian/master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/patches/Fix-missing-super-call-to-Django-test-case.patch b/debian/patches/Fix-missing-super-call-to-Django-test-case.patch
new file mode 100644
index 0000000..23f7655
--- /dev/null
+++ b/debian/patches/Fix-missing-super-call-to-Django-test-case.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at users.noreply.github.com>
+Date: Wed, 18 Oct 2017 21:37:49 +0100
+Subject: Fix missing super call to Django test case
+
+See https://stackoverflow.com/questions/29653129/update-to-django-1-8-attributeerror-django-test-testcase-has-no-attribute-cl
+---
+ jsonrpc/tests/test_backend_django/tests.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/jsonrpc/tests/test_backend_django/tests.py b/jsonrpc/tests/test_backend_django/tests.py
+index 3f8ff0e..090cee3 100644
+--- a/jsonrpc/tests/test_backend_django/tests.py
++++ b/jsonrpc/tests/test_backend_django/tests.py
+@@ -13,6 +13,7 @@ class TestDjangoBackend(TestCase):
+ def setUpClass(cls):
+ os.environ['DJANGO_SETTINGS_MODULE'] = \
+ 'jsonrpc.tests.test_backend_django.settings'
++ super(TestDjangoBackend, cls).setUpClass()
+
+ def test_urls(self):
+ self.assertTrue(isinstance(api.urls, list))
diff --git a/debian/patches/Remove-deprecated-usage-of-django.conf.urls.patterns.patch b/debian/patches/Remove-deprecated-usage-of-django.conf.urls.patterns.patch
new file mode 100644
index 0000000..5eb9aee
--- /dev/null
+++ b/debian/patches/Remove-deprecated-usage-of-django.conf.urls.patterns.patch
@@ -0,0 +1,25 @@
+From: Ghislain Antony Vaillant <ghisvail at users.noreply.github.com>
+Date: Wed, 18 Oct 2017 21:35:56 +0100
+Subject: Remove deprecated usage of django.conf.urls.patterns
+
+https://stackoverflow.com/questions/34108321/new-url-format-in-django-1-9
+---
+ jsonrpc/tests/test_backend_django/urls.py | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/jsonrpc/tests/test_backend_django/urls.py b/jsonrpc/tests/test_backend_django/urls.py
+index d428427..7aeefd9 100644
+--- a/jsonrpc/tests/test_backend_django/urls.py
++++ b/jsonrpc/tests/test_backend_django/urls.py
+@@ -1,8 +1,7 @@
+-from django.conf.urls import patterns, url, include
++from django.conf.urls import url, include
+ from jsonrpc.backend.django import api
+
+-urlpatterns = patterns(
+- '',
++urlpatterns = [
+ url(r'', include(api.urls)),
+ url(r'prefix', include(api.urls)),
+-)
++]
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2fbaa25
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Remove-deprecated-usage-of-django.conf.urls.patterns.patch
+Fix-missing-super-call-to-Django-test-case.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ee93ec8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=jsonrpc
+
+# Testing requires nose, which is missing a binary package for PyPy,
+# see <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869971>.
+export PYBUILD_DISABLE_pypy=test
+
+%:
+ dh $@ --with python3,pypy --buildsystem=pybuild
+
+get-orig-source:
+ uscan --download-current-version --force-download --no-symlink
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/options b/debian/source/options
new file mode 100644
index 0000000..b2b7b88
--- /dev/null
+++ b/debian/source/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..e27978e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,12 @@
+Test-Command: set -e
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -v --pyargs jsonrpc
+ ; done
+Depends: python3-all,
+ python3-django,
+ python3-flask,
+ python3-jsonrpc,
+ python3-mock,
+ python3-pytest
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..22a0e3b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?@ANY_VERSION@\.tar\.gz/json-rpc-$1\.tar\.gz/ \
+https://github.com/pavlov99/json-rpc/tags .*/v?@ANY_VERSION@\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-json-rpc.git
More information about the Python-modules-commits
mailing list