[arch-commits] Commit in python-et-xmlfile/trunk (LICENCE PKGBUILD)

George Rawlinson grawlinson at archlinux.org
Thu Jun 17 10:00:15 UTC 2021


    Date: Thursday, June 17, 2021 @ 10:00:15
  Author: grawlinson
Revision: 964576

upgpkg: python-et_xmlfile 1.1-1

* New upstream release.
* Changed source to upstream instead of pypi.
* Added unit tests to check func.
* Changed python-lxml to checkdepends.
* Removed license from repository.

Modified:
  python-et-xmlfile/trunk/PKGBUILD
Deleted:
  python-et-xmlfile/trunk/LICENCE

----------+
 LICENCE  |   35 -----------------------------------
 PKGBUILD |   27 +++++++++++++++++++--------
 2 files changed, 19 insertions(+), 43 deletions(-)

Deleted: LICENCE
===================================================================
--- LICENCE	2021-06-17 09:29:22 UTC (rev 964575)
+++ LICENCE	2021-06-17 10:00:15 UTC (rev 964576)
@@ -1,35 +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.
-
-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.
-

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-17 09:29:22 UTC (rev 964575)
+++ PKGBUILD	2021-06-17 10:00:15 UTC (rev 964576)
@@ -1,26 +1,37 @@
 # Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: George Rawlinson <grawlinson at archlinux.org>
 
 pkgname='python-et-xmlfile'
-pkgver=1.0.1
-pkgrel=9
+pkgver=1.1
+pkgrel=1
 pkgdesc="A low memory library for creating large XML files."
 arch=('any')
 url="https://et-xmlfile.readthedocs.io/"
 license=('MIT')
-depends=('python-lxml')
+depends=('python')
 makedepends=('python-setuptools')
-source=("https://pypi.python.org/packages/source/e/et_xmlfile/et_xmlfile-${pkgver}.tar.gz"
-        "LICENCE")
-sha256sums=('614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b'
-            '661ec7386be2767e08c469d039de4918c91b5223b6fd8b19961377977bc0652d')
+checkdepends=('python-pytest-runner' 'python-lxml')
+source=("https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/${pkgver}/et_xmlfile-${pkgver}.tar.gz")
+sha256sums=('3d3486a2ef43dc099d7b64cb247f1a9595edd39225e4398b6538d55ce1f8a36b')
 
+prepare() {
+  cd "$srcdir"/et_xmlfile-${pkgver}
+  # fix deprecation warning
+  sed -i "s/strict/strict-markers/" pytest.ini
+}
+
 build() {
   cd "$srcdir"/et_xmlfile-${pkgver}
   python setup.py build
 }
 
+check() {
+  cd "$srcdir"/et_xmlfile-${pkgver}
+  python setup.py pytest
+}
+
 package() {
   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
+  install -Dm644 LICENCE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
 }



More information about the arch-commits mailing list