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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 17:06:37 UTC 2020


    Date: Monday, November 9, 2020 @ 17:06:36
  Author: foutrelis
Revision: 747754

archrelease: copy trunk to community-staging-any

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

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

Copied: python-tempora/repos/community-staging-any/LICENSE (from rev 747753, python-tempora/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2020-11-09 17:06:36 UTC (rev 747754)
@@ -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 747753, python-tempora/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 17:06:36 UTC (rev 747754)
@@ -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.0.1
+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=('6d5411c20f7955633aae67ba3f2e71134b030f8e1b7f1d83086f9cf93dc25d3ec0dcda2e397859d88469caa723f0b2b0666266a16484d9b59355afa45d6471e6'
+            '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