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

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


    Date: Wednesday, June 3, 2020 @ 20:28:29
  Author: ffy00
Revision: 638557

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  139 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 70 insertions(+), 69 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-03 20:28:18 UTC (rev 638556)
+++ PKGBUILD	2020-06-03 20:28:29 UTC (rev 638557)
@@ -1,69 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=fastapi
-pkgname=python-$_pkgname
-pkgver=0.55.1
-pkgrel=1
-pkgdesc='FastAPI framework, high performance, easy to learn, fast to code, ready for production'
-arch=('any')
-url='https://github.com/tiangolo/fastapi'
-license=('MIT')
-depends=('python-starlette' 'python-pydantic')
-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')
-# 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'
-              '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')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('2a529f2eafe04ee78e8feb54dd53b36af08ee3c90f06fbb9207c724d52b520c2a3c2ea0db4793a32b45d545aed53d4fb388e0b90364bd4b36dfc4f391d84ca34')
-
-# TODO: package python-multipart
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  # don't pin starlette dependency
-  sed -i 's|starlette.*"|starlette"|' pyproject.toml
-
-  # needs python-databases
-  rm tests/test_tutorial/test_async_sql_databases/test_tutorial001.py
-
-  # need python-multipart
-  rm tests/test_forms_from_non_typing_sequences.py
-  rm tests/test_security_oauth2{,_optional}.py
-  rm tests/test_tutorial/test_request_files/test_tutorial00{1,2}.py
-  rm tests/test_tutorial/test_request_forms/test_tutorial001.py
-  rm tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py
-  rm tests/test_tutorial/test_security/test_tutorial00{3,5}.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-
-  python -m build
-  python -m install --cache dist/*.whl
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  python -m pyproject2setuppy.main pytest
-
-  mypy -p fastapi
-}
-
-package() {
-  cd $_pkgname-$pkgver
-
-  python -m install --skip-build -d "$pkgdir"
-
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-

Copied: python-fastapi/repos/community-any/PKGBUILD (from rev 638556, python-fastapi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-06-03 20:28:29 UTC (rev 638557)
@@ -0,0 +1,70 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=fastapi
+pkgname=python-$_pkgname
+pkgver=0.55.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'
+license=('MIT')
+depends=('python-starlette' 'python-pydantic')
+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-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-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-pyproject2setuppy'
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('2a529f2eafe04ee78e8feb54dd53b36af08ee3c90f06fbb9207c724d52b520c2a3c2ea0db4793a32b45d545aed53d4fb388e0b90364bd4b36dfc4f391d84ca34')
+
+# TODO: package python-multipart
+
+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
+
+  # needs python-databases
+  rm tests/test_tutorial/test_async_sql_databases/test_tutorial001.py
+
+  # need python-multipart
+  rm tests/test_forms_from_non_typing_sequences.py
+  rm tests/test_security_oauth2{,_optional}.py
+  rm tests/test_tutorial/test_request_files/test_tutorial00{1,2}.py
+  rm tests/test_tutorial/test_request_forms/test_tutorial001.py
+  rm tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py
+  rm tests/test_tutorial/test_security/test_tutorial00{3,5}.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+
+  mypy -p fastapi
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  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