From d0389a544ea51f11554c98cbd4f21bfc8d69f80a Mon Sep 17 00:00:00 2001 From: yan12125 Date: Mon, 30 May 2022 04:25:21 +0000 Subject: [PATCH] archrelease: copy trunk to community-any git-svn-id: file:///srv/repos/svn-community/svn@1214780 9fca08f4-af9d-4005-b8df-a31f2cc04f65 --- repos/community-any/LICENCE | 23 ----------------------- repos/community-any/PKGBUILD | 17 ++++++++++++----- 2 files changed, 12 insertions(+), 28 deletions(-) delete mode 100644 repos/community-any/LICENCE diff --git a/repos/community-any/LICENCE b/repos/community-any/LICENCE deleted file mode 100644 index 82213c597d9f..000000000000 --- a/repos/community-any/LICENCE +++ /dev/null @@ -1,23 +0,0 @@ -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. diff --git a/repos/community-any/PKGBUILD b/repos/community-any/PKGBUILD index 27a89fec6cbc..1bf2f5188893 100644 --- a/repos/community-any/PKGBUILD +++ b/repos/community-any/PKGBUILD @@ -1,28 +1,35 @@ -# Maintainer: Andrzej Giniewicz +# Maintainer: Chih-Hsuan Yen +# Contributor: Andrzej Giniewicz # Contributor: Nishit Joseph (reachjlight at gmail dot com) # Contributor: Martin Corley pkgname=python-openpyxl -pkgver=3.0.9 -pkgrel=3 +pkgver=3.0.10 +pkgrel=1 pkgdesc="A Python library to read/write Excel 2007 xlsx/xlsm files" arch=('any') url="https://openpyxl.readthedocs.org/" license=('MIT') -depends=('python-jdcal' 'python-et-xmlfile') +depends=('python-et-xmlfile') makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-lxml' 'python-pandas' 'python-pillow') optdepends=('python-pillow: needed to include images' 'python-lxml: alternative XML backend' 'python-defusedxml: guard against various XML vulnerabilities' 'python-pandas: for iteration over Pandas DataFrames') source=("https://foss.heptapod.net/openpyxl/openpyxl/-/archive/${pkgver}/openpyxl-${pkgver}.tar.bz2") -sha256sums=('351d38f1bba45a4a3cdcdc626d6c3f815677f5f0bc218315664678efe47e4e3f') +sha256sums=('265ae51674a0b30d5394a437a2c96c520c6cfcaf479a4d3e0f75d829d172664e') build() { cd "$srcdir"/openpyxl-${pkgver} python setup.py build } +check() { + cd "$srcdir"/openpyxl-${pkgver} + pytest +} + package() { cd "$srcdir"/openpyxl-${pkgver} python setup.py install --skip-build --root="$pkgdir" --optimize=1