Date: Friday, November 4, 2022 @ 08:15:35
Author: dvzrv
Revision: 1341788
archrelease: copy trunk to community-any
Added:
python-fastapi/repos/community-any/PKGBUILD
(from rev 1341787, python-fastapi/trunk/PKGBUILD)
Deleted:
python-fastapi/repos/community-any/PKGBUILD
----------+
PKGBUILD | 200 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 100 insertions(+), 100 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-04 08:15:19 UTC (rev 1341787)
+++ PKGBUILD 2022-11-04 08:15:35 UTC (rev 1341788)
@@ -1,100 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-# Maintainer: Filipe Laíns (FFY00) <[email protected]>
-
-_name=fastapi
-pkgname=python-$_name
-pkgver=0.85.2
-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-pydantic python-starlette)
-optdepends=(
- 'hypercorn: for Hypercorn as ASGI server'
- 'python-email-validator: for email validation'
- 'python-itsdangerous: for SessionMiddleware support'
- 'python-jinja: for default starlette template configuration'
- 'python-orjson: for ORJSONResponse'
- 'python-python-multipart: for form parsing support'
- 'python-pyyaml: for starlette SchemaGenerator support'
- 'python-requests: for TestClient support'
- 'python-ujson: for faster JSON parsing and UJSONResponse'
- 'uvicorn: for Uvicorn as ASGI server'
-)
-makedepends=(python-build python-installer python-hatchling python-wheel)
-checkdepends=(
- # test dependencies
- python-aiosqlite
- python-anyio
- python-databases
- python-flask
- python-httpx
- python-peewee
- python-pytest
- python-pytest-cov
- python-sqlalchemy
- python-trio
-
- # optdepends
- python-email-validator
- python-itsdangerous
- python-jinja
- python-orjson
- python-python-multipart
- python-pyyaml
- python-requests
- python-ujson
- uvicorn
-
- # dev depends
- python-bcrypt
- python-cryptography
- python-jose
- python-passlib
-)
-source=($_name-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
-sha512sums=('6b8ae2b7cc30b4ebbe6d6bd8c41a8eb68ff5fabb4084c4ea15f8fe56d1fae76e7295fa8ce8eea06c8e96bd73ed14f8dffd4eaadc3b9d0df6646c19510d86cde5')
-b2sums=('e46692b8a9086884f68692cacdc9ea9562f7ba381b1866ab13d81b60818f85d8b0dd6de2341ad8080674d40675ca419495c510a257c7d84d89fc764ac7bfc196')
-
-prepare() {
- cd $_name-$pkgver
- # do not pin starlette dependency
- sed -i 's|starlette.*"|starlette"|' pyproject.toml
-}
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
- local _site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
- local _deselected=(
- --deselect
docs_src/sql_databases/sql_app_py310/tests/test_sql_app.py::test_create_user
- --deselect
docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py::test_create_user
- # disable tests that break due to our python-starlette being too new and
using python-httpx instead of python-requests
- --deselect tests/test_enforce_once_required_parameter.py::test_get_invalid
- --deselect tests/test_extra_routes.py::test_delete
- --deselect
tests/test_generate_unique_id_function.py::test_warn_duplicate_operation_id
- --deselect tests/test_get_request_body.py::test_get_with_body
- --deselect tests/test_tuples.py::test_tuple_form_valid
- --deselect
tests/test_tutorial/test_async_sql_databases/test_tutorial001.py::test_create_read
- --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001.py::test[/items-cookies2-200-expected_response2]
- --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001.py::test[/items-cookies3-200-expected_response3]
- --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001_py310.py::test[/items-cookies2-200-expected_response2]
- --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001_py310.py::test[/items-cookies3-200-expected_response3]
- )
-
- cd $_name-$pkgver
- # install to temporary location, as importlib is used
- python -m installer --destdir=test_dir dist/*.whl
- export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
- pytest -vv -p no:warnings "${_deselected[@]}"
-}
-
-package() {
- cd $_name-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
-}
Copied: python-fastapi/repos/community-any/PKGBUILD (from rev 1341787,
python-fastapi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-04 08:15:35 UTC (rev 1341788)
@@ -0,0 +1,100 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+
+_name=fastapi
+pkgname=python-$_name
+pkgver=0.86.0
+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-pydantic python-starlette)
+optdepends=(
+ 'hypercorn: for Hypercorn as ASGI server'
+ 'python-email-validator: for email validation'
+ 'python-itsdangerous: for SessionMiddleware support'
+ 'python-jinja: for default starlette template configuration'
+ 'python-orjson: for ORJSONResponse'
+ 'python-python-multipart: for form parsing support'
+ 'python-pyyaml: for starlette SchemaGenerator support'
+ 'python-requests: for TestClient support'
+ 'python-ujson: for faster JSON parsing and UJSONResponse'
+ 'uvicorn: for Uvicorn as ASGI server'
+)
+makedepends=(python-build python-installer python-hatchling python-wheel)
+checkdepends=(
+ # test dependencies
+ python-aiosqlite
+ python-anyio
+ python-databases
+ python-flask
+ python-httpx
+ python-peewee
+ python-pytest
+ python-pytest-cov
+ python-sqlalchemy
+ python-trio
+
+ # optdepends
+ python-email-validator
+ python-itsdangerous
+ python-jinja
+ python-orjson
+ python-python-multipart
+ python-pyyaml
+ python-requests
+ python-ujson
+ uvicorn
+
+ # dev depends
+ python-bcrypt
+ python-cryptography
+ python-jose
+ python-passlib
+)
+source=($_name-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
+sha512sums=('d2ea8ec0085d90c8dfe2216444eec1478869651b750b7ea660c93b36ea6fe3a9721bd84973587601d94fd433d9e20b19d92a3c86143b74c0740fe063cb746d45')
+b2sums=('2e878dfde812ad0dc9de666d6edd1a1ce56b5db48a0b438840fb7e6e82ccfe939ab5cf593aea44e88b05af52f3e5c02755f7187689cb0ed26bda0db247957f4d')
+
+prepare() {
+ cd $_name-$pkgver
+ # do not pin starlette dependency
+ sed -i 's|starlette.*"|starlette"|' pyproject.toml
+}
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ local _site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ local _deselected=(
+ --deselect
docs_src/sql_databases/sql_app_py310/tests/test_sql_app.py::test_create_user
+ --deselect
docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py::test_create_user
+ # disable tests that break due to our python-starlette being too new and
using python-httpx instead of python-requests
+ --deselect tests/test_enforce_once_required_parameter.py::test_get_invalid
+ --deselect tests/test_extra_routes.py::test_delete
+ --deselect
tests/test_generate_unique_id_function.py::test_warn_duplicate_operation_id
+ --deselect tests/test_get_request_body.py::test_get_with_body
+ --deselect tests/test_tuples.py::test_tuple_form_valid
+ --deselect
tests/test_tutorial/test_async_sql_databases/test_tutorial001.py::test_create_read
+ --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001.py::test[/items-cookies2-200-expected_response2]
+ --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001.py::test[/items-cookies3-200-expected_response3]
+ --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001_py310.py::test[/items-cookies2-200-expected_response2]
+ --deselect
tests/test_tutorial/test_cookie_params/test_tutorial001_py310.py::test[/items-cookies3-200-expected_response3]
+ )
+
+ cd $_name-$pkgver
+ # install to temporary location, as importlib is used
+ python -m installer --destdir=test_dir dist/*.whl
+ export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+ pytest -vv -p no:warnings "${_deselected[@]}"
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}