debian/0000755000000000000000000000000012175176436007202 5ustar debian/copyright0000644000000000000000000000250312155611040011114 0ustar 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/compat0000644000000000000000000000000212155607377010401 0ustar 8 debian/source/0000755000000000000000000000000012155607377010503 5ustar debian/source/format0000644000000000000000000000001412155607377011711 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000023712155607620010613 0ustar [git-buildpackage] debian-branch = debian/unstable pristine-tar = True [git-import-orig] debian-branch = debian/unstable sign-tags = True pristine-tar = True debian/patches/0000755000000000000000000000000012175176164010627 5ustar debian/patches/series0000644000000000000000000000001512175161462012033 0ustar fix-setup.py debian/patches/fix-setup.py0000644000000000000000000000174612175176164013135 0ustar --- 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/docs0000644000000000000000000000001312155607377010050 0ustar README.rst debian/python3-first.install0000644000000000000000000000002112155614645013311 0ustar /usr/lib/python3 debian/rules0000755000000000000000000000070112155614675010260 0ustar #!/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/control0000644000000000000000000000260212175175574010607 0ustar 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/changelog0000644000000000000000000000060612175175664011060 0ustar 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.install0000644000000000000000000000002312155614746013232 0ustar /usr/lib/python2.*