[Python-modules-commits] [libthumbor] 02/05: Importing debian folder from Gilles Dubuc repository

Marcelo Jorge Vieira metal at moszumanska.debian.org
Fri Sep 8 01:42:54 UTC 2017


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

metal pushed a commit to branch master
in repository libthumbor.

commit 4e8d3ac51bcbc0c8647cddccaf87e5f7a4dc0478
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Thu Sep 7 22:24:00 2017 -0300

    Importing debian folder from Gilles Dubuc repository
    
    https://github.com/gi11es/thumbor-debian
---
 debian/changelog                       |  5 +++++
 debian/compat                          |  1 +
 debian/control                         | 25 +++++++++++++++++++++++++
 debian/copyright                       | 34 ++++++++++++++++++++++++++++++++++
 debian/docs                            |  1 +
 debian/patches/FixTestsForTornado4.2.0 | 28 ++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 debian/rules                           | 10 ++++++++++
 debian/source/format                   |  1 +
 debian/watch                           |  3 +++
 10 files changed, 109 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f6a5508
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libthumbor (1.3.2-1) unstable; urgency=low
+
+  * Initial release. (Closes: #783577)
+
+ -- Gilles Dubuc <gilles at wikimedia.org>  Thu, 19 May 2016 15:30:16 +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..1e1d840
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: libthumbor
+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 (>= 2.20150826),
+               python-all,
+               python-nose,
+               python-preggy,
+               python-setuptools,
+               python-six
+X-Python-Version: >= 2.6
+Homepage: https://github.com/thumbor/libthumbor
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/libthumbor.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/libthumbor.git
+
+Package: python-libthumbor
+Architecture: all
+Depends: python-pkg-resources, ${misc:Depends}, ${python:Depends}, python-six
+Suggests: python-django
+Description: Python module to make usage of Thumbor easy in Python
+ Allows easy usage of Thumbor in Python, by facilitating the generation
+ of signed URLs to thumbor-generated assets.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4a8da78
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libthumbor
+Source: https://github.com/thumbor/libthumbor
+
+Files: *
+Copyright: 2014-2016 globo.com <timehome at corp.globo.com>,
+           2011-2016 Bernardo Heynemann <heynemann at gmail.com>
+License: MIT
+
+Files: debian/*
+Copyright: 2014-2016 globo.com <timehome at corp.globo.com>,
+           2016 Gilles Dubuc <gilles at wikimedia.org>
+License: MIT
+
+License: MIT
+  Copyright (c) 2014-2016 globo.com <timehome at corp.globo.com>
+  .
+  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..c2401f7
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.mkd
diff --git a/debian/patches/FixTestsForTornado4.2.0 b/debian/patches/FixTestsForTornado4.2.0
new file mode 100644
index 0000000..2afacbb
--- /dev/null
+++ b/debian/patches/FixTestsForTornado4.2.0
@@ -0,0 +1,28 @@
+Description: Fixes tests for Tornado 4.2.0
+ The existing check is too strict, in that version of Tornado
+ the newlines end up in different spots.
+Author: Gilles Dubuc <gilles at wikimedia.org>
+
+--- libthumbor-1.3.2.orig/tests/test_generic_views.py
++++ libthumbor-1.3.2/tests/test_generic_views.py
+@@ -99,7 +99,7 @@ if DJANGO_PRESENT:
+             response = self.client.get('/gen_url/?' + self.url_query.urlencode())
+ 
+             assert HTTP_BAD_REQUEST == response.status_code, "Got %d" % response.status_code
+-            assert b("Missing values for cropping. Expected all 'crop_left', 'crop_top', 'crop_right', 'crop_bottom' values.") == response.content
++	    assert "Missing values for cropping" in response.content
+ 
+         def test_passing_only_one_crop_with_invalid_value(self):
+             self.url_query.update({
+@@ -113,10 +113,7 @@ if DJANGO_PRESENT:
+             response = self.client.get('/gen_url/?' + self.url_query.urlencode())
+ 
+             assert HTTP_BAD_REQUEST == response.status_code, "Got %d" % response.status_code
+-            assert b(
+-                '''Invalid values for cropping.
+-                    Expected all 'crop_left', 'crop_top', 'crop_right',
+-                    'crop_bottom' to be integers.''') == response.content
++            assert "Invalid values for cropping" in response.content
+ 
+         def test_passing_various_erroneous_values(self):
+             self.url_query.update({
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6cb5e61
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+FixTestsForTornado4.2.0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8ff9140
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+export PYBUILD_NAME=libthumbor
+export PYBUILD_TEST_NOSE=1
+
+%:
+	dh $@ --with python2 --buildsystem=pybuild
+
+override_dh_clean:
+	rm -rf libthumbor.egg-info .coverage
+	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..6234692
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="filenamemangle=s/.+\/v?(.*)\.tar\.gz/libthumbor-$1.tar.gz/" \
+ https://github.com/thumbor/libthumbor/tags (?:.*/)?v?(\d[\d\.]*)\.tar\.gz

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



More information about the Python-modules-commits mailing list