git: 6d29eae5d57e - main - net/py-httpstat: Fix build with Python 3.14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Jun 2026 11:26:39 UTC
The branch main has been updated by dvl:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6d29eae5d57eaaf3b0cab5f9b807314c7da9846b
commit 6d29eae5d57eaaf3b0cab5f9b807314c7da9846b
Author: Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2026-06-13 11:24:48 +0000
Commit: Dan Langille <dvl@FreeBSD.org>
CommitDate: 2026-06-13 11:24:48 +0000
net/py-httpstat: Fix build with Python 3.14
Fix the error: AttributeError: 'Constant' object has no attribute 's'
Maintainer back to ports@ as current maintainer no longer uses this.
PR: 295020
---
net/py-httpstat/Makefile | 4 ++--
net/py-httpstat/files/patch-setup.py | 11 +++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/net/py-httpstat/Makefile b/net/py-httpstat/Makefile
index 918781468805..9419b1ddbd48 100644
--- a/net/py-httpstat/Makefile
+++ b/net/py-httpstat/Makefile
@@ -1,10 +1,10 @@
PORTNAME= httpstat
PORTVERSION= 1.3.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= dbaio@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Curl statistics made simple
WWW= https://github.com/reorx/httpstat
diff --git a/net/py-httpstat/files/patch-setup.py b/net/py-httpstat/files/patch-setup.py
new file mode 100644
index 000000000000..1ca213795fb4
--- /dev/null
+++ b/net/py-httpstat/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2020-10-15 12:31:26 UTC
++++ setup.py
+@@ -14,7 +14,7 @@ def get_version():
+ with open(filename) as input_file:
+ for line in input_file:
+ if line.startswith('__version__'):
+- return ast.parse(line).body[0].value.s
++ return ast.parse(line).body[0].value.value
+
+
+ def get_long_description():