Date: Sunday, April 9, 2023 @ 05:57:19
  Author: polyzen
Revision: 1443131

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-html/repos/community-staging-any/
  python-pytest-html/repos/community-staging-any/PKGBUILD
    (from rev 1443130, python-pytest-html/trunk/PKGBUILD)
  
python-pytest-html/repos/community-staging-any/python-pytest-html-3.2.0-build_system.patch
    (from rev 1443130, 
python-pytest-html/trunk/python-pytest-html-3.2.0-build_system.patch)

---------------------------------------------+
 PKGBUILD                                    |   47 ++++++++++++++++++++++++++
 python-pytest-html-3.2.0-build_system.patch |   29 ++++++++++++++++
 2 files changed, 76 insertions(+)

Copied: python-pytest-html/repos/community-staging-any/PKGBUILD (from rev 
1443130, python-pytest-html/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 05:57:19 UTC (rev 1443131)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dv...@archlinux.org>
+
+_name=pytest-html
+pkgname=python-pytest-html
+pkgver=3.2.0
+pkgrel=3
+pkgdesc="Plugin for generating HTML reports for pytest results"
+arch=(any)
+url="https://github.com/pytest-dev/pytest-html";
+license=(MPL2)
+depends=(python-py python-pytest python-pytest-metadata)
+makedepends=(python-build python-installer python-setuptools 
python-setuptools-scm python-wheel)
+checkdepends=(python-ansi2html python-pytest-mock python-pytest-rerunfailures
+python-pytest-xdist)
+source=(
+  
https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
+  $pkgname-3.2.0-build_system.patch
+)
+sha512sums=('1d448b904d484e5a70c4ede4562a54a1eb14d13a07501c9ec52e607e1261dacb1af96bca416fa8fbe03dd7f5c3f833cc0f6ed96b1f433f0057f2aad7f7fbd734'
+            
'83c82f453ae07c030ba7807674ac6a33ca119ba482d52e73d1093395dad30e95bbe196f501290a70714b02ba40fdf8d1d82b5a790e02bc891605917fd4f1bdde')
+b2sums=('7c06f42a1530956fa24a9ea6a1fb8112b053cf461b30f0509c513f8e81044c6b50885d3135157295fbaabb8c24078bd182efc5e868227a3334c13bb1b71d7352'
+        
'826b11bf59badf2a24cc92c53a8d70e2f95b5ab20c623042c7b72e7f2dba7b13287d5811acfaf42c4931401d97bec29c933cc755b4f5a22257a13bfe6a47448b')
+
+prepare() {
+  # remove the use of wheel and setuptools-scm-git-archive: 
https://github.com/pytest-dev/pytest-html/pull/567
+  patch -Np1 -d $_name-$pkgver -i ../$pkgname-3.2.0-build_system.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
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+}

Copied: 
python-pytest-html/repos/community-staging-any/python-pytest-html-3.2.0-build_system.patch
 (from rev 1443130, 
python-pytest-html/trunk/python-pytest-html-3.2.0-build_system.patch)
===================================================================
--- community-staging-any/python-pytest-html-3.2.0-build_system.patch           
                (rev 0)
+++ community-staging-any/python-pytest-html-3.2.0-build_system.patch   
2023-04-09 05:57:19 UTC (rev 1443131)
@@ -0,0 +1,29 @@
+diff --git i/pyproject.toml w/pyproject.toml
+index e3f25bf..fd6ab5f 100644
+--- i/pyproject.toml
++++ w/pyproject.toml
+@@ -1,9 +1,7 @@
+ [build-system]
+ requires = [
+-  "setuptools >= 42",
+-  "setuptools_scm[toml] >= 3.5.0",
+-  "setuptools_scm_git_archive >= 1.1",
+-  "wheel >= 0.33.6",
++  "setuptools >= 45",
++  "setuptools_scm[toml] >= 7.0.0",
+ ]
+ build-backend = "setuptools.build_meta"
+ 
+diff --git i/setup.py w/setup.py
+index 2c12049..167f113 100644
+--- i/setup.py
++++ w/setup.py
+@@ -12,7 +12,7 @@ setup(
+     packages=["pytest_html"],
+     package_data={"pytest_html": ["resources/*"]},
+     entry_points={"pytest11": ["html = pytest_html.plugin"]},
+-    setup_requires=["setuptools_scm"],
++    setup_requires=["setuptools_scm[toml]>7.0.0"],
+     install_requires=["py>=1.8.2", "pytest>=5.0,!=6.0.0", "pytest-metadata"],
+     license="Mozilla Public License 2.0 (MPL 2.0)",
+     keywords="py.test pytest html report",

Reply via email to