Date: Saturday, November 21, 2015 @ 16:39:34 Author: aginiewicz Revision: 147325
python-et-xmlfile: a new dependency of python-openpyxl Added: python-et-xmlfile/ python-et-xmlfile/repos/ python-et-xmlfile/trunk/ python-et-xmlfile/trunk/LICENCE python-et-xmlfile/trunk/PKGBUILD Modified: python-openpyxl/trunk/PKGBUILD ----------------------------------+ python-et-xmlfile/trunk/LICENCE | 35 ++++++++++++++++++++++ python-et-xmlfile/trunk/PKGBUILD | 58 +++++++++++++++++++++++++++++++++++++ python-openpyxl/trunk/PKGBUILD | 8 ++--- 3 files changed, 97 insertions(+), 4 deletions(-) Added: python-et-xmlfile/trunk/LICENCE =================================================================== --- python-et-xmlfile/trunk/LICENCE (rev 0) +++ python-et-xmlfile/trunk/LICENCE 2015-11-21 15:39:34 UTC (rev 147325) @@ -0,0 +1,35 @@ +This software is under the MIT Licence +====================================== + +Copyright (c) 2010 openpyxl + +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. + +Odict implementation in openpyxl/writer/odict.py uses the following licence: + +Copyright (c) 2001-2011 Python Software Foundation + 2011 Raymond Hettinger +License: PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 + See http://www.opensource.org/licenses/Python-2.0 for full terms +Note: backport changes by Raymond were originally distributed under MIT + license, but since the original license for Python is more + restrictive than MIT, code cannot be released under its terms and + still adheres to the limitations of Python license. + Added: python-et-xmlfile/trunk/PKGBUILD =================================================================== --- python-et-xmlfile/trunk/PKGBUILD (rev 0) +++ python-et-xmlfile/trunk/PKGBUILD 2015-11-21 15:39:34 UTC (rev 147325) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz <ggi...@gmail.com> + +pkgbase=python-et-xmlfile +pkgname=('python2-et-xmlfile' 'python-et-xmlfile') +pkgver=1.0.1 +pkgrel=0 +pkgdesc="A low memory library for creating large XML files." +arch=('any') +url="http://et-xmlfile.readthedocs.org/" +license=('MIT') +makedepends=('python2-setuptools' 'python-setuptools' 'python-lxml' 'python2-lxml') +source=("https://pypi.python.org/packages/source/e/et_xmlfile/et_xmlfile-${pkgver}.tar.gz" + "LICENCE") +md5sums=('f47940fd9d556375420b2e276476cfaf' + 'd5feddd06c61a04aea40b7aa1707e625') + +prepare() { + cd "$srcdir" + cp -a et_xmlfile-${pkgver} et_xmlfile-py2-${pkgver} + cd et_xmlfile-py2-${pkgver} + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + msg "Building Python2" + cd "$srcdir"/et_xmlfile-py2-${pkgver} + python2 setup.py build + + msg "Building Python3" + cd "$srcdir"/et_xmlfile-${pkgver} + python setup.py build +} + +package_python2-et-xmlfile() { + depends=('python2' 'python2-lxml') + + cd "$srcdir"/et_xmlfile-py2-${pkgver} + + python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 + + install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE +} + +package_python-et-xmlfile() { + depends=('python' 'python-lxml') + + cd "$srcdir"/et_xmlfile-${pkgver} + + python setup.py install --skip-build --root="$pkgdir" --optimize=1 + + install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE +} + Property changes on: python-et-xmlfile/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Modified: python-openpyxl/trunk/PKGBUILD =================================================================== --- python-openpyxl/trunk/PKGBUILD 2015-11-21 15:25:18 UTC (rev 147324) +++ python-openpyxl/trunk/PKGBUILD 2015-11-21 15:39:34 UTC (rev 147325) @@ -5,7 +5,7 @@ pkgbase=python-openpyxl pkgname=('python2-openpyxl' 'python-openpyxl') -pkgver=2.2.6 +pkgver=2.3.1 pkgrel=1 pkgdesc="A Python library to read/write Excel 2007 xlsx/xlsm files" arch=('any') @@ -14,7 +14,7 @@ makedepends=('python2-setuptools' 'python-setuptools' 'python-jdcal' 'python2-jdcal' 'python-lxml' 'python2-lxml') source=("https://pypi.python.org/packages/source/o/openpyxl/openpyxl-${pkgver}.tar.gz" "LICENCE") -md5sums=('e218e2c7729be4627c290c3984f85d73' +md5sums=('7fa43e8946fe230788bae0aae1dfded7' 'c8afe530744e932b892358e6eb5bea9b') prepare() { @@ -39,7 +39,7 @@ } package_python2-openpyxl() { - depends=('python2' 'python2-jdcal' 'python2-lxml') + depends=('python2' 'python2-jdcal' 'python2-et-xmlfile') optdepends=('python2-pillow: needed to include images') cd "$srcdir"/openpyxl-py2-${pkgver} @@ -50,7 +50,7 @@ } package_python-openpyxl() { - depends=('python' 'python-jdcal' 'python-lxml') + depends=('python' 'python-jdcal' 'python-et-xmlfile') optdepends=('python-pillow: needed to include images') cd "$srcdir"/openpyxl-${pkgver}