pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Update py-patsy to 0.4.1.



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Thu Jul 14 09:19:40 2016 +0200
Changeset:	5d10483290f6c7f7f83536cfb8b3cc46cf219563

Modified Files:
	py-patsy/Makefile
	py-patsy/distinfo

Log Message:
Update py-patsy to 0.4.1.

v0.4.1
------

New features:

* On Python 2, accept ``unicode`` strings containing only ASCII
  characters as valid formula descriptions in
  the high-level formula API (:func:`dmatrix` and friends). This is
  intended as a convenience for people using Python 2 with ``from
  __future__ import unicode_literals``. (See :ref:`py2-versus-py3`.)

Bug fixes:

* Accept ``long`` as a valid integer type in the new
  :class:`DesignInfo` classes. In particular this fixes errors that
  arise on 64-bit Windows builds (where ``ndarray.shape`` contains
  ``long`` objects), like ``ValueError: For numerical factors,
  num_columns must be an int.``

* Fix deprecation warnings encountered with numpy 1.10

v0.4.0
------

.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.20981.svg
   :target: http://dx.doi.org/10.5281/zenodo.20981

Incompatible changes:

* :class:`EvalFactor` and :meth:`ModelDesc.from_formula` no longer
  take an ``eval_env`` argument.

* The :func:`design_matrix_builders` function and the
  :meth:`factor_protocol.memorize_passes_needed` method now require an
  ``eval_env`` as an additional argument.

* The :class:`DesignInfo` constructor's arguments have totally
  changed. In addition to the changes needed to support the new
  features below, we no longer support "shim" DesignInfo objects that
  have non-trivial term specifications. This was only included in the
  first place to provide a compatibility hook for competing formula
  libraries; four years later, no such libraries have shown up. If one
  does, we can re-add it, but I'm not going to bother maintaining it
  in the mean time...

* Dropped support for Python 3.2.

Other changes:

* Patsy now supports Pandas's new (version 0.15 or later) categorical
  objects.

* Formulas (or more precisely, :class:`EvalFactor` objects) now only
  keep a reference to the variables required from their environment
  instead of the whole environment where the formula was
  defined. (Thanks to Christian Hudon.)

* :class:`DesignInfo` has new attributes
  :attr:`DesignInfo.factor_infos` and :attr:`DesignInfo.term_codings`
  which provide detailed metadata about how each factor and term is
  encoded.

* As a result of the above changes, the split between
  :class:`DesignInfo` and :class:`DesignMatrixBuilder` is no longer
  necessary; :class:`DesignMatrixBuiler` has been eliminated. So for
  example, :func:`design_matrix_builders` now returns a list of
  :class:`DesignInfo` objects, and you can now pass
  :class:`DesignInfo` objects directly to any function for building
  design matrices. For compatibility, :class:`DesignInfo` continues to
  provide ``.builder`` and ``.design_info`` attributes, so that old
  code should continue to work; however, these attributes are
  deprecated.

* Ensured that attempting to pickle most Patsy objects raises an
  error. This has never been supported, and the interesting cases
  failed in any case, but now we're taking a more systematic
  approach. (Soon we will add real, supported pickling support.)

* Fixed a bug when running under ``python -OO``.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5d10483290f6c7f7f83536cfb8b3cc46cf219563

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-patsy/Makefile | 10 +++++++---
 py-patsy/distinfo |  7 ++++---
 2 files changed, 11 insertions(+), 6 deletions(-)

diffs:
diff --git a/py-patsy/Makefile b/py-patsy/Makefile
index 043d68f..4143e91 100644
--- a/py-patsy/Makefile
+++ b/py-patsy/Makefile
@@ -1,16 +1,20 @@
 # $NetBSD: Makefile,v 1.1 2014/07/26 10:10:43 jihbed Exp $
 
-DISTNAME=	patsy-0.3.0
+DISTNAME=	patsy-0.4.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
 MASTER_SITES=	${MASTER_SITE_PYPI:=p/patsy/}
-EXTRACT_SUFX=	.zip#md5=7545518b413136ba8343dcebea07e5e2
+EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://files.pythonhosted.org/packages/source/p/patsy/
+HOMEPAGE=	https://pypi.python.org/pypi/patsy/
 COMMENT=	Python package for describing statistical models
 LICENSE=	2-clause-bsd
 
+DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+# TEST_DEPENDS
+BUILD_DEPENDS+=	${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
+
 USE_LANGUAGES=	# none
 
 .include "../../lang/python/egg.mk"
diff --git a/py-patsy/distinfo b/py-patsy/distinfo
index 8bc7ea6..09f8570 100644
--- a/py-patsy/distinfo
+++ b/py-patsy/distinfo
@@ -1,5 +1,6 @@
 $NetBSD: distinfo,v 1.1 2014/07/26 10:10:43 jihbed Exp $
 
-SHA1 (patsy-0.3.0.zip) = 1a640e610add2761654eff44fe593e36e2aa0aeb
-RMD160 (patsy-0.3.0.zip) = 03ee6ecd2ab90cebd4b496c7189f71eadbb78243
-Size (patsy-0.3.0.zip) = 414947 bytes
+SHA1 (patsy-0.4.1.zip) = f0beea2ecec0d68fccd25e6512ba4359764302b3
+RMD160 (patsy-0.4.1.zip) = 07edb13617442aca434b414a3cf1ed0af2bc1bb9
+SHA512 (patsy-0.4.1.zip) = 24cf2e6f9a33e6dd795a839eb2b2ac9e0d45cd9c3d5250de17722914ac29436d0518388d0696b75d73236eda3c7819dc4fa24d6d9bc37d5ae035dde2af4510c3
+Size (patsy-0.4.1.zip) = 425390 bytes


Home | Main Index | Thread Index | Old Index