git: 855299775d21 - main - databases/py-ormar: Update to 0.12.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Oct 2023 20:03:10 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=855299775d211dfbfbaccbc9be5be4a8b9e37b37 commit 855299775d211dfbfbaccbc9be5be4a8b9e37b37 Author: Goran Mekić <meka@tilda.center> AuthorDate: 2023-10-04 06:40:06 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-10-04 20:01:39 +0000 databases/py-ormar: Update to 0.12.2 Changelog: https://github.com/collerek/ormar/releases/tag/0.12.2 PR: 273016 --- databases/py-ormar/Makefile | 25 ++++++++++++---------- databases/py-ormar/distinfo | 6 +++--- .../patch-benchmarks_test__benchmark__init.py | 15 +++++++++++++ 3 files changed, 32 insertions(+), 14 deletions(-) diff --git a/databases/py-ormar/Makefile b/databases/py-ormar/Makefile index d6d6972d416d..deb51418561e 100644 --- a/databases/py-ormar/Makefile +++ b/databases/py-ormar/Makefile @@ -1,7 +1,6 @@ PORTNAME= ormar -DISTVERSION= 0.12.1 +DISTVERSION= 0.12.2 CATEGORIES= databases python -MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= meka@tilda.center @@ -11,16 +10,25 @@ WWW= https://github.com/collerek/ormar LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}databases>=0.3.2,<0.8.0:databases/py-databases@${PY_FLAVOR} \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}databases>=0.3.2,<0.9.0:databases/py-databases@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydantic>=1.6.1,<1.11.0:devel/py-pydantic@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlalchemy14>=1.4.0:databases/py-sqlalchemy14@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7:devel/py-typing-extensions@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fastapi>=0:www/py-fastapi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=0:devel/py-pytest-benchmark@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}poetry>=0:devel/py-poetry@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}nest-asyncio>=0:devel/py-nest-asyncio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}asyncpg>=0:databases/py-asyncpg@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pymysql>=0:databases/py-pymysql@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}asgi-lifespan>=0:devel/py-asgi-lifespan@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist concurrent distutils +USE_GITHUB= YES +USE_PYTHON= autoplist concurrent pep517 pytest +GH_ACCOUNT= collerek +PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}poetry>=0:devel/py-poetry@${PY_FLAVOR} TEST_ENV= PYTHONPATH=${WRKSRC}/src @@ -32,7 +40,7 @@ OPTIONS_GROUP_DATABASES= MYSQL PGSQL SQLITE OPTIONS_DEFAULT= SQLITE DATABASES_DESC= Database Support -CRYPTO_DESC= Support for password encryption +CRYPTO_DESC= Support for password encryption CRYPTO_USE= PYTHON=cryptography SQLITE_USES= sqlite SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiosqlite>0:databases/py-aiosqlite@${PY_FLAVOR} @@ -43,9 +51,4 @@ PGSQL_USES= pgsql PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asyncpg>0:databases/py-asyncpg@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${PY_FLAVOR} -# Tests are not shipped with the package. -# Upstream issue: https://github.com/collerek/ormar/issues/698 -# do-test: -# cd ${WRKSRC} && ${SETENV} ${TEST_ENV} TEST_DATABASE_URLS="sqlite:///testsuite" ${PYTHON_CMD} -m pytest -v -rs -o addopts= - .include <bsd.port.mk> diff --git a/databases/py-ormar/distinfo b/databases/py-ormar/distinfo index 65e1a6ed3f26..364d6533697d 100644 --- a/databases/py-ormar/distinfo +++ b/databases/py-ormar/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1676173555 -SHA256 (ormar-0.12.1.tar.gz) = d172b00398fc272ae1dde373b1ee9774f52e77efebeb57956f0b03aed3bc154f -SIZE (ormar-0.12.1.tar.gz) = 131163 +TIMESTAMP = 1696062965 +SHA256 (collerek-ormar-0.12.2_GH0.tar.gz) = dc67369d2eff330655adc30ff4ba84fc6c56421b233142e3c8306eb19d6a2fc0 +SIZE (collerek-ormar-0.12.2_GH0.tar.gz) = 375209 diff --git a/databases/py-ormar/files/patch-benchmarks_test__benchmark__init.py b/databases/py-ormar/files/patch-benchmarks_test__benchmark__init.py new file mode 100644 index 000000000000..3f7ee1af73c8 --- /dev/null +++ b/databases/py-ormar/files/patch-benchmarks_test__benchmark__init.py @@ -0,0 +1,15 @@ +--- benchmarks/test_benchmark_init.py.orig 2023-10-04 07:21:13 UTC ++++ benchmarks/test_benchmark_init.py +@@ -1,3 +1,4 @@ ++import asyncio + import random + import string + +@@ -20,6 +21,7 @@ async def test_initializing_models(aio_benchmark, num_ + for i in range(0, num_models) + ] + assert len(authors) == num_models ++ return asyncio.sleep(0) + + await initialize_models(num_models) +