[arch-commits] Commit in python-jaraco.context/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jan 29 18:40:32 UTC 2021


    Date: Friday, January 29, 2021 @ 18:40:31
  Author: felixonmars
Revision: 835509

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-29 18:40:20 UTC (rev 835508)
+++ PKGBUILD	2021-01-29 18:40:31 UTC (rev 835509)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-jaraco.context
-pkgver=3.0.0
-pkgrel=1
-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')
-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=('95143874235fb09dbc6f1922a8916fbbc4282c836a98f7a00547ea75d84a66cd9007b2846e783714e02f83221af3fb5e814db2992fc3243f8807ee406c2d7d78')
-
-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
-
-  rm "$pkgdir"/usr/lib/python3.9/site-packages/jaraco/__init__.py \
-     "$pkgdir"/usr/lib/python3.9/site-packages/jaraco/__pycache__/__init__.cpython-39.pyc \
-     "$pkgdir"/usr/lib/python3.9/site-packages/jaraco/__pycache__/__init__.cpython-39.opt-1.pyc
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-jaraco.context/repos/community-any/PKGBUILD (from rev 835508, python-jaraco.context/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-01-29 18:40:31 UTC (rev 835509)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jaraco.context
+pkgver=4.0.0
+pkgrel=1
+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')
+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