[lasagne] 02/07: restore debian after import-orig

Daniel Stender stender at moszumanska.debian.org
Fri Nov 3 14:21:34 UTC 2017


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

stender pushed a commit to branch master
in repository lasagne.

commit e3c3b0d3a27d193d9e3f7198795e2b6cf071125e
Author: Daniel Stender <stender at debian.org>
Date:   Fri Nov 3 13:40:00 2017 +0100

    restore debian after import-orig
---
 debian/changelog                         | 28 ++++++++++
 debian/clean                             |  1 +
 debian/compat                            |  1 +
 debian/control                           | 96 ++++++++++++++++++++++++++++++++
 debian/copyright                         | 64 +++++++++++++++++++++
 debian/gbp.conf                          |  8 +++
 debian/lasagne-doc.doc-base              |  7 +++
 debian/patches/pytest-no-cov-pep8.patch  | 18 ++++++
 debian/patches/remove-deprecated.patch   | 42 ++++++++++++++
 debian/patches/series                    |  3 +
 debian/patches/use-mathjax-package.patch | 17 ++++++
 debian/python-lasagne.examples           |  1 +
 debian/python3-lasagne.examples          |  1 +
 debian/rules                             | 26 +++++++++
 debian/source/format                     |  1 +
 debian/watch                             |  3 +
 16 files changed, 317 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a10c949
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,28 @@
+lasagne (0.1+git20160728.8b66737-4) UNRELEASED; urgency=medium
+
+  * Change maintainer to Debian Science.
+  * Change Debian policy to 4.1.1.
+  * Remove whitespace.
+  * Fix build-depends-on-python-dev-with-no-arch-any
+  * Fix build-depends-on-python-sphinx-only
+
+ -- Stephen Sinclair <radarsat1 at gmail.com>  Thu, 02 Nov 2017 19:05:25 -0300
+
+lasagne (0.1+git20160728.8b66737-3) unstable; urgency=medium
+
+  * deb/control: fix b-deps [Michael Hudson-Doyle] (Closes: #865947).
+
+ -- Daniel Stender <stender at debian.org>  Mon, 26 Jun 2017 07:22:25 +0200
+
+lasagne (0.1+git20160728.8b66737-2) unstable; urgency=medium
+
+  * Use inspect.signature instead of inspect.getargspec if possible
+    (Closes: #834910) [Ole Streicher].
+
+ -- Daniel Stender <stender at debian.org>  Thu, 09 Feb 2017 12:25:30 +0100
+
+lasagne (0.1+git20160728.8b66737-1) unstable; urgency=medium
+
+  * Initial release (Closes: #818641).
+
+ -- Daniel Stender <stender at debian.org>  Fri, 19 Aug 2016 18:46:45 +0200
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..6f8ebe3
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+Lasagne.egg-info/
\ No newline at end of file
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..04feec4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,96 @@
+Source: lasagne
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders:
+ Stephen Sinclair <radarsat1 at gmail.com>
+Section: science
+Priority: optional
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ python-all,
+ python3-all,
+ python-setuptools,
+ python3-setuptools,
+ python-theano (>= 0.8.0),
+ python3-theano (>= 0.8.0),
+ python-numpy,
+ python3-numpy,
+ python-docutils, links,
+ python-pytest,
+ python3-pytest,
+ python-mock,
+ python3-mock,
+ python3-sphinx (>= 1.6.5~),
+ python-numpydoc,
+ python-jinja2 (>= 2.7.3~),
+ python-sphinx-rtd-theme
+Standards-Version: 4.1.1
+Homepage: http://lasagne.readthedocs.org/
+Vcs-Git: https://anonscm.debian.org/git/collab-maint/lasagne.git
+Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/lasagne.git
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
+
+Package: python-lasagne
+Architecture: all
+Section: python
+Depends:
+ python-theano (>= 0.8.0),
+ ${misc:Depends},
+ ${python:Depends}
+Recommends:
+ lasagne-doc
+Description: deep learning library build on the top of Theano (Python2 modules)
+ Lasagne is a Python library to build and train deep (multi-layered) artificial
+ neural networks on the top of Theano (math expression compiler). In comparison
+ to other abstraction layers for that like e.g. Keras, it abstracts Theano as
+ little as possible.
+ .
+ Lasagne supports networks like Convolutional Neural Networks (CNN, mostly used
+ for image recognition resp. classification) and the Long Short-Term Memory type
+ (LSTM, a subtype of Recurrent Neural Networks, RNN).
+  .
+ This package contains the modules for Python 2.
+
+Package: python3-lasagne
+Architecture: all
+Section: python
+Depends:
+ python3-theano (>= 0.8.0),
+ ${misc:Depends},
+ ${python3:Depends}
+Recommends:
+ lasagne-doc
+Description: deep learning library build on the top of Theano (Python3 modules)
+ Lasagne is a Python library to build and train deep (multi-layered) artificial
+ neural networks on the top of Theano (math expression compiler). In comparison
+ to other abstraction layers for that like e.g. Keras, it abstracts Theano as
+ little as possible.
+ .
+ Lasagne supports networks like Convolutional Neural Networks (CNN, mostly used
+ for image recognition resp. classification) and the Long Short-Term Memory type
+ (LSTM, a subtype of Recurrent Neural Networks, RNN).
+ .
+ This package contains the modules for Python 3.
+
+Package: lasagne-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends},
+ ${sphinxdoc:Depends},
+ libjs-mathjax
+Recommends:
+ python-lasagne,
+ python3-lasagne
+Description: deep learning Python library build on the top of Theano (docs)
+ Lasagne is a Python library to build and train deep (multi-layered) artificial
+ neural networks on the top of Theano (math expression compiler). In comparison
+ to other abstraction layers for that like e.g. Keras, it abstracts Theano as
+ little as possible.
+ .
+ Lasagne supports networks like Convolutional Neural Networks (CNN, mostly used
+ for image recognition resp. classification) and the Long Short-Term Memory type
+ (LSTM, a subtype of Recurrent Neural Networks, RNN).
+ .
+ This package contains the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..610c4ea
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,64 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lasagne
+Upstream-Contact: Lasagne contributors <lasagne-users at googlegroups.com>
+Source: https://github.com/Lasagne/Lasagne
+Files-Excluded: .gitignore
+
+Files: *
+Copyright: 2014-2016 Eric Battenberg <ebattenberg at gmail.com>
+                     Sander Dieleman <sanderdieleman at gmail.com>
+                     Daniel Nouri <daniel.nouri at gmail.com>
+                     Eben Olson <eben.olson at gmail.com>
+                     Colin Raffel <craffel at gmail.com>
+                     Jan Schlüter <github at jan-schlueter.de>
+                     Søren Kaae Sønderby <sorensonderby at bn09574.local>
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Daniel Stender <stender at debian.org>
+           2017 Stephen Sinclair <radarsat1 at gmail.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.
+
+Files: lasagne/tests/layers/test_normalization.py
+       lasagne/layers/normalization.py
+Copyright: 2011-2014 Université de Montréal
+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 copyright holder 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..78ab127
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,8 @@
+[DEFAULT]
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+
+[import-orig]
+upstream-branch = upstream
+debian-branch = master
diff --git a/debian/lasagne-doc.doc-base b/debian/lasagne-doc.doc-base
new file mode 100644
index 0000000..93b3116
--- /dev/null
+++ b/debian/lasagne-doc.doc-base
@@ -0,0 +1,7 @@
+Document: lasagne-documentation
+Title: Documentation of python{,3}-lasagne
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/lasagne-doc/html/index.html
+Files: /usr/share/doc/lasagne-doc/html/*.html
\ No newline at end of file
diff --git a/debian/patches/pytest-no-cov-pep8.patch b/debian/patches/pytest-no-cov-pep8.patch
new file mode 100644
index 0000000..6ac814b
--- /dev/null
+++ b/debian/patches/pytest-no-cov-pep8.patch
@@ -0,0 +1,18 @@
+Description: don't use pytest options from setup.cfg
+ coverage and pep-8 testing not needed, and pytest-pep8 isn't
+ even yet available (#823789).
+Author: Daniel Stender <stender at debian.org>
+Forwarded: not-needed
+Last-Update: 2016-08-18
+
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -1,7 +1,7 @@
+ [aliases]
+ dev = develop easy_install lasagne[testing]
+ 
+-[pytest]
++[pytest_options_here_are_disabled]
+ addopts =
+     -v --doctest-modules
+     --cov=lasagne --cov-report=term-missing
diff --git a/debian/patches/remove-deprecated.patch b/debian/patches/remove-deprecated.patch
new file mode 100644
index 0000000..ffb0e64
--- /dev/null
+++ b/debian/patches/remove-deprecated.patch
@@ -0,0 +1,42 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Use inspect.signature instead of inspect.getargspec if possible
+ inspect.getargspec is deprectated in Python 3.5 and causes a warning.
+ The deprecation warning caused failures in test_get_output_with_unused_kwarg and
+ test_get_output_with_no_unused_kwarg.
+Bug: https://bugs.debian.org/834910
+Forwarded: https://github.com/Lasagne/Lasagne/pull/797
+--- a/lasagne/layers/helper.py
++++ b/lasagne/layers/helper.py
+@@ -1,6 +1,6 @@
+ from collections import deque
+ from difflib import get_close_matches
+-from inspect import getargspec
++import inspect
+ from itertools import chain
+ from warnings import warn
+ 
+@@ -9,6 +9,15 @@
+ 
+ from .. import utils
+ 
++def getargs(callable):
++    try:
++        pars = inspect.signature(callable).parameters
++        return (list(pars.keys()),
++                tuple(p.default for p in pars.values()
++                      if p.default is not p.empty))
++    except AttributeError:
++        name, _, _, defaults = inspect.getargspec(callable)
++        return (name, defaults)
+ 
+ __all__ = [
+     "get_all_layers",
+@@ -190,7 +199,7 @@
+                                  % layer)
+             all_outputs[layer] = layer.get_output_for(layer_inputs, **kwargs)
+             try:
+-                names, _, _, defaults = getargspec(layer.get_output_for)
++                names, defaults = getargs(layer.get_output_for)
+             except TypeError:
+                 # If introspection is not possible, skip it
+                 pass
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a735f0e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+pytest-no-cov-pep8.patch
+use-mathjax-package.patch
+remove-deprecated.patch
diff --git a/debian/patches/use-mathjax-package.patch b/debian/patches/use-mathjax-package.patch
new file mode 100644
index 0000000..f8e976b
--- /dev/null
+++ b/debian/patches/use-mathjax-package.patch
@@ -0,0 +1,17 @@
+Description: use libjs-mathjax package, fix of privacy breaches
+Author: Daniel Stender <stender at debian.org>
+Forwarded: not-needed
+Last-Update: 2016-08-18
+
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -40,8 +40,7 @@
+ ]
+ 
+ # See https://github.com/rtfd/readthedocs.org/issues/283
+-mathjax_path = ('https://cdn.mathjax.org/mathjax/latest/MathJax.js?'
+-                'config=TeX-AMS-MML_HTMLorMML')
++mathjax_path = ('/usr/share/javascript/mathjax/MathJax.js')
+ 
+ # see http://stackoverflow.com/q/12206334/562769
+ numpydoc_show_class_members = False
diff --git a/debian/python-lasagne.examples b/debian/python-lasagne.examples
new file mode 100644
index 0000000..4cd66f8
--- /dev/null
+++ b/debian/python-lasagne.examples
@@ -0,0 +1 @@
+examples/*
\ No newline at end of file
diff --git a/debian/python3-lasagne.examples b/debian/python3-lasagne.examples
new file mode 100644
index 0000000..4cd66f8
--- /dev/null
+++ b/debian/python3-lasagne.examples
@@ -0,0 +1 @@
+examples/*
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..026b340
--- /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=lasagne
+export THEANO_FLAGS=base_compiledir='.pybuild',device=cpu
+
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -rs lasagne/" dh_auto_test
+
+override_dh_auto_install:
+	dh_auto_install
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N docs/ debian/lasagne-doc/usr/share/doc/lasagne-doc/html/
+
+override_dh_installdocs:
+	rst2html -r 5 README.rst .pybuild/README.html
+	LANG=C.UTF-8 links -dump .pybuild/README.html > .pybuild/README
+	dh_installdocs -A .pybuild/README
+
+override_dh_sphinxdoc:
+	dh_sphinxdoc --exclude=MathJax.js
+
+override_dh_compress:
+	dh_compress -X.py
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..6eb95b2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="filenamemangle=s/(?:.*\/)?v?(\d[\d\.]+)\.tar\.gz/lasagne-$1.tar.gz/" \
+https://github.com/Lasagne/Lasagne/releases (?:.*/)?v?(\d[\d\.]+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lasagne.git



More information about the debian-science-commits mailing list