Created attachment 254066 [details] Add new port devel/py-gql Add new port devel/py-gql a python GraphQL client. This is required for devel/py-python-gitlab v4.11.0. portlint: ok. looks fine. testport: ok. 14amd64. unittest: 11 failed, 547 passed, 9 skipped, 446 warnings in 32.12s. Most of the failed test are due to what appear to be pinned versions differences with upstream and ports, while a rest are fix upstream in unreleased versions. Testing with devel/py-python-gitlab enabling GRAPHQL option and removing patch to disable tests successfully passes graphql tests: # make test ... tests/unit/test_graphql.py::test_import_error_includes_message PASSED [ 95%] tests/unit/test_graphql.py::test_graphql_as_context_manager_exits PASSED [ 95%] tests/unit/test_graphql.py::test_graphql_retries_on_429_response PASSED [ 95%] tests/unit/test_graphql.py::test_graphql_raises_when_max_retries_exceeded PASSED [ 95%] tests/unit/test_graphql.py::test_graphql_raises_on_401_response PASSED [ 95%] ... ==================================================== 1080 passed, 3 skipped in 5.70s === ... ...
Looks good at first glance. Doing a test build on 13/aarch64.
I got a package failure in poudriere. https://nov24:lgxSrhwY1iGLnZUc0Vls5@pkg.thuis.klop.ws/data/freebsd133-custom/2024-11-29_10h39m19s/logs/errors/py311-gql-3.5.0.log [00:01:57] =======================<phase: package >============================ [00:01:57] ===== env: DEVELOPER_MODE=yes 'PKG_NOTES=build_timestamp built_by' 'PKG_NOTE_build_timestamp=2024-11-29T10:59:01+0000' 'PKG_NOTE_built_by=poudriere-git-3.4.2' STRICT_DEPENDS=yes USER=nobody UID=65534 GID=65534 [00:01:57] ===> Testing for py311-gql-3.5.0 [00:01:57] ===> py311-gql-3.5.0 depends on package: py311-aiofiles>0 - not found [00:01:57] ===> License APACHE20 accepted by the user [00:01:57] ===> py311-aiofiles-23.2.1 depends on file: /usr/local/sbin/pkg - found [00:01:57] => aiofiles-23.2.1.tar.gz doesn't seem to exist in /portdistfiles/. [00:01:57] => /portdistfiles/ is not writable by you; cannot fetch. [00:01:57] *** Error code 1 This looks like https://github.com/freebsd/poudriere/issues/1131 and the workaround of BUILD_DEPENDS+=${TEST_DEPENDS} makes this work better in my setup. I will commit in a moment.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d640ceb92ae91f33694c4faa43bd9a24956a6487 commit d640ceb92ae91f33694c4faa43bd9a24956a6487 Author: Derek Schrock <dereks@lifeofadishwasher.com> AuthorDate: 2024-11-29 12:15:28 +0000 Commit: Ronald Klop <ronald@FreeBSD.org> CommitDate: 2024-11-29 12:20:37 +0000 devel/py-gql: new port This is a GraphQL client for Python 3.8+. Plays nicely with graphene, graphql-core, graphql-js and any other GraphQL implementation compatible with the spec. This is required for devel/py-python-gitlab v4.11.0. PR: 281910 devel/Makefile | 1 + devel/py-gql/Makefile (new) | 61 ++++++++++++++++++++++++++++++++++++++++++++ devel/py-gql/distinfo (new) | 3 +++ devel/py-gql/pkg-descr (new) | 3 +++ 4 files changed, 68 insertions(+)
Thanks for your contribution.