[arch-commits] Commit in python-jaraco.context/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 11:17:19 UTC 2021


    Date: Wednesday, December 1, 2021 @ 11:17:18
  Author: felixonmars
Revision: 1059143

archrelease: copy trunk to community-staging-any

Added:
  python-jaraco.context/repos/community-staging-any/
  python-jaraco.context/repos/community-staging-any/PKGBUILD
    (from rev 1059142, python-jaraco.context/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-jaraco.context/repos/community-staging-any/PKGBUILD (from rev 1059142, python-jaraco.context/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 11:17:18 UTC (rev 1059143)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jaraco.context
+pkgver=4.0.0
+pkgrel=2
+pkgdesc="Context managers by jaraco"
+url="https://github.com/jaraco/jaraco.context"
+license=('MIT')
+arch=('any')
+depends=('python-jaraco' 'python-yg.lockfile')
+makedepends=('python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest-black' 'python-pytest-checkdocs' 'python-pytest-cov'
+              'python-pytest-flake8' 'python-pytest-mypy' 'python-jaraco.test')
+source=("https://github.com/jaraco/jaraco.context/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('90a2010d87ac75f24c17bc054c664eeb442d9a7d4148d4f489a493aba9fdf654826f341b88ecad95943ce30aec934c5574d33dbd6cfcb67057315d7c3d5f31ff')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd jaraco.context-$pkgver
+  sed -i '/import jaraco.apt/d' jaraco/context.py
+  # Ignore flake8 error introduced by the above apt workaround
+  echo -e '\nper-file-ignores =\n\tjaraco/context.py: F821' >> .flake8
+}
+
+build() {
+  cd jaraco.context-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd jaraco.context-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd jaraco.context-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list