1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

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
This commit is contained in:
Po-Chuan Hsieh 2022-03-25 21:34:28 +08:00
parent 4d0c5b9d39
commit 89c13c6700
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
3 changed files with 42 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= hared
PORTVERSION= 1.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

View File

@ -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)

View File

@ -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',