[arch-commits] Commit in python-flit/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Sat May 14 07:14:36 UTC 2022


    Date: Saturday, May 14, 2022 @ 07:14:36
  Author: arojas
Revision: 1203274

archrelease: copy trunk to community-testing-any

Added:
  python-flit/repos/community-testing-any/
  python-flit/repos/community-testing-any/PKGBUILD
    (from rev 1203273, python-flit/trunk/PKGBUILD)

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Copied: python-flit/repos/community-testing-any/PKGBUILD (from rev 1203273, python-flit/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-05-14 07:14:36 UTC (rev 1203274)
@@ -0,0 +1,60 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=flit
+pkgbase=python-$_pkgname
+pkgname=($pkgbase{,-core})
+pkgver=3.7.1
+pkgrel=1
+pkgdesc='Simplified packaging of Python modules'
+arch=('any')
+url='https://github.com/takluyver/flit'
+license=('BSD')
+depends=('python' 'python-tomli' 'python-tomli-w')
+makedepends=('python-pip' 'python-poetry' 'python-requests' 'python-docutils')
+checkdepends=('python-pytest' 'python-testpath' 'python-responses')
+source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('e38162696a24a0f8d9a61f3364c2ada9c8024309b02138af66c53790e14f88bf285822ea85d6634e85f88d9712eaad039bb5dcbbd1ac1f87bce6b2790bd96d6f')
+
+prepare() {
+  cd $_pkgname-$pkgver
+  rm tests/test_sdist.py
+  cd flit_core
+  python build_dists.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=flit_core python -m flit build --format wheel
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=flit_core python -m pytest
+}
+
+package_python-flit() {
+  depends+=('python-flit-core' 'python-requests' 'python-docutils')
+  provides=($_pkgname)
+  conflicts=($_pkgname)
+
+  cd $_pkgname-$pkgver
+
+  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-flit-core() {
+  pkgdesc+=' (core backend)'
+
+  cd $_pkgname-$pkgver/flit_core
+
+  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
+  install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # installing tests to a subdir of your project might not conflict the toplevel, but
+  # don't do it anyway...
+  rm -r "$pkgdir"/usr/lib/python*/site-packages/flit_core/tests/
+}



More information about the arch-commits mailing list