[arch-commits] Commit in python-pytest-enabler/repos/community-any (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Sun Jul 31 17:42:18 UTC 2022


    Date: Sunday, July 31, 2022 @ 17:42:17
  Author: arojas
Revision: 1259356

archrelease: copy trunk to community-any

Added:
  python-pytest-enabler/repos/community-any/PKGBUILD
    (from rev 1259355, python-pytest-enabler/trunk/PKGBUILD)
Deleted:
  python-pytest-enabler/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   89 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 44 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-31 17:42:08 UTC (rev 1259355)
+++ PKGBUILD	2022-07-31 17:42:17 UTC (rev 1259356)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pytest-enabler
-pkgver=1.2.1
-pkgrel=2
-pkgdesc='Enable installed pytest plugins'
-arch=('any')
-license=('MIT')
-url='https://github.com/jaraco/pytest-enabler'
-depends=('python-jaraco.context' 'python-jaraco.functools' 'python-toml')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-jaraco.test' 'python-pytest-black' 'python-pytest-checkdocs'
-              'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-mypy'
-              'python-pip')
-source=("https://github.com/jaraco/pytest-enabler/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
-        "https://files.pythonhosted.org/packages/source/t/types-toml/types-toml-0.10.1.tar.gz")
-sha512sums=('15762f966203d574e9e6b7c3fbeac2de9815a4ce264e603518d4edfbc82bc1faef2ad50d4508063d6a878033de03be457c59545f0712ca7cc71d183eb86f15a6'
-            '001757f956dd3af0688a6544b90ba415b26ab3128e0fbb238f4dfaf0bab6b5795d5598bcc9422d854ea235acbc9e78b245c17f9ebc9ad9251ae3c0722b382812')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
-  cd pytest-enabler-$pkgver
-  # no idea what this is or why mypy wants it
-  ln -s ../types-toml-0.10.1/toml-stubs .
-}
-
-build() {
-  cd pytest-enabler-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd pytest-enabler-$pkgver
-  python setup.py egg_info
-  PYTHONPATH="$PWD" pytest
-}
-
-package() {
-  cd pytest-enabler-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-enabler/repos/community-any/PKGBUILD (from rev 1259355, python-pytest-enabler/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-31 17:42:17 UTC (rev 1259356)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-enabler
+pkgver=1.3.0
+pkgrel=1
+pkgdesc='Enable installed pytest plugins'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/pytest-enabler'
+depends=('python-jaraco.context' 'python-jaraco.functools' 'python-toml')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-jaraco.test' 'python-pytest-black' 'python-pytest-checkdocs'
+              'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-mypy'
+              'python-pip')
+source=("https://github.com/jaraco/pytest-enabler/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+        "https://files.pythonhosted.org/packages/source/t/types-toml/types-toml-0.10.1.tar.gz")
+sha512sums=('20abe21f6e56ab2e327f5340f72d58391012cbda4ca87f5e632db3636c95b47562c4d848f46f90c0363ad0963ed6fb3fb8da073cc9538f0116d488821898dbe5'
+            '001757f956dd3af0688a6544b90ba415b26ab3128e0fbb238f4dfaf0bab6b5795d5598bcc9422d854ea235acbc9e78b245c17f9ebc9ad9251ae3c0722b382812')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd pytest-enabler-$pkgver
+  # no idea what this is or why mypy wants it
+  ln -s ../types-toml-0.10.1/toml-stubs .
+}
+
+build() {
+  cd pytest-enabler-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd pytest-enabler-$pkgver
+  PYTHONPATH="$PWD" pytest
+}
+
+package() {
+  cd pytest-enabler-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list