[Python-modules-commits] [exam] 02/03: Initial release. (Closes: #825822)

Scott Kitterman kitterman at moszumanska.debian.org
Sat Jul 8 03:33:25 UTC 2017


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

kitterman pushed a commit to branch debian/master
in repository exam.

commit 8edfd78d3c1bf6f5aeab787ffc28878c4c7448b4
Author: Scott Kitterman <scott at kitterman.com>
Date:   Fri Jul 7 23:20:46 2017 -0400

    Initial release. (Closes: #825822)
---
 debian/changelog                                   |  5 ++
 debian/compat                                      |  1 +
 debian/control                                     | 91 ++++++++++++++++++++++
 debian/copyright                                   | 21 +++++
 debian/docs                                        |  1 +
 debian/format                                      |  1 +
 debian/patches/Tests-failing-on-3.5                | 56 +++++++++++++
 ...stream-7c3f150a38076b48717cf08567c3e4809bf22a3d | 33 ++++++++
 debian/patches/series                              |  2 +
 debian/rules                                       |  9 +++
 debian/source/format                               |  1 +
 debian/watch                                       |  3 +
 12 files changed, 224 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..146e32a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+exam (0.10.5-1) unstable; urgency=low
+
+  * Initial release. (Closes: #825822)
+
+ -- Gilles Dubuc <gilles at wikimedia.org>  Thu, 19 May 2016 17:03:26 +0000
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..ea37da4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,91 @@
+Source: exam
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Gilles Dubuc <gilles at wikimedia.org>
+Section: python
+Priority: optional
+Standards-Version: 3.9.8
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-mock,
+               python-nose,
+               python-pytest,
+               python-setuptools,
+               python-sphinx,
+               python3-all,
+               python3-mock,
+               python3-nose,
+               python3-pytest,
+               python3-setuptools,
+               python3-sphinx
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+Homepage: https://github.com/fluxx/exam
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-exam.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-exam.git
+
+Package: python-exam
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python-mock
+Description: Python module to help write better tests
+ Exam is a Python toolkit for writing better tests.  It aims to remove
+ a lot of the boiler plate testing code one often writes, while still
+ following Python conventions and adhering to the unit testing
+ interface.
+ .
+ Aside from the obvious "does the code work?", writings tests has many
+ additional goals and benefits:
+ .
+ - If written semantically, reading tests can help demonstrate how the
+ code is supposed to work to other developers.
+ .
+ - If quick running, tests provide feedback during development that
+ your changes are working or not having an adverse side effects.
+ .
+ - If they're easy to write correctly, developers will write more tests
+ and they will be of a higher quality.
+ .
+ Unfortunately, the common pattern for writing Python unit tests tends
+ to not offer any of these advantages. Often times results in
+ inefficient and unnecessarily obtuse testing code. Additionally,
+ common uses of the mock library can often result in repetitive
+ boiler-plate code or inefficiency during test runs.
+ .
+ exam aims to improve the state of Python test writing by providing a
+ toolkit of useful functionality to make writing quick, correct and
+ useful tests and as painless as possible.
+ .
+ This package installs the library for Python 2.
+
+Package: python3-exam
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python-mock
+Description: Python module to help write better tests
+ Exam is a Python toolkit for writing better tests.  It aims to remove
+ a lot of the boiler plate testing code one often writes, while still
+ following Python conventions and adhering to the unit testing
+ interface.
+ .
+ Aside from the obvious "does the code work?", writings tests has many
+ additional goals and benefits:
+ .
+ - If written semantically, reading tests can help demonstrate how the
+ code is supposed to work to other developers.
+ .
+ - If quick running, tests provide feedback during development that
+ your changes are working or not having an adverse side effects.
+ .
+ - If they're easy to write correctly, developers will write more tests
+ and they will be of a higher quality.
+ .
+ Unfortunately, the common pattern for writing Python unit tests tends
+ to not offer any of these advantages. Often times results in
+ inefficient and unnecessarily obtuse testing code. Additionally,
+ common uses of the mock library can often result in repetitive
+ boiler-plate code or inefficiency during test runs.
+ .
+ exam aims to improve the state of Python test writing by providing a
+ toolkit of useful functionality to make writing quick, correct and
+ useful tests and as painless as possible.
+ .
+ This package installs the library for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fdd5620
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,21 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: exam
+Source: https://github.com/fluxx/exam
+
+Files: *
+Copyright: 2012 Jeff Pollard <jeff.pollard at gmail.com>
+License: MIT
+
+Files: debian/*
+Copyright: 2012 Jeff Pollard <jeff.pollard at gmail.com>,
+           2016 Gilles Dubuc <gilles at wikimedia.org>
+License: MIT
+
+License: MIT
+ Copyright (c) 2012 Jeff Pollard
+
+ 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/docs b/debian/docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/format b/debian/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/patches/Tests-failing-on-3.5 b/debian/patches/Tests-failing-on-3.5
new file mode 100644
index 0000000..5e70706
--- /dev/null
+++ b/debian/patches/Tests-failing-on-3.5
@@ -0,0 +1,56 @@
+Description: Tests failing on 3.5
+ Skips some tests that fail due to syntax deprecated in 3.5.
+ .
+ exam (0.10.5-1) UNRELEASED; urgency=medium
+ .
+   * Initial release.
+Author: Gilles Dubuc <gilles at wikimedia.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+Index: exam-0.10.5/tests/test_mock.py
+===================================================================
+--- exam-0.10.5.orig/tests/test_mock.py
++++ exam-0.10.5/tests/test_mock.py
+@@ -1,3 +1,6 @@
++import sys
++import unittest
++
+ from tests import TestCase
+ 
+ from exam.mock import Mock
+@@ -28,6 +31,7 @@ class MockTest(TestCase):
+         self.mock.reset_mock()
+         self.mock.assert_not_called()
+ 
++    @unittest.skipIf(sys.version_info > (3,4), "fails on 3.5")
+     def test_assert_not_called_with_asserts_not_called_with_args(self):
+         self.mock(1, 2, three=4)
+         self.mock.assert_called_with(1, 2, three=4)
+@@ -42,6 +46,7 @@ class MockTest(TestCase):
+         self.mock('foo')
+         self.mock.assert_not_called_with(1, 2, three=4)  # not the latest call
+ 
++    @unittest.skipIf(sys.version_info > (3,4), "fails on 3.5")
+     def test_assert_not_called_once_with_asserts_one_call_with_args(self):
+         self.mock.assert_not_called_once_with(1, 2, three=4)  # 0 times
+ 
+@@ -53,6 +58,7 @@ class MockTest(TestCase):
+         self.mock(1, 2, three=4)
+         self.mock.assert_not_called_once_with(1, 2, three=4)  # 2 times
+ 
++    @unittest.skipIf(sys.version_info > (3,4), "fails on 3.5")
+     def test_assert_not_any_call_asserts_never_called_with_args(self):
+         self.mock.assert_not_any_call(1, 2, three=4)
+ 
diff --git a/debian/patches/Upstream-7c3f150a38076b48717cf08567c3e4809bf22a3d b/debian/patches/Upstream-7c3f150a38076b48717cf08567c3e4809bf22a3d
new file mode 100644
index 0000000..10dc71d
--- /dev/null
+++ b/debian/patches/Upstream-7c3f150a38076b48717cf08567c3e4809bf22a3d
@@ -0,0 +1,33 @@
+Description: Upstream fix 7c3f150a38076b48717cf08567c3e4809bf22a3d
+ The module used to install its tests folder in the global namespace.
+ This upstream commit fixes that.
+ .
+ exam (0.10.5-1) UNRELEASED; urgency=medium
+ .
+   * Initial release.
+Author: Gilles Dubuc <gilles at wikimedia.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- exam-0.10.5.orig/setup.py
++++ exam-0.10.5/setup.py
+@@ -27,7 +27,7 @@ setup(
+     url='https://github.com/fluxx/exam',
+     description='Helpers for better testing.',
+     license='MIT',
+-    packages=find_packages(),
++    packages=find_packages(exclude=['tests', 'tests.*']),
+     install_requires=install_requires,
+     tests_require=tests_require,
+     setup_requires=setup_requires,
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b4dfd5a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Upstream-7c3f150a38076b48717cf08567c3e4809bf22a3d
+Tests-failing-on-3.5
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..eec33a8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+export PYBUILD_NAME=exam
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_clean:
+	rm -rf exam.egg-info .cache
+	dh_clean
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..04659a6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/exam/exam-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

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



More information about the Python-modules-commits mailing list