[Python-modules-commits] [python-jellyfish] 03/06: Add debian/ files

Diego M. Rodriguez diegom-guest at moszumanska.debian.org
Thu Sep 15 15:33:34 UTC 2016


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

diegom-guest pushed a commit to branch master
in repository python-jellyfish.

commit 284f1a0ce53ad36c07dbb05d09390d24fbf5516e
Author: Diego M. Rodriguez <diego.plan9 at gmail.com>
Date:   Thu Sep 15 16:23:21 2016 +0200

    Add debian/ files
---
 debian/compat                        |  1 +
 debian/control                       | 63 +++++++++++++++++++++++
 debian/copyright                     | 97 ++++++++++++++++++++++++++++++++++++
 debian/python-jellyfish-doc.doc-base | 13 +++++
 debian/python-jellyfish-doc.docs     |  2 +
 debian/python-jellyfish-doc.manpages |  2 +
 debian/rules                         | 25 ++++++++++
 debian/watch                         |  4 ++
 8 files changed, 207 insertions(+)

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..9a5d66e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,63 @@
+Source: python-jellyfish
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Diego M. Rodriguez <diego.plan9 at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all (>= 2.6.6-3~),
+               python-all-dev,
+               python-pytest,
+               python-setuptools,
+               python-unicodecsv,
+               python3-all,
+               python3-all-dev,
+               python3-pytest,
+               python3-setuptools
+Build-Depends-Indep: python-docutils, python-sphinx (>= 1.0.7+dfsg-1~)
+Homepage: https://github.com/jamesturk/jellyfish
+Standards-Version: 3.9.8
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python-jellyfish
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Suggests: python-jellyfish-doc
+Description: Library for approximate and phonetic matching of strings (Python 2)
+ Jellyfish is a Python library for doing approximate and phonetic
+ matching of strings. Includes algorithms for string comparison
+ (Levenshtein Distance, Damerau-Levenshtein Distance, Jaro Distance,
+ Jaro-Winkler Distance, Match Rating Approach Comparison, Hamming
+ Distance) and phonetic encoding (American Soundex, Metaphone, NYSIIS,
+ Match Rating Codex).
+ .
+ This package installs the library for Python 2.
+
+Package: python3-jellyfish
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
+Suggests: python-jellyfish-doc
+Description: Library for approximate and phonetic matching of strings (Python 3)
+ Jellyfish is a Python library for doing approximate and phonetic
+ matching of strings. Includes algorithms for string comparison
+ (Levenshtein Distance, Damerau-Levenshtein Distance, Jaro Distance,
+ Jaro-Winkler Distance, Match Rating Approach Comparison, Hamming
+ Distance) and phonetic encoding (American Soundex, Metaphone, NYSIIS,
+ Match Rating Codex).
+ .
+ This package installs the library for Python 3.
+
+Package: python-jellyfish-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Library for approximate and phonetic matching of strings (documentation)
+ Jellyfish is a Python library for doing approximate and phonetic
+ matching of strings. Includes algorithms for string comparison
+ (Levenshtein Distance, Damerau-Levenshtein Distance, Jaro Distance,
+ Jaro-Winkler Distance, Match Rating Approach Comparison, Hamming
+ Distance) and phonetic encoding (American Soundex, Metaphone, NYSIIS,
+ Match Rating Codex).
+ .
+ This is the documentation package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..66ede7e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,97 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: jellyfish
+Upstream-Contact: James Turk <james.p.turk at gmail.com>
+Source: https://github.com/jamesturk/jellyfish
+
+Files: *
+Copyright: 2015, James Turk <james.p.turk at gmail.com>
+           2015, Sunlight Foundation
+License: BSD-2-clause
+
+Files: debian/*
+Copyright: 2016, Diego M. Rodriguez <diego.plan9 at gmail.com>
+License: BSD-3-clause
+
+License: BSD-2-clause
+ Copyright (c) 2015, James Turk
+ Copyright (c) 2015, Sunlight Foundation
+ .
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+ .
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * 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.
+ .
+ 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 OWNER 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.
+
+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.
+
+Files: jellyfish/test.py
+Copyright: 2015 James Turk
+           2010 Michael Stephens
+License: BSD-2-clause
+
+Files: setup.py
+Copyright: 2015 James Turk
+           2010 Michael Stephens
+           2012 Petr Hosek
+License: BSD-2-clause
+
+Files:
+ cjellyfish/mra.c
+ cjellyfish/damerau_levenshtein.c
+Copyright: 2015 James Turk
+           2013 Danrich Parrol
+License: BSD-2-clause
+
+Files: cjellyfish/porter.c
+Copyright: 2015 Martin Porter
+License: BSD-2-clause
+Comment:
+ The original author licenses it as:
+ "The software is completely free for any purpose, unless notes at the head of
+ the program text indicates otherwise (which is rare). In any case, the notes
+ about licensing are never more restrictive than the BSD License."
+ .
+ (see: http://tartarus.org/~martin/PorterStemmer/ ,FAQ, #1 )
+ .
+ The current author licenses it as the rest of the project.
diff --git a/debian/python-jellyfish-doc.doc-base b/debian/python-jellyfish-doc.doc-base
new file mode 100644
index 0000000..bfdf0f4
--- /dev/null
+++ b/debian/python-jellyfish-doc.doc-base
@@ -0,0 +1,13 @@
+Document: python-jellyfish-doc
+Title: Python-jellyfish Documentation
+Author: James Turk <james.p.turk at gmail.com>
+Abstract: Manual for python-jellyfish
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-jellyfish-doc/html/index.html
+Files:
+ /usr/share/doc/python-jellyfish-doc/html/_sources/*
+ /usr/share/doc/python-jellyfish-doc/html/_static/*
+ /usr/share/doc/python-jellyfish-doc/html/*.html
+
diff --git a/debian/python-jellyfish-doc.docs b/debian/python-jellyfish-doc.docs
new file mode 100644
index 0000000..7073725
--- /dev/null
+++ b/debian/python-jellyfish-doc.docs
@@ -0,0 +1,2 @@
+build/html
+
diff --git a/debian/python-jellyfish-doc.manpages b/debian/python-jellyfish-doc.manpages
new file mode 100644
index 0000000..c6fcc17
--- /dev/null
+++ b/debian/python-jellyfish-doc.manpages
@@ -0,0 +1,2 @@
+build/man/jellyfish.1
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f694fba
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+# export DH_VERBOSE = 1
+
+# Fix hardening-no-bindnow lintian warning.
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
+# Use pytest, pointing it to the right test file.
+export PYBUILD_TEST_PYTEST = 1
+export PYBUILD_NAME = jellyfish
+export PYBUILD_BEFORE_TEST = cp -R {dir}/testdata {build_dir}
+export PYBUILD_AFTER_TEST = rm -R {build_dir}/testdata
+export PYBUILD_TEST_ARGS = jellyfish/test.py
+
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	# HTML and manpage generators.
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man
+
+override_dh_installchangelogs:
+	dh_installchangelogs -k docs/changelog.rst
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d6672b6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/jellyfish/jellyfish-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
+

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



More information about the Python-modules-commits mailing list