debian/ 0000755 0000000 0000000 00000000000 12175176436 007202 5 ustar debian/copyright 0000644 0000000 0000000 00000002503 12155611040 011114 0 ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: python-first
Source:
Files: *
Copyright: Copyright (c) 2012 Hynek Schlawack
License: MIT
Files: debian/*
Copyright: 2013 Julien Danjou
License: MIT
License: MIT
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.
debian/compat 0000644 0000000 0000000 00000000002 12155607377 010401 0 ustar 8
debian/source/ 0000755 0000000 0000000 00000000000 12155607377 010503 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 12155607377 011711 0 ustar 3.0 (quilt)
debian/gbp.conf 0000644 0000000 0000000 00000000237 12155607620 010613 0 ustar [git-buildpackage]
debian-branch = debian/unstable
pristine-tar = True
[git-import-orig]
debian-branch = debian/unstable
sign-tags = True
pristine-tar = True
debian/patches/ 0000755 0000000 0000000 00000000000 12175176164 010627 5 ustar debian/patches/series 0000644 0000000 0000000 00000000015 12175161462 012033 0 ustar fix-setup.py
debian/patches/fix-setup.py 0000644 0000000 0000000 00000001746 12175176164 013135 0 ustar --- a/setup.py
+++ b/setup.py
@@ -1,15 +1,22 @@
from setuptools import setup
import first
+import sys
+if sys.version_info[0] >= 3:
+ long_description = (open('README.rst', encoding='utf-8').read() + '\n\n' +
+ open('HISTORY.rst', encoding='utf-8').read() + '\n\n' +
+ open('AUTHORS.rst', encoding='utf-8').read())
+else:
+ long_description = (open('README.rst').read() + '\n\n' +
+ open('HISTORY.rst').read() + '\n\n' +
+ open('AUTHORS.rst').read())
setup(
name='first',
version=first.__version__,
description='Return the first true value of an iterable.',
- long_description=(open('README.rst').read() + '\n\n' +
- open('HISTORY.rst').read() + '\n\n' +
- open('AUTHORS.rst').read()),
+ long_description=long_description,
url='http://github.com/hynek/first/',
license=first.__license__,
author=first.__author__,
debian/docs 0000644 0000000 0000000 00000000013 12155607377 010050 0 ustar README.rst
debian/python3-first.install 0000644 0000000 0000000 00000000021 12155614645 013311 0 ustar /usr/lib/python3
debian/rules 0000755 0000000 0000000 00000000701 12155614675 010260 0 ustar #!/usr/bin/make -f
# -*- makefile -*-
include /usr/share/dpkg/pkg-info.mk
PYTHON3:=$(shell py3versions -r)
py3sdo=set -e; $(foreach py, $(PYTHON3), $(py) $(1);)
%:
dh $@ --with python2,python3
override_dh_auto_install:
dh_auto_install
$(call py3sdo, setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb)
override_dh_auto_build:
dh_auto_build
$(call py3sdo, setup.py build)
override_dh_auto_clean:
dh_auto_clean
rm -rf build
debian/control 0000644 0000000 0000000 00000002602 12175175574 010607 0 ustar Source: python-first
Section: python
Priority: extra
Maintainer: Julien Danjou
Build-Depends: debhelper (>= 8.0.0),
python-all,
python-setuptools,
python3-all,
python3-setuptools,
dpkg-dev (>= 1.16.1~)
Standards-Version: 3.9.4
Homepage: https://github.com/hynek/first/
Vcs-Git: git://git.debian.org/collab-maint/python-first.git
Vcs-Browser: http://git.debian.org/?p=collab-maint/python-first.git;a=summary
X-Python-Version: >= 2.7
Package: python-first
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
Description: simple function that returns the first true value from an iterable
A MIT licensed Python package with a simple function that returns the
first true value from an iterable, or None if there is none. If you need
more power, you can also supply a key function that is used to judge the
truth value of the element or a default value if None doesn’t fit your
use case.
Package: python3-first
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}
Description: simple function that returns the first true value from an iterable
A MIT licensed Python package with a simple function that returns the
first true value from an iterable, or None if there is none. If you need
more power, you can also supply a key function that is used to judge the
truth value of the element or a default value if None doesn’t fit your
use case.
debian/changelog 0000644 0000000 0000000 00000000606 12175175664 011060 0 ustar python-first (2.0.0-2) unstable; urgency=low
* Install all Python version to build (Closes: #718097)
* Patch setup.py so install works in non-UTF-8 environment
-- Julien Danjou Sun, 28 Jul 2013 13:07:53 +0200
python-first (2.0.0-1) unstable; urgency=low
* Initial release (Closes: #711359)
-- Julien Danjou Thu, 06 Jun 2013 16:42:54 +0200
debian/python-first.install 0000644 0000000 0000000 00000000023 12155614746 013232 0 ustar /usr/lib/python2.*