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

Santiago Torres-Arias sangy at gemini.archlinux.org
Mon Jul 11 23:29:43 UTC 2022


    Date: Monday, July 11, 2022 @ 23:29:43
  Author: sangy
Revision: 1249812

upgpkg: python-hatch 1.3.1-1

Modified:
  python-hatch/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-11 23:07:27 UTC (rev 1249811)
+++ PKGBUILD	2022-07-11 23:29:43 UTC (rev 1249812)
@@ -2,17 +2,18 @@
 # Contributor: Kaizhao Zhang <zhangkaizhao at gmail.com>
 
 pkgname=python-hatch
-pkgver=0.23.1
+pkgver=1.3.1
 pkgrel=1
 pkgdesc="A modern project, package, and virtual env manager"
 arch=('any')
 url="https://github.com/ofek/hatch"
-license=('MIT' 'Apache')
+license=('MIT')
 depends=(
   'python' 'python-appdirs' 'python-atomicwrites' 'python-click'
   'python-colorama' 'python-coverage' 'python-pexpect' 'python-pip'
   'python-pytest' 'python-semver' 'python-setuptools' 'python-sortedcontainers'
   'python-toml' 'twine' 'python-userpath' 'python-virtualenv' 'python-wheel'
+  'python-build'
 )
 
 
@@ -22,21 +23,19 @@
   'hatch_complete.sh'
   'hatch_complete.zsh'
 )
-sha256sums=('97ee540e74450c2ac1eabc678b258db7a1c2830a40409302a6a31ec3183ab559'
+sha256sums=('fb1bdad4a22d3443137036b246898c5d3c7552ff4ba399b4605548cef0a22496'
             'b87254c621719188907a2062b0aa3c4eb078088872d1de7d53d6a6d61a679c44'
             'a43679d72ebb7b5c029192519597eff835586d0b6ed9d1e3dfc93270b8720e71')
 
 build() {
   cd "${srcdir}/${_name}-${pkgver}"
-  python setup.py build
+  python -m build
 }
 
 package() {
   cd "${srcdir}/${_name}-${pkgver}"
-  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
-  install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
-  install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
-  install -Dm644 LICENSE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE"
+  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
+  install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 
   cd "${srcdir}"
 



More information about the arch-commits mailing list