[arch-commits] Commit in (5 files)

Daniel M. Capella polyzen at gemini.archlinux.org
Wed Feb 16 23:46:54 UTC 2022


    Date: Wednesday, February 16, 2022 @ 23:46:54
  Author: polyzen
Revision: 1133582

Switch to python-installer from python-install

Modified:
  ansible-lint/trunk/PKGBUILD
  jedi-language-server/trunk/PKGBUILD
  python-matrix-common/trunk/PKGBUILD
  python-structlog/trunk/PKGBUILD
  qmk/trunk/PKGBUILD

-------------------------------------+
 ansible-lint/trunk/PKGBUILD         |    5 ++---
 jedi-language-server/trunk/PKGBUILD |    9 +++------
 python-matrix-common/trunk/PKGBUILD |    4 ++--
 python-structlog/trunk/PKGBUILD     |    4 ++--
 qmk/trunk/PKGBUILD                  |    5 ++---
 5 files changed, 11 insertions(+), 16 deletions(-)

Modified: ansible-lint/trunk/PKGBUILD
===================================================================
--- ansible-lint/trunk/PKGBUILD	2022-02-16 23:46:49 UTC (rev 1133581)
+++ ansible-lint/trunk/PKGBUILD	2022-02-16 23:46:54 UTC (rev 1133582)
@@ -11,7 +11,7 @@
 license=('MIT')
 depends=('python' 'ansible-core' 'python-ruamel-yaml' 'python-pyaml' 'python-rich' 'python-packaging'
           'python-wcmatch' 'python-enrich' 'python-tenacity')
-makedepends=('python-build' 'python-install' 'python-wheel')
+makedepends=('python-build' 'python-installer' 'python-wheel')
 optdepends=('yamllint: check for yaml syntax mistakes'
             'ansible: check official ansible collections')
 source=(https://github.com/ansible/ansible-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
@@ -33,7 +33,6 @@
 
 package() {
   cd ${pkgname}-${pkgver}
-  python -m install --optimize=1 --destdir="${pkgdir}" dist/*.whl
-  chmod +x "${pkgdir}"/usr/bin/*
+  python -m installer --destdir="${pkgdir}" --compile-bytecode=1 dist/*.whl
   install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
 }

Modified: jedi-language-server/trunk/PKGBUILD
===================================================================
--- jedi-language-server/trunk/PKGBUILD	2022-02-16 23:46:49 UTC (rev 1133581)
+++ jedi-language-server/trunk/PKGBUILD	2022-02-16 23:46:54 UTC (rev 1133582)
@@ -8,7 +8,7 @@
 url=https://github.com/pappasam/jedi-language-server
 license=('MIT')
 depends=('python-docstring-to-markdown' 'python-jedi' 'python-pygls')
-makedepends=('python-build' 'python-install' 'python-poetry')
+makedepends=('python-build' 'python-installer' 'python-poetry')
 checkdepends=('python-jsonrpc-server' 'python-pyhamcrest' 'python-pytest')
 source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
 b2sums=('5efe6a767316082b0e9a788ff196defde61f2302c3c30a34a32795c2e575a9049cb1e7a9de36ed61ece67e59412fe255465d9ae0916d20fdc23179c46d032fa6')
@@ -28,17 +28,14 @@
   cd $pkgname-$pkgver
   mkdir -p temp
   local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  python -m install --optimize=1 --destdir=temp dist/*.whl
+  python -m installer --destdir=temp --compile-bytecode=1 dist/*.whl
   PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" pytest tests
 }
 
 package() {
   cd $pkgname-$pkgver
-  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+  python -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl
 
-  # https://github.com/FFY00/python-install/pull/6
-  chmod +x "$pkgdir"/usr/bin/*
-
   # Symlink license file
   local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
   install -d "$pkgdir"/usr/share/licenses/$pkgname

Modified: python-matrix-common/trunk/PKGBUILD
===================================================================
--- python-matrix-common/trunk/PKGBUILD	2022-02-16 23:46:49 UTC (rev 1133581)
+++ python-matrix-common/trunk/PKGBUILD	2022-02-16 23:46:54 UTC (rev 1133582)
@@ -7,7 +7,7 @@
 arch=(any)
 url="https://github.com/matrix-org/matrix-python-common"
 license=('Apache')
-makedepends=('python-setuptools' 'python-build' 'python-install' 'python-wheel')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-twisted' 'python-service-identity' 'python-aiounittest')
 source=($pkgname-$pkgver.tar.gz::"https://github.com/matrix-org/matrix-python-common/archive/refs/tags/v$pkgver.tar.gz")
 sha512sums=('0050243ce3930962934f94fe1c990dc97ce803e79998ee7e6c7dafdf5ca4736c8c06fd4f52223b81f2ceb91a8bcf70f6488559f7935a9bd087c33a11430af8cd')
@@ -25,5 +25,5 @@
 
 package() {
 	cd "matrix-python-common-$pkgver"
-	python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+	python -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl
 }

Modified: python-structlog/trunk/PKGBUILD
===================================================================
--- python-structlog/trunk/PKGBUILD	2022-02-16 23:46:49 UTC (rev 1133581)
+++ python-structlog/trunk/PKGBUILD	2022-02-16 23:46:54 UTC (rev 1133582)
@@ -10,7 +10,7 @@
 license=('Apache')
 arch=('any')
 depends=('python')
-makedepends=('python-build' 'python-flit-core' 'python-install')
+makedepends=('python-build' 'python-flit-core' 'python-installer')
 checkdepends=('python-pytest' 'python-freezegun' 'python-pretend' 'python-simplejson'
               'python-twisted' 'python-rapidjson' 'python-greenlet' 'python-pytest-asyncio'
               'python-rich')
@@ -29,5 +29,5 @@
 
 package() {
   cd structlog-$pkgver
-  python -m install --optimize 0 1 --destdir="$pkgdir" dist/*.whl
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }

Modified: qmk/trunk/PKGBUILD
===================================================================
--- qmk/trunk/PKGBUILD	2022-02-16 23:46:49 UTC (rev 1133581)
+++ qmk/trunk/PKGBUILD	2022-02-16 23:46:54 UTC (rev 1133582)
@@ -16,7 +16,7 @@
          'arm-none-eabi-binutils' 'arm-none-eabi-newlib' 'avr-binutils'
          'dfu-programmer' 'dfu-util' 'avrdude' 'python-hjson' 'python-pygments'
          'python-hid' 'python-pyusb')
-makedepends=('python-build' 'python-install' 'python-wheel')
+makedepends=('python-build' 'python-installer' 'python-wheel')
 optdepends=('gcc'
             'libffi'
             'libusb-compat'
@@ -38,7 +38,6 @@
 package() {
   make -C qmk_udev-${_qmk_udev_pkgver} DESTDIR="$pkgdir" PREFIX=/usr install
   cd "${pkgname}-${pkgver}"
-  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
-  chmod +x "$pkgdir"/usr/bin/*
+  python -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl
   install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list