Bas Couwenberg pushed to branch master at Debian GIS Project / pywps
Commits: d5e9e98f by Bas Couwenberg at 2020-08-05T16:06:45+02:00 New upstream version 4.2.7 - - - - - 166fcb64 by Bas Couwenberg at 2020-08-05T16:06:47+02:00 Update upstream source from tag 'upstream/4.2.7' Update to upstream version '4.2.7' with Debian dir 7893d09f269c21411b9b0f8c889b1c36b4162911 - - - - - 2fb953f8 by Bas Couwenberg at 2020-08-05T16:06:57+02:00 New upstream release. - - - - - 192f8cbf by Bas Couwenberg at 2020-08-05T16:16:46+02:00 Add lintian override for redundant-globbing-patterns. - - - - - 2ee7230b by Bas Couwenberg at 2020-08-05T16:16:46+02:00 Drop unused override for embedded-javascript-library. - - - - - 7181e4dd by Bas Couwenberg at 2020-08-05T16:16:46+02:00 Set distribution to unstable. - - - - - 7 changed files: - VERSION.txt - debian/changelog - − debian/pywps-doc.lintian-overrides - debian/source/lintian-overrides - pywps/__init__.py - pywps/ext_autodoc.py - pywps/tests.py Changes: ===================================== VERSION.txt ===================================== @@ -1 +1 @@ -4.2.6 +4.2.7 ===================================== debian/changelog ===================================== @@ -1,3 +1,11 @@ +pywps (4.2.7-1) unstable; urgency=medium + + * New upstream release. + * Add lintian override for redundant-globbing-patterns. + * Drop unused override for embedded-javascript-library. + + -- Bas Couwenberg <[email protected]> Wed, 05 Aug 2020 16:07:33 +0200 + pywps (4.2.6-2) unstable; urgency=medium * Switch libapache2-mod-wsgi dependency to libapache2-mod-wsgi-py3. ===================================== debian/pywps-doc.lintian-overrides deleted ===================================== @@ -1,3 +0,0 @@ -# sphinx does not provide language_data.js -embedded-javascript-library */language_data.js please use sphinx - ===================================== debian/source/lintian-overrides ===================================== @@ -1,3 +1,6 @@ # Not worth the effort testsuite-autopkgtest-missing +# False positive +redundant-globbing-patterns * + ===================================== pywps/__init__.py ===================================== @@ -9,7 +9,7 @@ import os from lxml.builder import ElementMaker -__version__ = '4.2.2' +__version__ = '4.2.7' LOGGER = logging.getLogger('PYWPS') LOGGER.debug('setting core variables') ===================================== pywps/ext_autodoc.py ===================================== @@ -8,6 +8,21 @@ from pywps import Process from pywps.app.Common import Metadata +class MetadataUrl(Metadata): + """Metadata subclass to allow anonymous links generation. + + Useful to avoid Sphinx "Duplicate explicit target name" warning. + + See https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#anonymous-hyperlinks. + """ + + def __init__(self, title, href=None, role=None, type_='simple', + anonymous=False): + super().__init__(title, href=href, role=role, type_=type_) + self.anonymous = anonymous + "Whether to create anonymous link (boolean)." + + class ProcessDocumenter(ClassDocumenter): """Sphinx autodoc ClassDocumenter subclass that understands the pywps.Process class. @@ -126,8 +141,11 @@ class ProcessDocumenter(ClassDocumenter): title, href = m['title'], m['href'] else: title, href = None, None + extra_underscore = "" + if isinstance(m, MetadataUrl): + extra_underscore = "_" if m.anonymous else "" if title and href: - ref.append(u" - `{} <{}>`_".format(title, href)) + ref.append(u" - `{} <{}>`_{}".format(title, href, extra_underscore)) hasref = True ref.append('') ===================================== pywps/tests.py ===================================== @@ -12,6 +12,7 @@ from pywps import Process from pywps.inout import LiteralInput, LiteralOutput, ComplexInput, ComplexOutput, BoundingBoxInput, BoundingBoxOutput from pywps.inout import Format from pywps.app.Common import Metadata +from pywps.ext_autodoc import MetadataUrl import re @@ -75,7 +76,10 @@ class DocExampleProcess(Process): version="4.0", metadata=[Metadata('PyWPS docs', 'https://pywps.org'), Metadata('NumPy docstring conventions', - 'https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt')], + 'https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt'), + MetadataUrl('Duplicate label', 'http://one.example.com', anonymous=True), + MetadataUrl('Duplicate label', 'http://two.example.com', anonymous=True), + ], inputs=inputs, outputs=outputs, ) View it on GitLab: https://salsa.debian.org/debian-gis-team/pywps/-/compare/0ffdc3c684a53126df760d17690169624b1171a7...7181e4ddcbf1b2edf7d41656ed932b02890a2032 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/pywps/-/compare/0ffdc3c684a53126df760d17690169624b1171a7...7181e4ddcbf1b2edf7d41656ed932b02890a2032 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
