[Python-modules-commits] [drf-haystack] 02/02: Initial release (Closes: #797406).

Michael Fladischer fladi at moszumanska.debian.org
Sun Aug 30 16:12:18 UTC 2015


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

fladi pushed a commit to branch master
in repository drf-haystack.

commit 3ea9b2e78456559f973e51deecedc5b7a05b823d
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Sun Aug 30 17:57:29 2015 +0200

    Initial release (Closes: #797406).
---
 debian/changelog                                 |  5 ++
 debian/compat                                    |  1 +
 debian/control                                   | 71 ++++++++++++++++++++++++
 debian/copyright                                 | 31 +++++++++++
 debian/patches/python3-io.patch                  | 25 +++++++++
 debian/patches/series                            |  1 +
 debian/python-djangorestframework-haystack.docs  |  1 +
 debian/python3-djangorestframework-haystack.docs |  1 +
 debian/rules                                     |  9 +++
 debian/source/format                             |  1 +
 debian/watch                                     |  3 +
 11 files changed, 149 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..23344e3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+drf-haystack (1.5.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #797406).
+
+ -- Michael Fladischer <fladi at debian.org>  Sun, 30 Aug 2015 17:59:01 +0200
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..504eb3b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,71 @@
+Source: drf-haystack
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Michael Fladischer <fladi at debian.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-coverage,
+               python-django,
+               python-django-haystack,
+               python-djangorestframework,
+               python-elasticsearch (>= 1.4.0),
+               python-mock,
+               python-nose,
+               python-setuptools,
+               python-unittest2,
+               python3-all,
+               python3-coverage,
+               python3-django,
+               python3-django-haystack,
+               python3-djangorestframework,
+               python3-elasticsearch (>= 1.4.0),
+               python3-mock,
+               python3-nose,
+               python3-setuptools,
+               python3-unittest2
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/drf-haystack.git
+Vcs-Git: git://anonscm.debian.org/python-modules/packages/drf-haystack.git
+Homepage: https://github.com/inonit/drf-haystack
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.3
+
+Package: python-djangorestframework-haystack
+Architecture: all
+Depends: python-django,
+         python-django-haystack,
+         python-djangorestframework,
+         ${misc:Depends},
+         ${python:Depends}
+Description: Haystack for Django REST Framework
+ A small library which tries to simplify integration of Haystack with Django
+ REST Framework. Contains a Generic ViewSet, a Serializer and a couple of
+ Filters in order to make search as painless as possible.
+ .
+ It supports several haystack features:
+  * Autocomplete
+  * GEO Spatial searching
+  * Highlighting
+  * More Like This
+
+Package: python3-djangorestframework-haystack
+Architecture: all
+Depends: python3-django,
+         python3-django-haystack,
+         python3-djangorestframework,
+         ${misc:Depends},
+         ${python3:Depends}
+Description: Haystack for Django REST Framework (Python3 version)
+ A small library which tries to simplify integration of Haystack with Django
+ REST Framework. Contains a Generic ViewSet, a Serializer and a couple of
+ Filters in order to make search as painless as possible.
+ .
+ It supports several haystack features:
+  * Autocomplete
+  * GEO Spatial searching
+  * Highlighting
+  * More Like This
+ .
+ This package contains the Python 3 version of the library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..227177a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: drf-haystack
+Upstream-Contact: Rolf Håvard Blindheim <rolf.blindheim at inonit.no>, Eirik Krogstad <eirik.krogstad at inonit.no>
+Source: https://github.com/inonit/drf-haystack
+
+Files: *
+Copyright: 2015, Inonit AS
+License: Expat
+
+Files: debian/*
+Copyright: 2015, Fladischer Michael <fladi at debian.org>
+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.
diff --git a/debian/patches/python3-io.patch b/debian/patches/python3-io.patch
new file mode 100644
index 0000000..62bada4
--- /dev/null
+++ b/debian/patches/python3-io.patch
@@ -0,0 +1,25 @@
+Description: Use io module to open UTF-8 encoded file.
+Forwarded: no
+Author: Michael Fladischer <fladi at debian.org>
+Last-Update: 2015-08-30
+Index: drf-haystack/setup.py
+===================================================================
+--- drf-haystack.orig/setup.py	2015-08-30 13:16:24.697759827 +0200
++++ drf-haystack/setup.py	2015-08-30 13:41:31.344495143 +0200
+@@ -2,6 +2,7 @@
+ 
+ import re
+ import os
++import io
+ 
+ try:
+     from setuptools import setup
+@@ -15,7 +16,7 @@
+     """
+     Return package version as listed in `__version__` in `init.py`.
+     """
+-    init_py = open(os.path.join(package, "__init__.py")).read()
++    init_py = io.open(os.path.join(package, "__init__.py"), encoding='utf-8').read()
+     return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
+ 
+ setup(
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1ea586b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+python3-io.patch
diff --git a/debian/python-djangorestframework-haystack.docs b/debian/python-djangorestframework-haystack.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python-djangorestframework-haystack.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/python3-djangorestframework-haystack.docs b/debian/python3-djangorestframework-haystack.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python3-djangorestframework-haystack.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f65d169
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=djangorestframework-haystack
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
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..527a07b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/drf-haystack/drf-haystack-(.+)\.(?: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/drf-haystack.git



More information about the Python-modules-commits mailing list