Date: Friday, April 7, 2023 @ 04:18:13
  Author: felixonmars
Revision: 1440494

archrelease: copy trunk to community-staging-any

Added:
  python-enrich/repos/community-staging-any/
  python-enrich/repos/community-staging-any/PKGBUILD
    (from rev 1440493, python-enrich/trunk/PKGBUILD)
  
python-enrich/repos/community-staging-any/python-enrich-1.2.7-dependencies.patch
    (from rev 1440493, 
python-enrich/trunk/python-enrich-1.2.7-dependencies.patch)
  
python-enrich/repos/community-staging-any/python-enrich-1.2.7-remove_mock.patch
    (from rev 1440493, 
python-enrich/trunk/python-enrich-1.2.7-remove_mock.patch)

----------------------------------------+
 PKGBUILD                               |   61 +++++++++++++++++++++++++++++++
 python-enrich-1.2.7-dependencies.patch |   42 +++++++++++++++++++++
 python-enrich-1.2.7-remove_mock.patch  |   12 ++++++
 3 files changed, 115 insertions(+)

Copied: python-enrich/repos/community-staging-any/PKGBUILD (from rev 1440493, 
python-enrich/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 04:18:13 UTC (rev 1440494)
@@ -0,0 +1,61 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=enrich
+pkgname=python-enrich
+pkgver=1.2.7
+_commit=1d547b97d56ac38f453dfc799428b816c2557707  # refs/tags/v1.2.7
+pkgrel=5
+pkgdesc="Extends rich library functionality with a set of changes that were 
not accepted"
+arch=(any)
+url="https://github.com/pycontribs/enrich";
+license=(MIT)
+depends=(python-rich)
+makedepends=(git python-build python-installer python-setuptools 
python-setuptools-scm python-wheel)
+checkdepends=(python-pytest python-pytest-mock python-pytest-xdist)
+# NOTE: switch to git sources to not backport own patches: 
https://github.com/pypa/setuptools/issues/3672
+source=(
+  git+https://github.com/pycontribs/enrich#tag=$_commit
+  # 
https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
+  $pkgname-1.2.7-dependencies.patch
+  $pkgname-1.2.7-remove_mock.patch
+)
+sha512sums=('SKIP'
+            
'a25a0d29dc89f52bc9af38bdcd488ea3cfc83377f39dacf4a6b3092ce5e3941ca6a3df1ecb50e257f1bc4a4011d33879bfe3989fd98ea495ae6008e3e70a51e1'
+            
'd81501e5e85a660cee24b595efc7d6422fa65cea9847213e9b88459687a39392481ad70b7d23390f25a3d4bd78519d0b31ad141db9dd4f6f0600be2bcff03948')
+b2sums=('SKIP'
+        
'e4d986bc64975149e6d28786fe7b087494994ed4b3e4cee960ae75dcd8fb2f40523c7075bd02fef3981dfb29550d0645bc5fce1180eb4f58d80018c86bdec03e'
+        
'da111125ad961348865d1076305b5a9dea9affec4d52c9a6dca4839420f52f2b8ebc7f38b1d3f5e2d01da9c53937a0129793b06c1151d9b1628e366e0bdf24cd')
+
+prepare() {
+  # remove pip, wheel and setuptools-scm-git-archive from makedepends: 
https://github.com/pycontribs/enrich/pull/45
+  patch -Np1 -d $_name -i ../$pkgname-1.2.7-dependencies.patch
+  # remove mock: https://github.com/pycontribs/enrich/pull/46
+  patch -Np1 -d $_name -i ../$pkgname-1.2.7-remove_mock.patch
+}
+
+build() {
+  cd $_name
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  # disable broken test: https://github.com/pycontribs/enrich/issues/40
+  pytest -vv -c /dev/null -k "not test_rich_console_ex" 
test_dir/$_site_packages
+}
+
+package() {
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+
+  # remove tests: https://github.com/pycontribs/enrich/issues/47
+  rm -frv "$pkgdir/$_site_packages/$_name/test/"
+}

Copied: 
python-enrich/repos/community-staging-any/python-enrich-1.2.7-dependencies.patch
 (from rev 1440493, python-enrich/trunk/python-enrich-1.2.7-dependencies.patch)
===================================================================
--- community-staging-any/python-enrich-1.2.7-dependencies.patch                
                (rev 0)
+++ community-staging-any/python-enrich-1.2.7-dependencies.patch        
2023-04-07 04:18:13 UTC (rev 1440494)
@@ -0,0 +1,42 @@
+diff --git c/pyproject.toml w/pyproject.toml
+index 1b5986b..00ccf01 100644
+--- c/pyproject.toml
++++ w/pyproject.toml
+@@ -1,10 +1,7 @@
+ [build-system]
+ requires = [
+-  "pip >= 19.3.1",
+-  "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 c/setup.cfg w/setup.cfg
+index 811c946..73ff080 100644
+--- c/setup.cfg
++++ w/setup.cfg
+@@ -56,8 +56,7 @@ zip_safe = False
+ 
+ # These are required during `setup.py` run:
+ setup_requires =
+-    setuptools_scm >= 1.15.0
+-    setuptools_scm_git_archive >= 1.0
++    setuptools_scm[toml]>=7.0.0
+ 
+ # These are required in actual runtime:
+ install_requires =
+diff --git c/setup.py w/setup.py
+index d58a575..17927f7 100644
+--- c/setup.py
++++ w/setup.py
+@@ -13,5 +13,5 @@ site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
+ if __name__ == "__main__":
+     setuptools.setup(
+         use_scm_version={"local_scheme": "no-local-version"},
+-        setup_requires=["setuptools_scm[toml]>=3.5.0"],
++        setup_requires=["setuptools_scm[toml]>=7.0.0"],
+     )

Copied: 
python-enrich/repos/community-staging-any/python-enrich-1.2.7-remove_mock.patch 
(from rev 1440493, python-enrich/trunk/python-enrich-1.2.7-remove_mock.patch)
===================================================================
--- community-staging-any/python-enrich-1.2.7-remove_mock.patch                 
        (rev 0)
+++ community-staging-any/python-enrich-1.2.7-remove_mock.patch 2023-04-07 
04:18:13 UTC (rev 1440494)
@@ -0,0 +1,12 @@
+diff --git c/setup.cfg w/setup.cfg
+index 811c946..9e62d34 100644
+--- c/setup.cfg
++++ w/setup.cfg
+@@ -65,7 +65,6 @@ install_requires =
+ 
+ [options.extras_require]
+ test =
+-    mock>=3.0.5
+     pytest-cov>=2.7.1
+     pytest-mock>=3.3.1
+     pytest-plus

Reply via email to