Bug 189930 - Copy textproc/py-openpyxl from r353473 for backwards compatibility
Summary: Copy textproc/py-openpyxl from r353473 for backwards compatibility
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Antoine Brodin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-19 00:00 UTC by John W. O'Brien
Modified: 2014-05-19 20:00 UTC (History)
0 users

See Also:


Attachments
patch-textproc_py-openpyxl1.txt (3.30 KB, patch)
2014-05-19 00:00 UTC, John W. O'Brien
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John W. O'Brien 2014-05-19 00:00:00 UTC
OpenPyXL 2.0.0 introduces backwards incompatible changes to its API. For
example, the mutable `openpyxl.style.Style` class has been replaced with
`openpyxl.styles.Style`, which is immutable among other changes to its
attributes.

This change request is to copy, and continue to maintain as an independent
port, the latest v1.y.z version, so that consumers may depend explicitly
on the major version with which they are API-compatible.

My case in point is the imminent release of math/py-pandas (0.14.0).

Fix: Apply the attached patch.

Ports desiring the old API should, for example:

    RUN_DEPEND= ${PYTHON_PKGNAMEPREFIX}openpyxl<2.0.0:${PORTSDIR}/textproc/py-openpyxl1

While any port that desires the most recent version may:

    RUN_DEPEND= ${PYTHON_PKGNAMEPREFIX}openpyxl>0:${PORTSDIR}/textproc/py-openpyxl

How-To-Repeat: Run any library or application code that imports openpyxl and was developed
against a version earlier than 2.0.0.
Comment 1 Edwin Groothuis freebsd_committer 2014-05-19 00:00:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->antoine

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2014-05-19 16:07:43 UTC
Author: antoine
Date: Mon May 19 15:07:35 2014
New Revision: 354543
URL: http://svnweb.freebsd.org/changeset/ports/354543
QAT: https://qat.redports.org/buildarchive/r354543/

Log:
  Copy textproc/py-openpyxl to textproc/py-openpyxl1 and put version 1.8.6
  in this port
  py-pandas is not fully compatible with last version of py-openpyxl
  
  PR:		ports/189930
  Submitted by:	John W. O'Brien

Added:
  head/textproc/py-openpyxl1/
     - copied from r354542, head/textproc/py-openpyxl/
Modified:
  head/textproc/Makefile
  head/textproc/py-openpyxl/Makefile
  head/textproc/py-openpyxl1/Makefile
  head/textproc/py-openpyxl1/distinfo

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Mon May 19 14:39:18 2014	(r354542)
+++ head/textproc/Makefile	Mon May 19 15:07:35 2014	(r354543)
@@ -1159,6 +1159,7 @@
     SUBDIR += py-markdown
     SUBDIR += py-markdown2
     SUBDIR += py-openpyxl
+    SUBDIR += py-openpyxl1
     SUBDIR += py-paragrep
     SUBDIR += py-pdfminer
     SUBDIR += py-pss

Modified: head/textproc/py-openpyxl/Makefile
==============================================================================
--- head/textproc/py-openpyxl/Makefile	Mon May 19 14:39:18 2014	(r354542)
+++ head/textproc/py-openpyxl/Makefile	Mon May 19 15:07:35 2014	(r354543)
@@ -14,6 +14,8 @@ LICENSE=	MIT
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jdcal>=0:${PORTSDIR}/devel/py-jdcal
 
+CONFLICTS_INSTALL=	py*-openpyxl1-[0-9]*
+
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
 PYDISTUTILS_AUTOPLIST=yes

Modified: head/textproc/py-openpyxl1/Makefile
==============================================================================
--- head/textproc/py-openpyxl/Makefile	Mon May 19 14:39:18 2014	(r354542)
+++ head/textproc/py-openpyxl1/Makefile	Mon May 19 15:07:35 2014	(r354543)
@@ -2,17 +2,19 @@
 # $FreeBSD$
 
 PORTNAME=	openpyxl
-PORTVERSION=	2.0.2
+PORTVERSION=	1.8.6
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	1
 
 MAINTAINER=	antoine@FreeBSD.org
 COMMENT=	Python library to read/write Excel 2007 xlsx/xlsm files
 
 LICENSE=	MIT
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jdcal>=0:${PORTSDIR}/devel/py-jdcal
+DEPRECATED=	Use textproc/py-openpyxl instead
+CONFLICTS_INSTALL=	py*-openpyxl-[0-9]*
 
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes

Modified: head/textproc/py-openpyxl1/distinfo
==============================================================================
--- head/textproc/py-openpyxl/distinfo	Mon May 19 14:39:18 2014	(r354542)
+++ head/textproc/py-openpyxl1/distinfo	Mon May 19 15:07:35 2014	(r354543)
@@ -1,2 +1,2 @@
-SHA256 (openpyxl-2.0.2.tar.gz) = 36acf478a1489b25dcbd722e5c84f3f67e4b0c090635f3277c5989ff323ba5c2
-SIZE (openpyxl-2.0.2.tar.gz) = 116056
+SHA256 (openpyxl-1.8.6.tar.gz) = aa11a4acd2765392808bca2041f6f9ba17565c72dccc3f5d876bf78effa06126
+SIZE (openpyxl-1.8.6.tar.gz) = 76555
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Antoine Brodin freebsd_committer 2014-05-19 16:12:01 UTC
State Changed
From-To: open->closed

Close: Port committed. 
Please submit a bug/pull request to py-pandas project, I don't 
want to keep a deprecated port more than a few months.
Comment 4 John W. O'Brien 2014-05-19 19:58:54 UTC
Antoine,

Thank you.

See the upstream enhancement request at

    https://github.com/pydata/pandas/issues/7177

I will do what I can to help get this into the 0.14.1 release scheduled
for the end of June.

Regards,
John