[Python-modules-commits] [incremental] 02/02: Initial release (Closes: #842670)
Free Ekanayaka
freee at moszumanska.debian.org
Mon Oct 31 12:03:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
freee pushed a commit to branch master
in repository incremental.
commit 4b45bab2a6d0c44a2ece115098d571228d65f79a
Author: Free Ekanayaka <freee at debian.org>
Date: Mon Oct 31 09:58:26 2016 +0000
Initial release (Closes: #842670)
---
.travis.yml | 11 ++++
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 36 ++++++++++++
debian/copyright | 81 ++++++++++++++++++++++++++
debian/gbp.conf | 6 ++
debian/patches/0001-broken-flushWarnings.patch | 48 +++++++++++++++
debian/patches/series | 1 +
debian/rules | 7 +++
debian/source/format | 1 +
debian/source/options | 1 +
debian/tests/control | 5 ++
debian/tests/unit-tests-2 | 4 ++
debian/tests/unit-tests-3 | 4 ++
debian/watch | 4 ++
15 files changed, 215 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..cf2f794
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,11 @@
+sudo: required
+
+services:
+ - docker
+
+script:
+ - wget -O- http://travis.debian.net/script.sh | sh -
+
+branches:
+ except:
+ - /^debian\/\d/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cb51174
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+incremental (16.10.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #842670)
+
+ -- Free Ekanayaka <freee at debian.org> Mon, 31 Oct 2016 09:32:41 +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..1d4a475
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: incremental
+Maintainer: Free Ekanayaka <freee at debian.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+ dh-python,
+ python-all (>= 2.6.6-3),
+ python-setuptools (>= 0.6b3),
+ python-twisted-core,
+ python-click,
+ python3-all,
+ python3-setuptools (>= 0.6b3),
+ python3-twisted,
+ python3-click
+Standards-Version: 3.9.8
+Homepage: https://github.com/hawkowl/incremental
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/incremental.git
+Vcs-Git: git://anonscm.debian.org/python-modules/packages/incremental.git
+
+Package: python-incremental
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+Description: Library for versioning Python projects.
+ Incremental is a small library that versions your Python projects.
+ .
+ This package provides the Python 2.x module.
+
+Package: python3-incremental
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Provides: ${python3:Provides}
+Description: Library for versioning Python projects.
+ Incremental is a small library that versions your Python projects.
+ .
+ This package provides the Python 3.x module.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..faf1fbb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,81 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: incremental
+Upstream-Contact: Amber Brown <hawkowl at twistedmatrix.com>
+Source: https://github.com/hawkowl/incremental
+
+Files: *
+Copyright: (c) 2001-2015
+ Allen Short
+ Amber Hawkie Brown
+ Andrew Bennetts
+ Andy Gayton
+ Antoine Pitrou
+ Apple Computer, Inc.
+ Ashwini Oruganti
+ Benjamin Bruheim
+ Bob Ippolito
+ Canonical Limited
+ Christopher Armstrong
+ David Reid
+ Divmod Inc.
+ Donovan Preston
+ Eric Mangold
+ Eyal Lotem
+ Google Inc.
+ Hybrid Logic Ltd.
+ Hynek Schlawack
+ Itamar Turner-Trauring
+ James Knight
+ Jason A. Mobarak
+ Jean-Paul Calderone
+ Jessica McKellar
+ Jonathan D. Simms
+ Jonathan Jacobs
+ Jonathan Lange
+ Julian Berman
+ Jürgen Hermann
+ Kevin Horn
+ Kevin Turner
+ Laurens Van Houtven
+ Mary Gardiner
+ Massachusetts Institute of Technology
+ Matthew Lefkowitz
+ Moshe Zadka
+ Paul Swartz
+ Pavel Pergamenshchik
+ Rackspace, US Inc.
+ Ralph Meijer
+ Richard Wall
+ Sean Riley
+ Software Freedom Conservancy
+ Tavendo GmbH
+ Thijs Triemstra
+ Thomas Herve
+ Timothy Allen
+ Tom Prince
+ Travis B. Hartwell
+License: MIT
+
+Files: debian/*
+Copyright: 2016 Free Ekanayaka <freee at debian.org>
+License: MIT
+Comment: Debian packaging is licensed under the same terms as upstream
+
+License: MIT
+ 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..b7208b4
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,6 @@
+[import-orig]
+pristine-tar = True
+
+[import-orig]
+postimport = gbp dch -N%(version)s
+import-msg = New upstream release.
diff --git a/debian/patches/0001-broken-flushWarnings.patch b/debian/patches/0001-broken-flushWarnings.patch
new file mode 100644
index 0000000..2580207
--- /dev/null
+++ b/debian/patches/0001-broken-flushWarnings.patch
@@ -0,0 +1,48 @@
+From: Free Ekanayaka <freee at debian.org>
+Date: Mon, 31 Oct 2016 10:31:46 +0000
+Subject: broken-flushWarnings
+
+Fix spurious unit tests failures due to broken behavior in
+SynchronousTestCase.flushWarnings, which ends up skipping
+warnings. See this code around 1160:
+
+aModule = sys.modules[aFunction.__module__]
+filename = inspect.getabsfile(aModule)
+
+if filename != os.path.normcase(aWarning.filename):
+ continue
+---
+ src/incremental/tests/test_version.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/incremental/tests/test_version.py b/src/incremental/tests/test_version.py
+index 75129af..0ccd8e9 100644
+--- a/src/incremental/tests/test_version.py
++++ b/src/incremental/tests/test_version.py
+@@ -9,6 +9,7 @@ from __future__ import division, absolute_import
+
+ import sys
+ import operator
++import unittest
+
+ from tempfile import mkdtemp
+
+@@ -148,7 +149,7 @@ class VersionsTests(TestCase):
+ Passing 'prerelease' to Version is deprecated.
+ """
+ Version("whatever", 1, 0, 0, prerelease=1)
+- warnings = self.flushWarnings([self.test_prereleaseDeprecated])
++ warnings = self.flushWarnings()
+ self.assertEqual(len(warnings), 1)
+ self.assertEqual(
+ warnings[0]['message'],
+@@ -161,8 +162,7 @@ class VersionsTests(TestCase):
+ """
+ va = Version("whatever", 1, 0, 0, release_candidate=1)
+ va.prerelease
+- warnings = self.flushWarnings(
+- [self.test_prereleaseAttributeDeprecated])
++ warnings = self.flushWarnings()
+ self.assertEqual(len(warnings), 1)
+ self.assertEqual(
+ warnings[0]['message'],
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a414c48
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-broken-flushWarnings.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c06eef5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=incremental
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/incremental.tests.*
+
+%:
+ dh $@ --with python2,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/options b/debian/source/options
new file mode 100644
index 0000000..aa96de8
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore = "^\.travis\.yml$"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a8ee694
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: unit-tests-2 unit-tests-3
+Restrictions: needs-root
+Depends: @,
+ python-twisted-core,
+ python3-twisted
diff --git a/debian/tests/unit-tests-2 b/debian/tests/unit-tests-2
new file mode 100644
index 0000000..c29b522
--- /dev/null
+++ b/debian/tests/unit-tests-2
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+cd $AUTOPKGTEST_TMP
+trial incremental
diff --git a/debian/tests/unit-tests-3 b/debian/tests/unit-tests-3
new file mode 100644
index 0000000..cb5eec3
--- /dev/null
+++ b/debian/tests/unit-tests-3
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+cd $AUTOPKGTEST_TMP
+trial3 incremental
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2e80a57
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/incremental/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/incremental/incremental-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/incremental.git
More information about the Python-modules-commits
mailing list