Skip to content

Commit

Permalink
devel/py-qcs-api-client: Fix BUILD_DEPENDS
Browse files Browse the repository at this point in the history
- While I'm here, fix WWW

Poetry is packing and dependency management utility for Python. It should not be
used as BUILD_DEPENDS. Its PEP517 build backend is devel/py-poetry-core.
Therefore, I fixed pyproject.toml and sent the pull request as well.

Approved by:	portmgr (blanket)
With hat:	python
Reference:	https://github.com/rigetti/qcs-api-client-python/blob/v0.21.5/pyproject.toml#L55-L57
  • Loading branch information
sunpoet committed Sep 5, 2023
1 parent 11f878d commit 5fa5d34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devel/py-qcs-api-client/Makefile
Expand Up @@ -7,12 +7,12 @@ DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Client library for accessing the Rigetti QCS API
WWW= https://github.com/rigetti/pyquil
WWW= https://github.com/rigetti/qcs-api-client-python

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry>0:devel/py-poetry@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=21.3.0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0:www/py-httpx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}iso8601>=1.0.2:devel/py-iso8601@${PY_FLAVOR} \
Expand Down
10 changes: 10 additions & 0 deletions devel/py-qcs-api-client/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
--- pyproject.toml.orig 2023-05-03 18:28:26 UTC
+++ pyproject.toml
@@ -53,5 +53,5 @@ multi_line_output = 3
include_trailing_comma = true

[build-system]
-requires = ["poetry>=1.0"]
-build-backend = "poetry.masonry.api"
+requires = ["poetry-core>=1.0.0"]
+build-backend = "poetry.core.masonry.api"

0 comments on commit 5fa5d34

Please sign in to comment.