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

Filipe Laíns ffy00 at archlinux.org
Wed Jun 3 20:28:19 UTC 2020


    Date: Wednesday, June 3, 2020 @ 20:28:18
  Author: ffy00
Revision: 638556

upgpkg: python-fastapi 0.55.1-2 (use python-{setuptools,dephell} to build)

Modified:
  python-fastapi/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-03 20:06:00 UTC (rev 638555)
+++ PKGBUILD	2020-06-03 20:28:18 UTC (rev 638556)
@@ -3,7 +3,7 @@
 _pkgname=fastapi
 pkgname=python-$_pkgname
 pkgver=0.55.1
-pkgrel=1
+pkgrel=2
 pkgdesc='FastAPI framework, high performance, easy to learn, fast to code, ready for production'
 arch=('any')
 url='https://github.com/tiangolo/fastapi'
@@ -12,15 +12,15 @@
 optdepends=('python-requests' 'python-aiofiles' 'python-jinja' 'python-itsdangerous'
             'python-yaml' 'python-graphene' 'python-ujson' 'python-orjson'
             'python-email-validator' 'python-async_generator')
-makedepends=('python-build' 'python-install' 'python-flit')
+makedepends=('python-setuptools' 'python-dephell') # 'python-build' 'python-install' 'python-flit')
 # We can't use python-pytest-runner in PEP517 workflows so I am using python-pyproject2setuppy as a workaround
 # Relevant: https://github.com/pytest-dev/pytest/issues/7281
-checkdepends=('python-pytest-runner' 'python-pyproject2setuppy' 'python-pytest-cov' 'mypy'
+checkdepends=('python-pytest-runner' 'python-pytest-cov' 'mypy'
               'python-requests' 'python-aiofiles' 'python-jinja' 'python-itsdangerous'
               'python-yaml' 'python-graphene' 'python-ujson' 'python-orjson'
               'python-email-validator' 'python-async_generator' 'python-pyjwt'
               'python-sqlalchemy' 'python-peewee' 'python-flask' 'python-passlib'
-              'python-bcrypt')
+              'python-bcrypt') # 'python-pyproject2setuppy'
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 sha512sums=('2a529f2eafe04ee78e8feb54dd53b36af08ee3c90f06fbb9207c724d52b520c2a3c2ea0db4793a32b45d545aed53d4fb388e0b90364bd4b36dfc4f391d84ca34')
 
@@ -29,6 +29,8 @@
 prepare() {
   cd $_pkgname-$pkgver
 
+  dephell deps convert --from pyproject.toml --to setup.py
+
   # don't pin starlette dependency
   sed -i 's|starlette.*"|starlette"|' pyproject.toml
 
@@ -47,14 +49,13 @@
 build() {
   cd $_pkgname-$pkgver
 
-  python -m build
-  python -m install --cache dist/*.whl
+  python setup.py build
 }
 
 check() {
   cd $_pkgname-$pkgver
 
-  python -m pyproject2setuppy.main pytest
+  python setup.py pytest
 
   mypy -p fastapi
 }
@@ -62,7 +63,7 @@
 package() {
   cd $_pkgname-$pkgver
 
-  python -m install --skip-build -d "$pkgdir"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 
   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list