[Python-modules-commits] [python-nameparser] 03/04: initial packaging

Edward Betts edward at moszumanska.debian.org
Fri Feb 26 09:20:24 UTC 2016


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

edward pushed a commit to branch master
in repository python-nameparser.

commit ed4530f7366ace4e2c5d4819e3d15859ad26caa6
Author: Edward Betts <edward at 4angle.com>
Date:   Fri Feb 26 09:18:31 2016 +0000

    initial packaging
---
 debian/changelog |  5 +++++
 debian/compat    |  1 +
 debian/control   | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright | 21 +++++++++++++++++++++
 debian/rules     |  8 ++++++++
 debian/watch     |  4 ++++
 6 files changed, 85 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4aafd63
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+nameparser (0.3.11-1) unstable; urgency=low
+
+  * Initial release. (Closes: #815972)
+
+ -- Edward Betts <edward at 4angle.com>  Thu, 25 Feb 2016 21:22:00 +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..2268333
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: nameparser
+Maintainer: Edward Betts <edward at 4angle.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-setuptools,
+               python-dill,
+               python3-all,
+               python3-setuptools,
+               python3-dill
+Standards-Version: 3.9.6
+Homepage: https://github.com/derek73/python-nameparser
+
+Package: python-nameparser
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Description: Python module for parsing human names into their in individual components
+ The HumanName class splits a name string up into name parts based on placement
+ in the string and matches against known name pieces like titles. It joins name
+ pieces on conjunctions and special prefixes to last names like "del". Titles
+ can be chained together and include conjunctions to handle titles like
+ "Asst Secretary of State". It can also try to correct capitalization of all
+ upper or lowercase names.
+ .
+ It attempts the best guess that can be made with a simple, rule-based approach.
+ Unicode is supported, but the parser is not likely to be useful for languages
+ that to not share the same structure as English names. It's not perfect, but it
+ gets you pretty far.
+
+Package: python3-nameparser
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Python module for parsing human names into their in individual components
+ The HumanName class splits a name string up into name parts based on placement
+ in the string and matches against known name pieces like titles. It joins name
+ pieces on conjunctions and special prefixes to last names like "del". Titles
+ can be chained together and include conjunctions to handle titles like
+ "Asst Secretary of State". It can also try to correct capitalization of all
+ upper or lowercase names.
+ .
+ It attempts the best guess that can be made with a simple, rule-based approach.
+ Unicode is supported, but the parser is not likely to be useful for languages
+ that to not share the same structure as English names. It's not perfect, but it
+ gets you pretty far.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..07ec35a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,21 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: nameparser
+Upstream-Contact: Derek Gulbranson <derek73 at gmail.com>
+Source: https://github.com/derek73/python-nameparser
+
+Files: *
+Copyright: 2015, Derek Gulbranson <derek73 at gmail.com>
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright: 2016, Edward Betts <edward at 4angle.com>
+License: LGPL-2.1+
+
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+ .
+ See /usr/share/common-licenses/LGPL-2.1 for the full license text.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..258691b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=nameparser
+export PYBUILD_TEST_NOSE=1
+export PYBUILD_TEST_ARGS="{dir}/tests.py"
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f4a2472
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/nameparser/watch
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/python-nameparser-$1\.tar\.gz/ \
+  https://github.com/derek73/python-nameparser/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the Python-modules-commits mailing list