git: fba609184fb6 - main - devel/py-requirements-detector: Allow build with py-astroid 3.*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Feb 2024 15:24:08 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fba609184fb6eddc70fef5196fdfd260c5156fda
commit fba609184fb6eddc70fef5196fdfd260c5156fda
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:42:58 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:07:45 +0000
devel/py-requirements-detector: Allow build with py-astroid 3.*
- Bump PORTREVISION for package change
---
devel/py-requirements-detector/Makefile | 3 ++-
devel/py-requirements-detector/files/patch-pyproject.toml | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/devel/py-requirements-detector/Makefile b/devel/py-requirements-detector/Makefile
index 85c3c012b453..332d252a6cb4 100644
--- a/devel/py-requirements-detector/Makefile
+++ b/devel/py-requirements-detector/Makefile
@@ -1,5 +1,6 @@
PORTNAME= requirements-detector
PORTVERSION= 1.2.2
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,7 +14,7 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astroid>=2.0<3:devel/py-astroid@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astroid>=2.0:devel/py-astroid@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}semver>=3.0.0<4:devel/py-semver@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}toml>=0.10.2<0.11:textproc/py-toml@${PY_FLAVOR}
diff --git a/devel/py-requirements-detector/files/patch-pyproject.toml b/devel/py-requirements-detector/files/patch-pyproject.toml
new file mode 100644
index 000000000000..7867642ffdaf
--- /dev/null
+++ b/devel/py-requirements-detector/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2023-05-20 04:52:03 UTC
++++ pyproject.toml
+@@ -29,7 +29,7 @@ detect-requirements = 'requirements_detector.run:run'
+
+ [tool.poetry.dependencies]
+ python = ">=3.7,<4.0"
+-astroid = "^2.0"
++astroid = ">=2.0"
+ packaging = ">=21.3"
+ toml = "^0.10.2"
+ semver = "^3.0.0"