[arch-commits] Commit in python-coverage-conditional-plugin/repos/community-any (4 files)

David Runge dvzrv at gemini.archlinux.org
Thu Sep 1 11:11:24 UTC 2022


    Date: Thursday, September 1, 2022 @ 11:11:23
  Author: dvzrv
Revision: 1290299

archrelease: copy trunk to community-any

Added:
  python-coverage-conditional-plugin/repos/community-any/PKGBUILD
    (from rev 1290298, python-coverage-conditional-plugin/trunk/PKGBUILD)
  python-coverage-conditional-plugin/repos/community-any/python-coverage-conditional-plugin-0.5.0-poetry.patch
    (from rev 1290298, python-coverage-conditional-plugin/trunk/python-coverage-conditional-plugin-0.5.0-poetry.patch)
Deleted:
  python-coverage-conditional-plugin/repos/community-any/PKGBUILD
  python-coverage-conditional-plugin/repos/community-any/python-coverage-conditional-plugin-0.5.0-poetry.patch

-------------------------------------------------------+
 PKGBUILD                                              |  105 ++++++++--------
 python-coverage-conditional-plugin-0.5.0-poetry.patch |   24 +--
 2 files changed, 65 insertions(+), 64 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-01 11:11:12 UTC (rev 1290298)
+++ PKGBUILD	2022-09-01 11:11:23 UTC (rev 1290299)
@@ -1,52 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=coverage-conditional-plugin
-pkgname=python-coverage-conditional-plugin
-pkgver=0.5.0
-pkgrel=1
-pkgdesc="Conditional coverage based on any rules you define"
-arch=(any)
-url="https://github.com/wemake-services/coverage-conditional-plugin"
-license=(MIT)
-depends=(python-coverage python-packaging)
-makedepends=(python-build python-installer python-poetry python-wheel)
-checkdepends=(python-pytest python-pytest-cov python-pytest-randomly)
-# no tests in sdist tarball: https://github.com/wemake-services/coverage-conditional-plugin/issues/153
-# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-source=(
-  $_name-$pkgver.tar.gz::https://github.com/wemake-services/$_name/archive/refs/tags/$pkgver.tar.gz
-  $pkgname-0.5.0-poetry.patch
-)
-sha256sums=('930db4b1c2ef9f456b2379a78b7773db701a3915fb5b0fa205fe964914de40c4'
-            '250df5cedfb0ae89744b82f6f6a0ee062501f15ad58acde6a6e294b38ef4b502')
-b2sums=('2ccbb03eeaff2c1526454c4ee134778e31b5f0b07491715bfab39d4ae8c69cc4625269d0910ebef2f2b6a6fc7ee1556352b0d14ba8395ae3e2a2b882ed90d692'
-        '79e8a786df0e36e5a9f29d54ad343d50c2aff64b2d413094082dd0d0af785b2da0168a14bddff85285a5d1b43d7240fb46d1d0742facb65befbe587b9499ef71')
-
-prepare() {
-  # fix incompatibility with PEP517: https://github.com/wemake-services/coverage-conditional-plugin/issues/155
-  patch -Np1 -d $_name-$pkgver -i ../$pkgname-0.5.0-poetry.patch
-}
-
-build() {
-  cd $_name-$pkgver
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-
-  cd $_name-$pkgver
-  # install to temporary location, as importlib is used
-  python -m installer --destdir=test_dir dist/*.whl
-  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
-  # ignore integration and code style checks
-  # ignore unwanted pulling in of python-pytest-pythonpath: https://github.com/wemake-services/coverage-conditional-plugin/issues/154
-  # ignore broken integration test
-  pytest -vv -c /dev/null --ignore tests/test_integration.py
-}
-
-package() {
-  cd $_name-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
-}

Copied: python-coverage-conditional-plugin/repos/community-any/PKGBUILD (from rev 1290298, python-coverage-conditional-plugin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-01 11:11:23 UTC (rev 1290299)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=coverage-conditional-plugin
+pkgname=python-coverage-conditional-plugin
+pkgver=0.5.0
+pkgrel=2
+pkgdesc="Conditional coverage based on any rules you define"
+arch=(any)
+url="https://github.com/wemake-services/coverage-conditional-plugin"
+license=(MIT)
+# package actually depends on python-setuptools: https://github.com/wemake-services/coverage-conditional-plugin/issues/174
+depends=(python-coverage python-packaging python-setuptools)
+makedepends=(python-build python-installer python-poetry python-wheel)
+checkdepends=(python-pytest python-pytest-cov python-pytest-randomly)
+# no tests in sdist tarball: https://github.com/wemake-services/coverage-conditional-plugin/issues/153
+# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+source=(
+  $_name-$pkgver.tar.gz::https://github.com/wemake-services/$_name/archive/refs/tags/$pkgver.tar.gz
+  $pkgname-0.5.0-poetry.patch
+)
+sha256sums=('930db4b1c2ef9f456b2379a78b7773db701a3915fb5b0fa205fe964914de40c4'
+            '250df5cedfb0ae89744b82f6f6a0ee062501f15ad58acde6a6e294b38ef4b502')
+b2sums=('2ccbb03eeaff2c1526454c4ee134778e31b5f0b07491715bfab39d4ae8c69cc4625269d0910ebef2f2b6a6fc7ee1556352b0d14ba8395ae3e2a2b882ed90d692'
+        '79e8a786df0e36e5a9f29d54ad343d50c2aff64b2d413094082dd0d0af785b2da0168a14bddff85285a5d1b43d7240fb46d1d0742facb65befbe587b9499ef71')
+
+prepare() {
+  # fix incompatibility with PEP517: https://github.com/wemake-services/coverage-conditional-plugin/issues/155
+  patch -Np1 -d $_name-$pkgver -i ../$pkgname-0.5.0-poetry.patch
+}
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  # install to temporary location, as importlib is used
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  # ignore integration and code style checks
+  # ignore unwanted pulling in of python-pytest-pythonpath: https://github.com/wemake-services/coverage-conditional-plugin/issues/154
+  # ignore broken integration test
+  pytest -vv -c /dev/null --ignore tests/test_integration.py
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}

Deleted: python-coverage-conditional-plugin-0.5.0-poetry.patch
===================================================================
--- python-coverage-conditional-plugin-0.5.0-poetry.patch	2022-09-01 11:11:12 UTC (rev 1290298)
+++ python-coverage-conditional-plugin-0.5.0-poetry.patch	2022-09-01 11:11:23 UTC (rev 1290299)
@@ -1,12 +0,0 @@
-diff -ruN a/pyproject.toml b/pyproject.toml
---- a/pyproject.toml	2022-01-02 14:35:11.000000000 +0100
-+++ b/pyproject.toml	2022-06-19 16:09:50.958743465 +0200
-@@ -1,6 +1,6 @@
- [build-system]
--requires = ["poetry>=1.0"]
--build-backend = "poetry.masonry.api"
-+requires = ["poetry-core>=1.0.0"]
-+build-backend = "poetry.core.masonry.api"
- 
- 
- [tool.nitpick]

Copied: python-coverage-conditional-plugin/repos/community-any/python-coverage-conditional-plugin-0.5.0-poetry.patch (from rev 1290298, python-coverage-conditional-plugin/trunk/python-coverage-conditional-plugin-0.5.0-poetry.patch)
===================================================================
--- python-coverage-conditional-plugin-0.5.0-poetry.patch	                        (rev 0)
+++ python-coverage-conditional-plugin-0.5.0-poetry.patch	2022-09-01 11:11:23 UTC (rev 1290299)
@@ -0,0 +1,12 @@
+diff -ruN a/pyproject.toml b/pyproject.toml
+--- a/pyproject.toml	2022-01-02 14:35:11.000000000 +0100
++++ b/pyproject.toml	2022-06-19 16:09:50.958743465 +0200
+@@ -1,6 +1,6 @@
+ [build-system]
+-requires = ["poetry>=1.0"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+ 
+ 
+ [tool.nitpick]



More information about the arch-commits mailing list