[Python-modules-commits] [pytest-httpbin] 02/06: Imported Debian patch 0.1.1-1

Daniel Stender danstender-guest at moszumanska.debian.org
Thu Nov 19 17:31:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

danstender-guest pushed a commit to branch master
in repository pytest-httpbin.

commit d048ad6e3af4b3b40a146b0a6310cdf32d7a07a8
Author: Daniel Stender <debian at danielstender.com>
Date:   Thu Nov 19 18:05:31 2015 +0100

    Imported Debian patch 0.1.1-1
---
 debian/changelog                   |  5 +++++
 debian/compat                      |  1 +
 debian/control                     | 45 ++++++++++++++++++++++++++++++++++++++
 debian/copyright                   | 33 ++++++++++++++++++++++++++++
 debian/rules                       | 26 ++++++++++++++++++++++
 debian/source/format               |  1 +
 debian/tests/control               |  2 ++
 debian/tests/python-pytest-httpbin |  3 +++
 debian/watch                       |  4 ++++
 9 files changed, 120 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5558b66
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pytest-httpbin (0.1.1-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #787114).
+
+ -- Daniel Stender <debian at danielstender.com>  Thu, 19 Nov 2015 18:05:31 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e40e1fc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: pytest-httpbin
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders:
+ Daniel Stender <debian at danielstender.com>
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ pandoc,
+ python-all,
+ python-decorator,
+ python-flask,
+ python-httpbin,
+ python-pytest,
+ python-requests,
+ python-setuptools,
+ python-six,
+ python-werkzeug
+Standards-Version: 3.9.6
+Homepage: https://github.com/kevin1024/pytest-httpbin
+Vcs-Git: git://anonscm.debian.org/python-modules/packages/pytest-httpbin.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/pytest-httpbin.git
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.4
+Testsuite: autopkgtest
+
+Package: python-pytest-httpbin
+Architecture: all
+Depends:
+ ${python:Depends},
+ python-httpbin,
+ python-pytest,
+ python-werkzeug,
+ ${misc:Depends}
+Description: py.test plugin providing a local httpbin
+ httpbin is a WSGI based test server for testing HTTP applications.
+ pytest-httpbin creates a fixture for the py.test framework that
+ is dependency-injected into tests, it automatically starts up a
+ local running instance of httpbin in a separate thread and
+ provides the test with the URL in the fixture.
+ .
+ This package provides the py.test plugin for Python 2 code.
+
+# no python3 package due to missing python3-httpbin (#661510).
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..88921b7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pytest-httpbin
+Upstream-Contact: Kevin McCarthy <me at kevinmccarthy.org>
+Source: https://github.com/kevin1024/pytest-httpbin
+Files-Excluded: .gitignore
+
+Files: *
+Copyright: 2014-2015 Kevin McCarthy <me at kevinmccarthy.org>
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Daniel Stender <debian at danielstender.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/rules b/debian/rules
new file mode 100755
index 0000000..58c0f92
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+#export DEB_BUILD_OPTIONS=nocheck
+export PYBUILD_NAME=pytest-httpbin
+
+# needed for unblocked localhost
+export http_proxy=
+export https_proxy=
+
+%:
+	dh $@ --with python2 --buildsystem=pybuild
+
+override_dh_auto_test:
+
+override_dh_auto_install:
+	dh_auto_install
+	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" dh_auto_test
+	# run tests after install: plugin needs to get registered by setup.py/entry_points
+
+override_dh_installdocs:
+	pandoc -f markdown -t plain -o .pybuild/README README.md
+	dh_installdocs -A .pybuild/README
+
+override_dh_installchangelogs:
+	sed -n '/'Changelog'/,/'0.0.1'/p' .pybuild/README > .pybuild/changelog
+	dh_installchangelogs -A .pybuild/changelog
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..54056d1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: python-pytest-httpbin
+Depends: python-pytest-httpbin, python-all, python-pytest, python-flask, python-decorator, python-six, python-werkzeug, python-requests, python-httpbin
\ No newline at end of file
diff --git a/debian/tests/python-pytest-httpbin b/debian/tests/python-pytest-httpbin
new file mode 100755
index 0000000..8f3dff1
--- /dev/null
+++ b/debian/tests/python-pytest-httpbin
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+for py in $(pyversions -i); do echo "$py:\n"; $py -Wd -m pytest -v -x 2>&1; done
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1bbfe9b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="filenamemangle=s/(?:.*)?v?(\d[\d\.]+)\.tar\.gz/pytest-httpbin-$1.tar.gz/" \
+https://github.com/kevin1024/pytest-httpbin/releases (?:.*/)?v?(\d[\d\.]+)\.tar\.gz
+# Github tarball ships with tests
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest-httpbin.git



More information about the Python-modules-commits mailing list