[arch-commits] Commit in python-distro/repos/community-any (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Thu Feb 24 22:20:14 UTC 2022


    Date: Thursday, February 24, 2022 @ 22:20:14
  Author: anthraxx
Revision: 1136516

archrelease: copy trunk to community-any

Added:
  python-distro/repos/community-any/PKGBUILD
    (from rev 1136515, python-distro/trunk/PKGBUILD)
Deleted:
  python-distro/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 35 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-24 22:20:10 UTC (rev 1136515)
+++ PKGBUILD	2022-02-24 22:20:14 UTC (rev 1136516)
@@ -1,38 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Tomislav Ivek <tomislav.ivek at gmail.com>
-
-pkgname=python-distro
-pkgver=1.6.0
-pkgrel=4
-pkgdesc='Linux OS platform information API'
-url='https://github.com/python-distro/distro'
-arch=('any')
-license=('Apache')
-depends=('python' 'python-setuptools')
-makedepends=('python-setuptools' 'python-sphinx')
-checkdepends=('python-pytest')
-options=('!makeflags')
-source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('48cff21ea152ec57c4505a72ffb1af5a138199f10ea908e138d16f48732f602a5b4f8bec2ee76b629981a1625453adf1b6895f4573229002b3b3ff7b76efbede')
-b2sums=('558c4b1fcb93882b589375dd719f0f6100e4a78bbe9f167821c1588f82abbe00afd68f22f191f3722f0dd4358d76a6e295c8e69af29fdcd6ba7399d927e96f1c')
-
-build() {
-  (cd distro-${pkgver}
-    python setup.py build
-    make man SPHINXBUILD=sphinx-build
-  )
-}
-
-check() {
-  (cd distro-${pkgver}
-    py.test
-  )
-}
-
-package() {
-  cd distro-${pkgver}
-  python setup.py install -O1 --root="${pkgdir}" --skip-build
-  install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-distro/repos/community-any/PKGBUILD (from rev 1136515, python-distro/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-24 22:20:14 UTC (rev 1136516)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Tomislav Ivek <tomislav.ivek at gmail.com>
+
+pkgname=python-distro
+pkgver=1.7.0
+pkgrel=1
+pkgdesc='Linux OS platform information API'
+url='https://github.com/python-distro/distro'
+arch=('any')
+license=('Apache')
+depends=('python' 'python-setuptools')
+makedepends=('python-sphinx' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest')
+options=('!makeflags')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('6d2e2640b5233f9503adec1290d61cfe58a75faba75b42c71c219c73cf32d7a071018543721894d2565219d3d41b616300469bac8d6d4c5a91db89120343d32e')
+b2sums=('18f92f51d912ab0a64dce54dfbb90b8300b927d59a1715b8e00ee4100b7183010f0093032dcd23bfbf0e51b8f2d5fd017cb66f5e25f0510db42032cf403ca0a8')
+
+build() {
+  cd distro-${pkgver}
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd distro-${pkgver}
+  PYTHONPATH="build/lib" pytest
+}
+
+package() {
+  cd distro-${pkgver}
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list