[arch-commits] Commit in python-fastapi/repos/community-any (PKGBUILD PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Wed Jul 22 18:31:22 UTC 2020
Date: Wednesday, July 22, 2020 @ 18:31:21
Author: ffy00
Revision: 664869
archrelease: copy trunk to community-any
Added:
python-fastapi/repos/community-any/PKGBUILD
(from rev 664868, python-fastapi/trunk/PKGBUILD)
Deleted:
python-fastapi/repos/community-any/PKGBUILD
----------+
PKGBUILD | 140 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 70 insertions(+), 70 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-22 18:29:26 UTC (rev 664868)
+++ PKGBUILD 2020-07-22 18:31:21 UTC (rev 664869)
@@ -1,70 +0,0 @@
-# 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
-}
-
Copied: python-fastapi/repos/community-any/PKGBUILD (from rev 664868, python-fastapi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-22 18:31:21 UTC (rev 664869)
@@ -0,0 +1,70 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=fastapi
+pkgname=python-$_pkgname
+pkgver=0.60.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-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=('6f6fa75f9de50e8d03d195d0dd32adc42e0cf7409d04a422de696b3754ee2eae6788e6abe3296700e6ee29c5213344462e1768a929a8093309a0ad5e24c176ea')
+
+# 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