From john@saltant.com  Sun May 18 22:50:36 2014
Return-Path: <john@saltant.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 868B28B8
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 May 2014 22:50:36 +0000 (UTC)
Received: from drivel.saltant.net (drivel.saltant.net [IPv6:2001:470:8d6f::1])
	by mx1.freebsd.org (Postfix) with ESMTP id 3A86A23BD
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 May 2014 22:50:36 +0000 (UTC)
Received: by drivel.saltant.net (Postfix, from userid 1001)
	id 5624AB05D6; Sun, 18 May 2014 18:50:29 -0400 (EDT)
Message-Id: <20140518225029.5624AB05D6@drivel.saltant.net>
Date: Sun, 18 May 2014 18:50:29 -0400 (EDT)
From: "John W. O'Brien" <john@saltant.com>
Reply-To: "John W. O'Brien" <john@saltant.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Copy textproc/py-openpyxl from r353473 for backwards compatibility
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         189930
>Category:       ports
>Synopsis:       Copy textproc/py-openpyxl from r353473 for backwards compatibility
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    antoine
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 18 23:00:00 UTC 2014
>Closed-Date:    Mon May 19 15:13:45 UTC 2014
>Last-Modified:  Mon May 19 19:00:00 UTC 2014
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->antoine 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 18 23:00:05 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189930 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/189930: commit references a PR
Date: Mon, 19 May 2014 15:07:43 +0000 (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"
 
State-Changed-From-To: open->closed 
State-Changed-By: antoine 
State-Changed-When: Mon May 19 15:12:01 UTC 2014 
State-Changed-Why:  
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. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189930 

From: "John W. O'Brien" <john@saltant.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/189930: Copy textproc/py-openpyxl from r353473 for backwards
 compatibility
Date: Mon, 19 May 2014 14:58:54 -0400

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --mw1ubWbIuuiOgeB5CkMLM1AwSAc5nGDhR
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 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
 
 
 --mw1ubWbIuuiOgeB5CkMLM1AwSAc5nGDhR
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
 
 iQEcBAEBCgAGBQJTelRuAAoJEORay8JGGICY2PkH/2PmD+i/J93DKLlVqovDCKFm
 cJMPDK+ES3XHJ50qNKdjmJtGCF2RMXJAGyiVFldaSEWAngAvGUCs1P0vckz/A8su
 i83hpbyjuMN673InoSo4Xm9HwtfilRxL9tYpSt9EEKf1iOUbw6d3vvaIrTGOzwog
 73EQPCIjbkeT2YbNUsAxw7orvBkmJOOWw3fysj+RF/7dp/SPzU7wO8KgkJr52d2q
 bht84WQsVBOIB4kiE8XR/GxqFJw0yTDH9c3ffWICNabmM5HgEQyPGOknee310ZjR
 k81JN26NLdBbr9e4vmJ9svO1sVweuxtwrAGOrjgBfs9SBkTyOvdbrC3exAEcAyQ=
 =ygrJ
 -----END PGP SIGNATURE-----
 
 --mw1ubWbIuuiOgeB5CkMLM1AwSAc5nGDhR--
>Unformatted:
