[Python-modules-commits] [fakesleep] 01/01: Add debian directory
Free Ekanayaka
freee at moszumanska.debian.org
Sat Oct 22 08:03:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
freee pushed a commit to tag debian/0.1-1
in repository fakesleep.
commit 02c5d2ea26fd7adc227072ad280ac9d08a4d4fe9
Author: Free Ekanayaka <freee at debian.org>
Date: Thu Oct 20 08:41:22 2016 +0000
Add debian directory
---
.travis.yml | 11 +++++++++++
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 39 +++++++++++++++++++++++++++++++++++++++
debian/copyright | 39 +++++++++++++++++++++++++++++++++++++++
debian/gbp.conf | 6 ++++++
debian/rules | 7 +++++++
debian/source/format | 1 +
debian/source/options | 1 +
debian/tests/control | 2 ++
debian/tests/smoketest-2 | 12 ++++++++++++
debian/tests/smoketest-3 | 12 ++++++++++++
debian/watch | 4 ++++
13 files changed, 140 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..34d27f0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+fakesleep (0.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #841400).
+
+ -- Free Ekanayaka <freee at debian.org> Thu, 20 Oct 2016 08:34:09 +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..736e5cd
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,39 @@
+Source: fakesleep
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Free Ekanayaka <freee at debian.org>
+Build-Depends: debhelper (>= 9),
+ dh-python,
+ python-all,
+ python3-all
+Standards-Version: 3.9.8
+Homepage: http://github.com/wearpants/fakesleep
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/fakesleep.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/fakesleep.git
+
+Package: python-fakesleep
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+Description: Fake version of time.sleep() for use in tests
+ The fakesleep module helps testing code that use `time.sleep()`. Sleeping in
+ tests is generally considered bad (as it makes tests run slow). Using
+ sleep with `time.time()` can lead to spurious failures, as clock
+ precision / interpreter overhead can cause small differences in reported
+ times.
+ .
+ This package provides the Python 2.x module.
+
+Package: python3-fakesleep
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Provides: ${python3:Provides}
+Description: Fake version of time.sleep() for use in tests
+ The fakesleep module helps testing code that use `time.sleep()`. Sleeping in
+ tests is generally considered bad (as it makes tests run slow). Using
+ sleep with `time.time()` can lead to spurious failures, as clock
+ precision / interpreter overhead can cause small differences in reported
+ times.
+ .
+ This package provides the Python 3.x module.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7f6df1b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,39 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: fakesleep
+Upstream-Contact: Pete Fein <pete at wearpants.org>
+Source: https://github.com/wearpants/fakesleep
+
+Files: *
+Copyright: 2013 Pete Fein
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2016 Free Ekanayaka
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ 1) Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ 2) Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ .
+ 3) Neither the name of the ORGANIZATION nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
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/rules b/debian/rules
new file mode 100755
index 0000000..4a449e5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=fakesleep
+
+%:
+ 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..5efbdfc
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: smoketest-2 smoketest-3
+Depends: @
diff --git a/debian/tests/smoketest-2 b/debian/tests/smoketest-2
new file mode 100644
index 0000000..02b21b0
--- /dev/null
+++ b/debian/tests/smoketest-2
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+
+import sys
+import time
+import fakesleep
+
+fakesleep.monkey_patch()
+start = time.time()
+time.sleep(12345)
+
+if int(time.time() - start) != 12345:
+ sys.exit(1)
diff --git a/debian/tests/smoketest-3 b/debian/tests/smoketest-3
new file mode 100644
index 0000000..e85f688
--- /dev/null
+++ b/debian/tests/smoketest-3
@@ -0,0 +1,12 @@
+#!/usr/bin/python3
+
+import sys
+import time
+import fakesleep
+
+fakesleep.monkey_patch()
+start = time.time()
+time.sleep(12345)
+
+if int(time.time() - start) != 12345:
+ sys.exit(1)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..44471b1
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/fakesleep/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/fakesleep/fakesleep-(.+)\.(?: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/fakesleep.git
More information about the Python-modules-commits
mailing list