git: b66daab12a4b - main - www/py-arxiv: Update to 2.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 01 Nov 2023 02:17:08 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b66daab12a4bbc945515b61845453a9d2b13d953

commit b66daab12a4bbc945515b61845453a9d2b13d953
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-01 01:50:43 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-01 02:08:31 +0000

    www/py-arxiv: Update to 2.0.0
    
    Changes:        https://github.com/lukasschwab/arxiv.py/releases
---
 www/py-arxiv/Makefile             |  5 +++--
 www/py-arxiv/distinfo             |  6 +++---
 www/py-arxiv/files/patch-setup.py | 11 +++++++++++
 3 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/www/py-arxiv/Makefile b/www/py-arxiv/Makefile
index c4172d547cea..ed77541f8f2c 100644
--- a/www/py-arxiv/Makefile
+++ b/www/py-arxiv/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	arxiv
-PORTVERSION=	1.4.8
+PORTVERSION=	2.0.0
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,7 +10,8 @@ WWW=		https://github.com/lukasschwab/arxiv.py
 
 LICENSE=	MIT
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}feedparser>=0:textproc/py-feedparser@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}feedparser>=6.0.10:textproc/py-feedparser@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.31.0:www/py-requests@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pdoc>=0:devel/py-pdoc@${PY_FLAVOR}
 
 USES=		python
diff --git a/www/py-arxiv/distinfo b/www/py-arxiv/distinfo
index e379262b1225..fa718b7f714c 100644
--- a/www/py-arxiv/distinfo
+++ b/www/py-arxiv/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1689398907
-SHA256 (arxiv-1.4.8.tar.gz) = 2a818ea749eaa62a6e24fc31d53b769b4d33ff55cfc5dda7c7b7d309a3b29373
-SIZE (arxiv-1.4.8.tar.gz) = 17104
+TIMESTAMP = 1698341091
+SHA256 (arxiv-2.0.0.tar.gz) = 97f910dadf97169793ab3fcf12e75d23cb9dac4dc7c16de8b09492cde179da9f
+SIZE (arxiv-2.0.0.tar.gz) = 16499
diff --git a/www/py-arxiv/files/patch-setup.py b/www/py-arxiv/files/patch-setup.py
new file mode 100644
index 000000000000..0e7140ea8abd
--- /dev/null
+++ b/www/py-arxiv/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2023-10-17 08:50:39 UTC
++++ setup.py
+@@ -11,7 +11,7 @@ setup(
+     packages=["arxiv"],
+     # dependencies
+     python_requires=">=3.7",
+-    install_requires=["feedparser==6.0.10", "requests==2.31.0"],
++    install_requires=["feedparser>=6.0.10", "requests>=2.31.0"],
+     tests_require=["pytest", "pdoc", "ruff"],
+     # metadata for upload to PyPI
+     author="Lukas Schwab",