diff --git a/devel/py-connexion/Makefile b/devel/py-connexion/Makefile index b2618f8a0f5a..862a9cbeb208 100644 --- a/devel/py-connexion/Makefile +++ b/devel/py-connexion/Makefile @@ -1,38 +1,49 @@ PORTNAME= connexion -DISTVERSION= 3.2.0 +DISTVERSION= 3.3.0 CATEGORIES= devel python -MASTER_SITES= PYPI # no tests PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Connexion: API first applications with OpenAPI/Swagger WWW= https://connexion.readthedocs.io/en/latest/ \ https://github.com/spec-first/connexion LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0.0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}asgiref>=3.4:www/py-asgiref@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}httpx>=0.23:www/py-httpx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}inflection>=0.3.1:devel/py-inflection@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.17.3:devel/py-jsonschema@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-multipart>=0.0.15:www/py-python-multipart@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.27:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}starlette>=0.35:www/py-starlette@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.6.1:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}werkzeug>=2.2.1:www/py-werkzeug@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>=5.1:devel/py-pyyaml@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.18.3:devel/py-pytest-asyncio@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.12.1:devel/py-pytest-cov@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.12.1:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}a2wsgi>=1.7:www/py-a2wsgi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flask>=2.2:www/py-flask@${PY_FLAVOR} USES= python -USE_PYTHON= pep517 autoplist pytest # 3 tests fail, see https://github.com/youknowone/wirerope/issues/22 +USE_PYTHON= pep517 autoplist pytest -#USE_GITHUB= yes -#GH_ACCOUNT= spec-first +USE_GITHUB= yes +GH_ACCOUNT= spec-first +GH_TAGNAME= 3.3.0 + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}:${WRKSRC} +TEST_ARGS= -p no:aiomisc -p no:relaxed \ + --ignore=tests/api/test_bootstrap.py \ + --ignore=tests/api/test_responses.py \ + --ignore=tests/test_mock.py \ + --ignore=tests/test_mock2.py NO_ARCH= yes +# tests as of 3.3.0: 611 passed, 1 warning + .include diff --git a/devel/py-connexion/distinfo b/devel/py-connexion/distinfo index f3bf1cb84941..13e59c466d24 100644 --- a/devel/py-connexion/distinfo +++ b/devel/py-connexion/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1758875567 -SHA256 (connexion-3.2.0.tar.gz) = 0715d4a0393437aa2a48c144756360f9b5292635a05fd15c38cbbaf04ef5acb9 -SIZE (connexion-3.2.0.tar.gz) = 86417 +TIMESTAMP = 1777557131 +SHA256 (spec-first-connexion-3.3.0_GH0.tar.gz) = ee3a9ae364a0af8ecf19064cb5882833aed9378981ca9856b15422a8025bbcf9 +SIZE (spec-first-connexion-3.3.0_GH0.tar.gz) = 2065398 diff --git a/devel/py-connexion/files/patch-pyproject.toml b/devel/py-connexion/files/patch-pyproject.toml new file mode 100644 index 000000000000..7acf7d2f6f64 --- /dev/null +++ b/devel/py-connexion/files/patch-pyproject.toml @@ -0,0 +1,15 @@ +-- Fix version in pyproject.toml for GitHub source +-- On the main development branch, the version is set to 3.0.dev0 +-- We need to patch it to 3.3.0 to match the tag and distversion + +--- pyproject.toml.orig ++++ pyproject.toml +@@ -1,7 +1,7 @@ + [tool.poetry] + name = "connexion" +-version = "3.0.dev0" ++version = "3.3.0" + description = "Connexion - API first applications with OpenAPI/Swagger" + readme = "README.md" + keywords = ["api", "swagger", "openapi"] + license = "Apache-2.0"