Download raw body.
[update]www/py-requests-file: update to 2.1.0
On 2025/07/31 02:08, wen heping wrote:
> Hi,
>
> Here is a simple patch for www/py-requests-file to update to 2.1.0.
> It build well and run well on my amd64-current system.
> In all 11 tests, 10 passed and 1 skipped.
> -DISTNAME = requests-file-${MODPY_DISTV}
> +DISTNAME = requests_file-${MODPY_DISTV}
> PKGNAME = py-${DISTNAME}
DISTNAME must maintain the same stem to avoid breaking updates.
Needs setuptools_scm now. (Watch the screen after 'make fake', we
detect this in many cases and print a warning now).
We can remove TEST_DEPENDS while here; RUN_DEPENDS are added
automatically for python.port.mk.
ok with you gman?
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/py-requests-file/Makefile,v
diff -u -p -r1.5 Makefile
--- Makefile 29 Apr 2025 10:40:31 -0000 1.5
+++ Makefile 1 Aug 2025 12:37:35 -0000
@@ -1,10 +1,8 @@
COMMENT = file transport adapter for requests
-MODPY_DISTV = 1.5.1
-
-DISTNAME = requests-file-${MODPY_DISTV}
-PKGNAME = py-${DISTNAME}
-REVISION = 3
+MODPY_DISTV = 2.1.0
+DISTNAME = requests_file-${MODPY_DISTV}
+PKGNAME = py-${DISTNAME:S/_/-/}
CATEGORIES = www
@@ -16,12 +14,9 @@ MAINTAINER = George Rosamond <george@nyc
PERMIT_PACKAGE = Yes
MODULES = lang/python
-
MODPY_PI = Yes
-MODPY_PYBUILD = setuptools
+MODPY_PYBUILD = setuptools_scm
RUN_DEPENDS = www/py-requests
-
-TEST_DEPENDS = www/py-requests
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/py-requests-file/distinfo,v
diff -u -p -r1.1.1.1 distinfo
--- distinfo 16 Oct 2022 20:57:16 -0000 1.1.1.1
+++ distinfo 1 Aug 2025 12:37:35 -0000
@@ -1,2 +1,2 @@
-SHA256 (requests-file-1.5.1.tar.gz) = B9dCCNM4nQHDirie9AOvDP7GOVfVOgCB2OynONAkfY4=
-SIZE (requests-file-1.5.1.tar.gz) = 5668
+SHA256 (requests_file-2.1.0.tar.gz) = D1SaPzsGmUFawE0Wfpyzm8z7cwy4MrTSC+PZhnNW5lg=
+SIZE (requests_file-2.1.0.tar.gz) = 6891
[update]www/py-requests-file: update to 2.1.0