Date: Sunday, March 5, 2023 @ 23:14:38
  Author: arojas
Revision: 1415176

upgpkg: python-astropy 5.2.1-1: Update to 5.2.1, switch to PEP517 (FS#76244)

Modified:
  python-astropy/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-05 23:02:47 UTC (rev 1415175)
+++ PKGBUILD    2023-03-05 23:14:38 UTC (rev 1415176)
@@ -3,7 +3,7 @@
 
 _pkg=astropy
 pkgname=python-${_pkg}
-pkgver=5.2
+pkgver=5.2.1
 pkgrel=1
 pkgdesc="Common core package for Astronomy"
 arch=(x86_64)
@@ -10,7 +10,7 @@
 url="https://www.astropy.org/";
 license=(BSD)
 depends=(python cfitsio expat wcslib python-numpy python-pyerfa python-yaml 
python-packaging)
-makedepends=(python-setuptools python-extension-helpers)
+makedepends=(python-build python-installer python-wheel python-setuptools-scm 
python-extension-helpers)
 optdepends=('python-matplotlib: plotting functionality astropy.visualization'
             'python-scipy: variety of features in several modules'
             'python-certifi'
@@ -32,11 +32,11 @@
             'python-fsspec: opening remote and cloud-hosted FITS files')
 #checkdepends=(python-pytest python-pytest-xdist python-hypothesis)
 
source=(https://files.pythonhosted.org/packages/source/a/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('d335604025f6e16f7c9bf82d5ba28e5db4745a82e5823a9d17bdd9b9bd46b2a2')
+sha256sums=('f6ae27a077f8ea84903efa76c790b985617341a0084b0d21c391f7a3f332ac23')
 
 build() {
   cd ${_pkg}-${pkgver}
-  ASTROPY_USE_SYSTEM_ALL=1 python setup.py build
+  ASTROPY_USE_SYSTEM_ALL=1 python -m build --wheel --no-isolation 
--skip-dependency-check
 }
 
 # Tests require a lot of unpackaged pytest modules
@@ -49,6 +49,6 @@
 
 package() {
   cd ${_pkg}-${pkgver}
-  ASTROPY_USE_SYSTEM_ALL=1 python setup.py install --skip-build 
--root="${pkgdir}" --optimize=1
+  ASTROPY_USE_SYSTEM_ALL=1 python -m installer --destdir="${pkgdir}" dist/*.whl
   install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/$pkgname/
 }

Reply via email to