Date: Monday, September 26, 2022 @ 16:55:49
Author: dvzrv
Revision: 1311514
archrelease: copy trunk to community-any
Added:
python-coverage-conditional-plugin/repos/community-any/PKGBUILD
(from rev 1311513, python-coverage-conditional-plugin/trunk/PKGBUILD)
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 | 93 ++++++----------
python-coverage-conditional-plugin-0.5.0-poetry.patch | 12 --
2 files changed, 40 insertions(+), 65 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-26 16:55:39 UTC (rev 1311513)
+++ PKGBUILD 2022-09-26 16:55:49 UTC (rev 1311514)
@@ -1,53 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_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/"
-}
Copied: python-coverage-conditional-plugin/repos/community-any/PKGBUILD (from
rev 1311513, python-coverage-conditional-plugin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-26 16:55:49 UTC (rev 1311514)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=coverage-conditional-plugin
+pkgname=python-coverage-conditional-plugin
+pkgver=0.7.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-core python-wheel)
+checkdepends=(python-pytest python-pytest-cov python-pytest-randomly)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('c67baa7377e1ea9fbaa6c00c26f6aefbd2e1bb055ec8d6b5527e48f6dd18163e')
+b2sums=('1ef41fdeede7ffa59f3f2eb53d122eed8e25185376187e809a3794524c2853a1703ba4c283ae81ea14e237305e454689149a4faeb93be0aa39e2171abc530b01')
+
+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-26
16:55:39 UTC (rev 1311513)
+++ python-coverage-conditional-plugin-0.5.0-poetry.patch 2022-09-26
16:55:49 UTC (rev 1311514)
@@ -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]