git: 89c13c670029 - main - sysutils/py-hared: Fix build with setuptools 58.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:51:01 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=89c13c670029a7907172623c66fe73841b19be33
commit 89c13c670029a7907172623c66fe73841b19be33
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 13:34:28 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:38:22 +0000
sysutils/py-hared: Fix build with setuptools 58.0.0+
- While I'm here, fix setup.py
- Bump PORTREVISION for package change
===> Configuring for py310-hared-1.0_1
/usr/local/lib/python3.10/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'lassifiers'
warnings.warn(msg)
running config
===> Building for py310-hared-1.0_1
/usr/local/lib/python3.10/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'lassifiers'
warnings.warn(msg)
With hat: python
---
sysutils/py-hared/Makefile | 2 +-
sysutils/py-hared/files/patch-2to3 | 30 ++++++++++++++++++++++++++++++
sysutils/py-hared/files/patch-setup.py | 11 +++++++++++
3 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/sysutils/py-hared/Makefile b/sysutils/py-hared/Makefile
index 83d727b22bba..643a59ca7045 100644
--- a/sysutils/py-hared/Makefile
+++ b/sysutils/py-hared/Makefile
@@ -1,6 +1,6 @@
PORTNAME= hared
PORTVERSION= 1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/sysutils/py-hared/files/patch-2to3 b/sysutils/py-hared/files/patch-2to3
new file mode 100644
index 000000000000..6dd4496c906e
--- /dev/null
+++ b/sysutils/py-hared/files/patch-2to3
@@ -0,0 +1,30 @@
+--- hared/__init__.py.orig 2018-03-26 17:30:13 UTC
++++ hared/__init__.py
+@@ -4,7 +4,7 @@ import json
+ try:
+ from configparser import ConfigParser
+ except ImportError:
+- from ConfigParser import ConfigParser
++ from configparser import ConfigParser
+
+ __author__ = 'Jan-Piet Mens <jp()mens.de>'
+
+@@ -30,8 +30,8 @@ class Hare():
+ pass
+
+ def printconfig(self):
+- print "Listening for UDP on %s:%d" % (self.listenhost, self.listenport)
+- print "MQTT broker configured to %s:%d on %s" % (self.mqtthost, self.mqttport, self.topic)
++ print("Listening for UDP on %s:%d" % (self.listenhost, self.listenport))
++ print("MQTT broker configured to %s:%d on %s" % (self.mqtthost, self.mqttport, self.topic))
+
+ def run(config='/usr/local/etc/hared.ini'):
+ h = Hare(config)
+@@ -53,6 +53,6 @@ def run(config='/usr/local/etc/hared.ini'):
+ continue
+
+ if h.verbose:
+- print js
++ print(js)
+
+ mqtt.single(h.topic, js, hostname=h.mqtthost, port=h.mqttport)
diff --git a/sysutils/py-hared/files/patch-setup.py b/sysutils/py-hared/files/patch-setup.py
new file mode 100644
index 000000000000..227adb5f89c3
--- /dev/null
+++ b/sysutils/py-hared/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2018-03-26 17:22:26 UTC
++++ setup.py
+@@ -8,7 +8,7 @@ setup(name='hared',
+ version='1.0',
+ description='hare daemon',
+ long_description=readme(),
+- lassifiers=[
++ classifiers=[
+ 'Development Status :: 3 - Alpha',
+ 'License :: OSI Approved :: MIT License',
+ 'Programming Language :: Python :: 2.7',