[arch-commits] Commit in python-tempora/repos (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 21:42:52 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:42:52
  Author: foutrelis
Revision: 1058961

archrelease: copy trunk to community-staging-any

Added:
  python-tempora/repos/community-staging-any/
  python-tempora/repos/community-staging-any/LICENSE
    (from rev 1058959, python-tempora/trunk/LICENSE)
  python-tempora/repos/community-staging-any/PKGBUILD
    (from rev 1058959, python-tempora/trunk/PKGBUILD)

----------+
 LICENSE  |    7 +++++++
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

Copied: python-tempora/repos/community-staging-any/LICENSE (from rev 1058959, python-tempora/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2021-11-30 21:42:52 UTC (rev 1058961)
@@ -0,0 +1,7 @@
+Copyright Jason R. Coombs
+
+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.

Copied: python-tempora/repos/community-staging-any/PKGBUILD (from rev 1058959, python-tempora/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 21:42:52 UTC (rev 1058961)
@@ -0,0 +1,45 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Laurent Soest <laurent.soest(at)gmail.com>
+
+pkgname='python-tempora'
+_pkgbase="${pkgname//python-/}"
+pkgver=4.1.2
+pkgrel=2
+pkgdesc="Objects and routines pertaining to date and time (tempora)."
+arch=('any')
+url="https://github.com/jaraco/tempora"
+license=('MIT')
+depends=('python' 'python-six' 'python-pytz' 'python-jaraco')
+makedepends=('python-setuptools' 'python-setuptools-scm' 'python-six'
+             'python-pytz' 'python-jaraco')
+checkdepends=('python-pytest' 'python-pytest-flake8' 'python-pytest-cov'
+              'python-pytest-black' 'python-freezegun' 'python-pytest-freezegun'
+              'python-pytest-mypy')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+        'LICENSE')
+sha512sums=('9f7a6bb3f2b22c9e8616b815f385f0c986612bef43de0e65a00a89ddc1080e4c35b9128e0fc32c3c7dbf507a62041bba40c8e51673613299037cfdf63ee451a3'
+            '1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944')
+
+# setuptools won't find version from git tag
+export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+
+build() {
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+    python ./setup.py build
+}
+
+check() {
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+    pytest
+}
+
+package() {
+    cd "${srcdir}/${_pkgbase}-${pkgver}"
+    python ./setup.py install --root="${pkgdir}" --optimize=1
+
+    # the author has promised to include a LICENSE file in future releases:
+    # https://github.com/jaraco/skeleton/issues/1
+    # for now the LICENSE file has been taken from:
+    # https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
+    install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list