[arch-commits] Commit in python-pendulum/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Mon Aug 1 07:59:43 UTC 2022


    Date: Monday, August 1, 2022 @ 07:59:43
  Author: arojas
Revision: 1259600

upgpkg: python-pendulum 2.1.2-6: drop dephell usage

Modified:
  python-pendulum/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-01 07:59:29 UTC (rev 1259599)
+++ PKGBUILD	2022-08-01 07:59:43 UTC (rev 1259600)
@@ -3,14 +3,14 @@
 _name=pendulum
 pkgname=python-pendulum
 pkgver=2.1.2
-pkgrel=5
+pkgrel=6
 pkgdesc="Python datetimes made easy"
 arch=('any')
 url="https://pendulum.eustace.io/"
 license=('MIT')
 depends=('python' 'python-dateutil' 'python-pytzdata')
-makedepends=('python-dephell')
-checkdepends=('python-babel' 'python-freezegun' 'python-pytest' 'python-pytz' )
+makedepends=('python-installer' 'python-poetry')
+checkdepends=('python-babel' 'python-freezegun' 'python-pytest' 'python-pytz')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sdispater/${_name}/archive/${pkgver}.tar.gz")
 sha512sums=('c367320ade0d10b7eb9c880286176161b925d7df052f7de85ddd169594bbe778776ea74df451f00186df98be3e32b7399c68ca4b40123e2c456206410e3a1ab2')
 b2sums=('c95cd131fc95a0d19ef11f180cc42126cb8a6ea3aaf4b3bbedbc5ce4c1b37a6624f2a1be92f1a6fd6b1f14f5d20fa5f32e8230f896ab7a216f02f00e85b98738')
@@ -17,13 +17,11 @@
 
 prepare() {
   mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  dephell deps convert --from pyproject.toml --to setup.py
 }
 
 build() {
   cd "$pkgname-$pkgver"
-  python setup.py build
+  poetry build
 }
 
 check() {
@@ -34,9 +32,7 @@
 
 package() {
   cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
   install -vDm 644 {CHANGELOG.md,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list