debian/0000755000000000000000000000000012233464640007172 5ustar debian/source/0000755000000000000000000000000012233464640010472 5ustar debian/source/format0000644000000000000000000000001412233464640011700 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000004712233464640012111 0ustar extend-diff-ignore="^[^/]+\.egg-info/" debian/watch0000644000000000000000000000026312233464640010224 0ustar version=3 opts="dversionmangle=s/.dfsg$//,uversionmangle=s/v//,filenamemangle=s/.*\/(.*)/patsy-$1\.tar\.gz/" \ http://github.com/pydata/patsy/tags .*archive/v?([\d\.rc]+).tar.gz debian/patches/0000755000000000000000000000000012233464640010621 5ustar debian/patches/series0000644000000000000000000000007012233464640012033 0ustar changeset_eab795ce8dd2f0731d1b6764874a101c616d9311.diff debian/patches/changeset_eab795ce8dd2f0731d1b6764874a101c616d9311.diff0000644000000000000000000000122412233464640020770 0ustar From: Nathaniel J. Smith Subject: fix tests to pass even if pandas is not installed --- a/patsy/test_highlevel.py +++ b/patsy/test_highlevel.py @@ -645,7 +645,11 @@ def test_evalfactor_reraise(): def test_dmatrix_NA_action(): data = {"x": [1, 2, 3, np.nan], "y": [np.nan, 20, 30, 40]} - for return_type in ["matrix", "dataframe"]: + return_types = ["matrix"] + if have_pandas: + return_types.append("dataframe") + + for return_type in return_types: mat = dmatrix("x + y", data=data, return_type=return_type) assert np.array_equal(mat, [[1, 2, 20], [1, 3, 30]]) debian/tests/0000755000000000000000000000000012233464640010334 5ustar debian/tests/unittests30000755000000000000000000000023512233464640012407 0ustar #!/bin/sh set -efu pys="$(py3versions -r 2>/dev/null)" cd "$ADTTMP" for py in $pys; do echo "=== python$py ===" $py /usr/bin/nosetests3 patsy 2>&1 done debian/tests/unittests0000755000000000000000000000022312233464640012321 0ustar #!/bin/sh set -efu pys="$(pyversions -rv 2>/dev/null)" cd "$ADTTMP" for py in $pys; do echo "=== python$py ===" nosetests-$py patsy 2>&1 done debian/tests/control0000644000000000000000000000024212233464640011735 0ustar Tests: unittests Depends: python-all, python-nose, python-numpy, python-patsy Tests: unittests3 Depends: python3-all, python3-nose, python3-numpy, python3-patsy debian/changelog0000644000000000000000000000212712233464640011046 0ustar patsy (0.2.1-3) unstable; urgency=low [ Martin Pitt ] * Don't wrap test dependencies, autopkgtest does not currently support that. * Actually test-depend on python[3]-patsy, not -pandas (Closes: #728077) -- Yaroslav Halchenko Mon, 28 Oct 2013 09:40:58 -0400 patsy (0.2.1-2) unstable; urgency=low * Initial official Debian package (Closes: #718429) * debian/copyright - added missing copyright/license for facebox (MIT AKA Expat) -- Yaroslav Halchenko Mon, 21 Oct 2013 15:50:44 -0400 patsy (0.2.1-1) neurodebian; urgency=low * Fresh upstream release * debian/rules: - export bogus http_proxy to safe-guard against downloads * debian/patches - cherry-pick eab795ce8dd2f0731d1b6764874a101c616d9311 from upstream to pass tests on wheezy using python2.6 where pandas is N/A -- Yaroslav Halchenko Tue, 20 Aug 2013 14:03:29 -0400 patsy (0.1.0+git60-g7ddb7f3-1) neurodebian; urgency=low * Initial Debian packaging -- Yaroslav Halchenko Wed, 31 Jul 2013 13:43:28 -0400 debian/copyright0000644000000000000000000002013312233464640011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: patsy Upstream-Contact: Nathaniel J. Smith Source-Location: http://github.com/pydata/patsy Files: * Copyright: 2011-2013, Patsy Developers License: BSD-2 Files: patsy/compat.py Copyright: 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Python Software Foundation License: Python PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 . 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. . 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. Comment: As per item (3), we are required to provide a brief summary of changes. For this, see comments in patsy/compat.py. Files: patsy/compat_ordereddict.py Copyright: 2012 Raymond Hettinger Comment: http://code.activestate.com/recipes/576693/ 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. Files: doc/sphinxext/* Copyright: 2010-2012, IPython Developers License: BSD-3 Files: doc/_static/facebox.* Copyright: 2007, 2008 Chris Wanstrath [ chris@ozmm.org ] License: Expat Files: debian/* Copyright: 2013, Yaroslav Halchenko License: BSD-2 License: BSD-2 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. . 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 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. * Neither the name of the copyright holder nor the names of any 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 HOLDER 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: 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. debian/python-patsy-doc.docs0000644000000000000000000000002012233464640013256 0ustar doc/_build/html debian/rules0000755000000000000000000000550012233464640010252 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- export DH_VERBOSE=1 export http_proxy=http://127.0.0.1:9/ PACKAGE2_NAME = python-patsy PACKAGE3_NAME = python3-patsy PACKAGE2_ROOT_DIR = debian/${PACKAGE2_NAME} PACKAGE3_ROOT_DIR = debian/${PACKAGE3_NAME} PYVERS = $(shell pyversions -vr) PYVER = $(shell pyversions -vd) PY3VERS = $(shell py3versions -vr) PY3VER = $(shell py3versions -vd) UVER := $(shell LC_ALL=C dpkg-parsechangelog | awk '/^Version:/{print $$2;}' | sed -e 's,-[^-]*$$,,g') # Some unittests might need to be excluded for different Python versions EXCLUDE_TESTS2 := EXCLUDE_TESTS3.2 := #--exclude "test_bootstrap_plot" EXCLUDE_TESTS3.3 := #--exclude "test_(bootstrap_plot|quoting|cant_compare_tz_naive_w_aware|more_flexible_frame_multi_function|yahoo)" # MPLVER := $(shell dpkg -l python-matplotlib | awk '/^ii/{print $$3;}' || echo 0) # $(shell dpkg --compare-versions $(MPLVER) lt 1.0 && echo '|test_hist|test_plot|test_boxplot|test_corr_rank' || echo '') # Mega rule %: : # Explicit build system to avoid use of all-in-1 Makefile dh $@ --buildsystem=python_distutils --with python2,python3 python-build%: python$* setup.py build override_dh_auto_build: $(PY3VERS:%=python-build%) dh_auto_build python-install%: python$* setup.py install --root=$(CURDIR)/debian/tmp \ --force --install-layout=deb override_dh_auto_install: $(PYVERS:%=python-install%) $(PY3VERS:%=python-install%) \ ${PYVERS:%=python-test%} ${PY3VERS:%=python-test%} : # nothing more to do override_dh_clean: rm -rf build *.egg-info dh_clean python-test%: python-install% ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) echo "backend : Agg" >| $(CURDIR)/build/matplotlibrc : # Run unittests here against installed patsy echo "$*" | grep -q '^3' && PY=3 || PY=$*; \ export PYTHONPATH=`/bin/ls -d $$PWD/debian/tmp/usr/lib/python$$PY/*/`; \ export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \ mkdir -p build/tmp; cd build/tmp; \ python$* /usr/bin/nosetests -s -v $(EXCLUDE_TESTS$*) patsy; else : # Skip unittests due to nocheck endif override_dh_installdocs: : # Build Documentation using installed patsy ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) ifneq (,$(findstring -a,$(DH_INTERNAL_OPTIONS))) : # not building documentation in -a else : # not building documentation ATM since requires ipython 0.11 export PYTHONPATH=`/bin/ls -d $$PWD/$(PACKAGE2_ROOT_DIR)/usr/lib/python$(PYVER)/*`; \ export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \ make -C doc html : # Use jquery from Debian package, so prune shipped one -rm doc/_build/html/_static/jquery.js -rm doc/_build/html/_static/underscore.js dh_installdocs endif endif ## immediately useable documentation and exemplar scripts/data override_dh_compress: dh_compress -X.py -X.html -X.pdf -X.css -X.jpg -X.txt -X.js -X.json -X.rtc -Xobjects.inv debian/README.source0000644000000000000000000000041512233464640011351 0ustar patsy for Debian ---------------- For flexibility and easier interaction with upstream, packaging VCS is done on top of upstream's GIT hosted on github: git://github.com/pydata/patsy.git -- Yaroslav Halchenko , Wed, 31 Jul 2013 11:21:04 -0400 debian/python-patsy-doc.examples0000644000000000000000000000002012233464640014144 0ustar doc/_examples/* debian/gbp.conf0000644000000000000000000000035612233464640010615 0ustar [DEFAULT] # the default branch for upstream sources: upstream-branch = master # the default branch for the debian patch: debian-branch = debian # the default tag formats used: upstream-tag = v%(version)s debian-tag = debian/%(version)s debian/python-patsy.install0000644000000000000000000000002212233464640013233 0ustar usr/lib/python2*/ debian/python-patsy-doc.doc-base0000644000000000000000000000046712233464640014022 0ustar Document: python-patsy Title: patsy - statistical models in Python using symbolic formulas Author: Nathaniel J. Smith Abstract: Documentation and examples for patsy Section: Science/Data Analysis Format: HTML Index: /usr/share/doc/python-patsy-doc/html/index.html Files: /usr/share/doc/python-patsy-doc/html/* debian/python-patsy-doc.links0000644000000000000000000000030412233464640013453 0ustar usr/share/javascript/jquery/jquery.js usr/share/doc/python-patsy-doc/html/_static/jquery.js usr/share/javascript/underscore/underscore.js usr/share/doc/python-patsy-doc/html/_static/underscore.js debian/python3-patsy.install0000644000000000000000000000002112233464640013315 0ustar usr/lib/python3/ debian/pycompat0000644000000000000000000000000212233464640010741 0ustar 2 debian/control0000644000000000000000000000373712233464640010607 0ustar Source: patsy Section: python Priority: optional Maintainer: NeuroDebian Team Uploaders: Yaroslav Halchenko , Michael Hanke Build-Depends: debhelper (>= 7.0.50), python-all (>= 2.5), python-setuptools, python-numpy, python-pandas, python-nose, python3-all, python3-setuptools, python3-numpy, python3-pandas, python3-nose, python-matplotlib, python-sphinx, ipython, X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 Standards-Version: 3.9.4 Homepage: http://github.com/pydata/patsy Vcs-Browser: http://github.com/neurodebian/patsy Vcs-Git: git://github.com/neurodebian/patsy.git XS-Testsuite: autopkgtest Package: python-patsy Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-numpy, Recommends: python-pandas, Suggests: python-patsy-doc Description: statistical models in Python using symbolic formulas patsy is a Python library for describing statistical models (especially linear models, or models that have a linear component) and building design matrices. . This package contains the Python 2 version. Package: python3-patsy Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, python3-numpy, Recommends: python3-pandas, Suggests: python-patsy-doc Description: statistical models in Python using symbolic formulas patsy is a Python library for describing statistical models (especially linear models, or models that have a linear component) and building design matrices. . This package contains the Python 3 version. Package: python-patsy-doc Architecture: all Section: doc Depends: ${misc:Depends}, libjs-jquery, libjs-underscore Suggests: python-patsy Description: documentation and examples for patsy This package contains documentation and example scripts for python-patsy. debian/compat0000644000000000000000000000000212233464640010370 0ustar 7