Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 2014 18:50:29 -0400 (EDT)
From:      "John W. O'Brien" <john@saltant.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/189930: Copy textproc/py-openpyxl from r353473 for backwards compatibility
Message-ID:  <20140518225029.5624AB05D6@drivel.saltant.net>
Resent-Message-ID: <201405182300.s4IN0061048197@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189930
>Category:       ports
>Synopsis:       Copy textproc/py-openpyxl from r353473 for backwards compatibility
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 18 23:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     John W. O'Brien
>Release:        FreeBSD 9.2-STABLE amd64
>Organization:
Saltant Solutions
>Environment:
System: FreeBSD XXXX.saltant.net 9.2-STABLE FreeBSD 9.2-STABLE #1 r260112: Mon Dec   30 18:26:07 EST 2013     root@XXXX.saltant.net:/usr/obj/usr/src/sys/NARB  amd64
>Description:
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).
>How-To-Repeat:
Run any library or application code that imports openpyxl and was developed
against a version earlier than 2.0.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


--- patch-textproc_py-openpyxl1.txt begins here ---
Index: textproc/Makefile
===================================================================
--- textproc/Makefile	(revision 354408)
+++ textproc/Makefile	(working copy)
@@ -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
Index: textproc/py-openpyxl/Makefile
===================================================================
--- textproc/py-openpyxl/Makefile	(revision 354408)
+++ textproc/py-openpyxl/Makefile	(working copy)
@@ -7,6 +7,8 @@
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
+CONFLICTS=	py*-openpyxl-1.*
+
 MAINTAINER=	antoine@FreeBSD.org
 COMMENT=	Python library to read/write Excel 2007 xlsx/xlsm files
 
Index: textproc/py-openpyxl1/Makefile
===================================================================
--- textproc/py-openpyxl1/Makefile	(revision 0)
+++ textproc/py-openpyxl1/Makefile	(working copy)
@@ -0,0 +1,29 @@
+# Created by: Antoine Brodin <antoine@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	openpyxl
+PORTVERSION=	1.8.6
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+CONFLICTS=	py*-openpyxl-2.*
+
+MAINTAINER=	antoine@FreeBSD.org
+COMMENT=	Python library to read/write Excel 2007 xlsx/xlsm files
+
+LICENSE=	MIT
+
+USE_PYTHON=	yes
+USE_PYDISTUTILS=yes
+PYDISTUTILS_AUTOPLIST=yes
+
+PORTDOCS=	README.rst
+
+OPTIONS_DEFINE=	DOCS
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Property changes on: textproc/py-openpyxl1/Makefile
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+FreeBSD=%H
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Index: textproc/py-openpyxl1/distinfo
===================================================================
--- textproc/py-openpyxl1/distinfo	(revision 0)
+++ textproc/py-openpyxl1/distinfo	(working copy)
@@ -0,0 +1,2 @@
+SHA256 (openpyxl-1.8.6.tar.gz) = aa11a4acd2765392808bca2041f6f9ba17565c72dccc3f5d876bf78effa06126
+SIZE (openpyxl-1.8.6.tar.gz) = 76555

Property changes on: textproc/py-openpyxl1/distinfo
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: textproc/py-openpyxl1/pkg-descr
===================================================================
--- textproc/py-openpyxl1/pkg-descr	(revision 0)
+++ textproc/py-openpyxl1/pkg-descr	(working copy)
@@ -0,0 +1,3 @@
+OpenPyxl is a Python library to read/write Excel 2007 xlsx/xlsm files.
+
+WWW: http://openpyxl.readthedocs.org/

Property changes on: textproc/py-openpyxl1/pkg-descr
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
--- patch-textproc_py-openpyxl1.txt ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140518225029.5624AB05D6>