Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', |