Skip to content

Commit 9716985

Browse files
committed
py-irclib: update to 20.4.0.
v20.4.0 ======= Features -------- - Replace deprecated ssl.wrap_socket with SSLContext.wrap_socket and update examples in connection.py docs. (#216) v20.3.1 ======= No significant changes. v20.3.0 ======= Features -------- - Added support for SASL login. (#195) Bugfixes -------- - Better handling of escape sequences in message tags. (#205) v20.2.0 ======= Features -------- - Require Python 3.8 or later. v20.1.1 ======= * #213: Pinned against jaraco.text 3.10 due to change in interface. v20.1.0 ======= * #196: In irc.bot, avoid hanging idle when the first connection attempt fails. v20.0.0 ======= * ``SingleServerIRCBot`` no longer accepts ``reconnection_interval`` as a parameter. * Added server support for NOTICE commands. * Require Python 3.7 or later. v19.0.1 ======= * #176: Fix issues with version number reporting. Restored version version number reporting in bot and client. v19.0.0 ======= * ``irc.client`` no longer exposes a ``VERSION`` or ``VERSION_STRING``. To get the version, call ``importlib.metadata.version('irc')`` directly. v18.0.0 ======= * Require Python 3.6 or later. 17.1 ==== * Rely on `importlib_metadata <https://pypi.org/project/importlib_metadata/>`_ for loading version from metadata. Removes implicit dependency on setuptools and pkg_resources. * #158: The AsyncIO server now accepts a connection factory to enable features like SSL and IPv6 support. * #155: ``SimpleIRCClient`` now has a ``dcc`` method for initiating and associating a DCCConnection object with the client. ``DCCConnection.listen`` now accepts a ``address`` parameter. Deprecated ``SimpleIRCClient.dcc_listen`` and ``SimpleIRCClient.dcc_connect`` in favor of the better separation of concerns. Clients should replace:: client.dcc_connect(addr, port, type) client.dcc_listen(type) with:: client.dcc(type).connect(addr, port) client.dcc(type).listen() 17.0 ==== * Removed ``irc.buffer`` module, deprecated in 14.2. * #153: Drop support for Python 3.3 and 2.7. 16.4 ==== * Long Term Service release for Python 2.7. * #149: ``AioConnection.connect`` moved to coroutine, added disconnect handling for AsyncIO. 16.3 ==== * #140: Methods now use 'connection' and 'event' for parameter names. * #135 via #144: Added AsyncIO implementation. 16.2.1 ====== * Package refresh and cleanup. 16.2 ==== * #133: In ``irc.server``, add support for ISON. 16.1 ==== * #131: Add ``Connection.encode`` and ``Connection.transmit_encoding`` to enable encodings other than UTF-8 to be used when transmitting text. 16.0 ==== * Removed deprecated ``execute_*`` methods on ``Connection`` and ``Reactor`` as introduced in 15.0. * Fixed link in README. 15.1.1 ====== * New ``send_items`` method takes star args for simplicity in the syntax and usage. 15.1 ==== * Introduce ``ServerConnection.send_items``, consolidating common behavior across many methods previously calling ``send_raw``. 15.0.6 ====== * Now publish `documentation <https://python-irc.readthedocs.io/>`_ to Read The Docs. 15.0.5 ====== * #119: Handle broken pipe exception in IRCClient _send() (server.py). 15.0.4 ====== * #116: Correct invocation of execute_every. 15.0.3 ====== * #115: Fix AttributeError in ``execute_at`` in scheduling support. 15.0.2 ====== * #113: Use preferred scheduler in the bot implementation. 15.0.1 ====== * Deprecated calls to Connection.execute_* and Reactor.execute_*. Instead, call the equivalently-named methods on the reactor's scheduler. 15.0 ==== * The event scheduling functionality has been decoupled from the client.Reactor object. Now the reactor will construct a Scheduler from the scheduler_class property, which must be an instance of irc.schedule.IScheduler. The ``_on_schedule`` parameter is no longer accepted to the Reactor class. Implementations requiring a signal during scheduling should hook into the ``add`` method of the relevant scheduler class. * Moved the underlying scheduler implementation to `tempora <https://pypi.org/project/tempora>`_, allowing it to be re-used for other purposes. 14.2.2 ====== * Issue #98: Add an ugly hack to force ``build_sphinx`` command to have the requisite libraries to build module documentation. 14.2.1 ====== * Issue #97: Restore ``irc.buffer`` module for compatibility. * Issue #95: Update docs to remove missing or deprecated modules. * Issue #96: Declare Gitter support as a badge in the docs. 14.2 ==== * Moved buffer module to `jaraco.stream <https://pypi.python.org/pypi/jaraco.stream>`_ for use in other packages. 14.1 ==== * ``SingleServerIRCBot`` now accepts a ``recon`` parameter implementing a ReconnectStrategy. The new default strategy is ExponentialBackoff, implementing an exponential backoff with jitter. The ``reconnection_interval`` parameter is now deprecated but retained for compatibility. To customize the minimum time before reconnect, create a custom ExponentialBackoff instance or create another ReconnectStrategy object and pass that as the ``recon`` parameter. The ``reconnection_interval`` parameter will be removed in future versions. * Issue #82: The ``ExponentialBackoff`` implementation now protects from multiple scheduled reconnects, avoiding the issue where reconnect attempts accumulate exponentially when the bot is immediately disconnected by the server. 14.0 ==== * Dropped deprecated constructor ``connection.Factory.from_legacy_params``. Use the natural constructor instead. * Issue #83: ``connection.Factory`` no longer attempts to bind before connect unless a bind address is specified. 13.3.1 ====== * Now remove mode for owners, halfops, and admins when the user is removed from a channel. * Refactored the Channel class implementation for cleaner, less repetitive code. * Expanded tests coverage for Channel class. 13.3 ==== * Issue #75: In ``irc.bot``, add support for tracking admin status (mode 'a') in channels. Use ``channel.is_admin`` or ``channel.admins`` to identify admin users for a channel. * Removed deprecated irc.logging module. 13.2 ==== * Moved hosting to github. 13.1.1 ====== * Issue #67: Fix infinite recursion for ``irc.strings.IRCFoldedCase`` and ``irc.strings.lower``. 13.1 ==== * Issue #64: ISUPPORT PREFIX now retains the order of permissions for each prefix. 13.0 ==== * Updated ``schedule`` module to properly support timezone aware times and use them by default. Clients that rely on the timezone naïve datetimes may restore the old behavior by overriding the ``schedule.now`` and ``schedule.from_timestamp`` functions like so: schedule.from_timestamp = datetime.datetime.fromtimestamp schedule.now = datetime.datetime.now Clients that were previously patching ``schedule.DelayedCommand.now`` will need to instead patch the aforementioned module-global methods. The classmethod technique was a poor interface for effectively controlling timezone awareness, so was likely unused. Please file a ticket with the project for support with your client as needed. 12.4.2 ====== * Bump to jaraco.functools 1.5 to throttler failures in Python 2. 12.4 ==== * Moved ``Throttler`` class to `jaraco.functools <https://bitbucket.org/jaraco/jaraco.functools>`_ 1.4. 12.3 ==== * Pull Request #33: Fix apparent escaping issue with IRCv3 tags. 12.2 ==== * Pull Request #32: Add numeric for WHOX reply. * Issue #62 and Pull Request #34: Add support for tags in message processing and ``Event`` class. 12.1.2 ====== * Issue #59: Fixed broken references to irc.client members. * Issue #60: Fix broken initialization of ``irc.server.IRCClient`` on Python 2. 12.1.1 ====== * Issue #57: Better handling of Python 3 in testbot.py script. 12.1 ==== * Remove changelog from package metadata. 12.0 ==== * Remove dependency on jaraco.util. Instead depend on surgical packages. * Deprecated ``irc.logging`` in favor of ``jaraco.logging``. * Dropped support for Python 3.2.
1 parent d600cd3 commit 9716985

File tree

3 files changed

+39
-38
lines changed

3 files changed

+39
-38
lines changed

net/py-irclib/Makefile

+19-15
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
# $NetBSD: Makefile,v 1.19 2023/06/06 12:42:07 riastradh Exp $
1+
# $NetBSD: Makefile,v 1.20 2024/04/30 13:22:13 wiz Exp $
22

3-
DISTNAME= irc-11.1.1
4-
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/irc/irclib/}
5-
PKGREVISION= 1
6-
CATEGORIES= net python
7-
MASTER_SITES= ${MASTER_SITE_PYPI:=i/irc/}
8-
EXTRACT_SUFX= .zip
9-
EXTRACT_OPTS_ZIP= -aa -q -o
3+
DISTNAME= irc-20.4.0
4+
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/irc/irclib/}
5+
CATEGORIES= net python
6+
MASTER_SITES= ${MASTER_SITE_PYPI:=i/irc/}
107

118
MAINTAINER= imil@NetBSD.org
129
HOMEPAGE= http://python-irclib.sourceforge.net/
1310
COMMENT= Internet Relay Chat (IRC) protocol client library
1411
LICENSE= gnu-gpl-v2
1512

16-
USE_LANGUAGES= # none
13+
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
14+
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=0:../../devel/py-setuptools_scm
15+
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
16+
DEPENDS+= ${PYPKGPREFIX}-jaraco.collections>=0:../../devel/py-jaraco.collections
17+
DEPENDS+= ${PYPKGPREFIX}-jaraco.text>=3.10:../../textproc/py-jaraco.text
18+
DEPENDS+= ${PYPKGPREFIX}-jaraco.logging>=0:../../devel/py-jaraco.logging
19+
DEPENDS+= ${PYPKGPREFIX}-jaraco.functools>=1.20:../../devel/py-jaraco.functools
20+
DEPENDS+= ${PYPKGPREFIX}-jaraco.stream>=0:../../devel/py-jaraco.stream
21+
DEPENDS+= ${PYPKGPREFIX}-pytz>=0:../../time/py-pytz
22+
DEPENDS+= ${PYPKGPREFIX}-more-itertools>=0:../../devel/py-more-itertools
23+
DEPENDS+= ${PYPKGPREFIX}-tempora>=1.6:../../time/py-tempora
1724

18-
DEPENDS+= ${PYPKGPREFIX}-six>=1.5.2:../../lang/py-six
19-
DEPENDS+= ${PYPKGPREFIX}-jaraco_util>=10.0.2:../../devel/py-jaraco_util
20-
TOOL_DEPENDS+= ${PYPKGPREFIX}-hgtools>=5:../../devel/py-hgtools
25+
USE_LANGUAGES= # none
2126

22-
post-extract:
23-
cd ${WRKSRC} && ${CHMOD} ${SHAREMODE} irc.egg-info/*
27+
PYTHON_VERSIONS_INCOMPATIBLE= 27
2428

25-
.include "../../lang/python/egg.mk"
29+
.include "../../lang/python/wheel.mk"
2630
.include "../../mk/bsd.pkg.mk"

net/py-irclib/PLIST

+16-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
@comment $NetBSD: PLIST,v 1.7 2022/01/04 19:23:01 wiz Exp $
2-
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3-
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4-
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
5-
${PYSITELIB}/${EGG_INFODIR}/requires.txt
6-
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
1+
@comment $NetBSD: PLIST,v 1.8 2024/04/30 13:22:13 wiz Exp $
2+
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
3+
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
4+
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
5+
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
6+
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
77
${PYSITELIB}/irc/__init__.py
88
${PYSITELIB}/irc/__init__.pyc
99
${PYSITELIB}/irc/__init__.pyo
1010
${PYSITELIB}/irc/bot.py
1111
${PYSITELIB}/irc/bot.pyc
1212
${PYSITELIB}/irc/bot.pyo
13-
${PYSITELIB}/irc/buffer.py
14-
${PYSITELIB}/irc/buffer.pyc
15-
${PYSITELIB}/irc/buffer.pyo
1613
${PYSITELIB}/irc/client.py
1714
${PYSITELIB}/irc/client.pyc
1815
${PYSITELIB}/irc/client.pyo
16+
${PYSITELIB}/irc/client_aio.py
17+
${PYSITELIB}/irc/client_aio.pyc
18+
${PYSITELIB}/irc/client_aio.pyo
1919
${PYSITELIB}/irc/connection.py
2020
${PYSITELIB}/irc/connection.pyc
2121
${PYSITELIB}/irc/connection.pyo
@@ -31,18 +31,16 @@ ${PYSITELIB}/irc/events.pyo
3131
${PYSITELIB}/irc/features.py
3232
${PYSITELIB}/irc/features.pyc
3333
${PYSITELIB}/irc/features.pyo
34-
${PYSITELIB}/irc/functools.py
35-
${PYSITELIB}/irc/functools.pyc
36-
${PYSITELIB}/irc/functools.pyo
37-
${PYSITELIB}/irc/logging.py
38-
${PYSITELIB}/irc/logging.pyc
39-
${PYSITELIB}/irc/logging.pyo
34+
${PYSITELIB}/irc/message.py
35+
${PYSITELIB}/irc/message.pyc
36+
${PYSITELIB}/irc/message.pyo
4037
${PYSITELIB}/irc/modes.py
4138
${PYSITELIB}/irc/modes.pyc
4239
${PYSITELIB}/irc/modes.pyo
4340
${PYSITELIB}/irc/rfc.py
4441
${PYSITELIB}/irc/rfc.pyc
4542
${PYSITELIB}/irc/rfc.pyo
43+
${PYSITELIB}/irc/rfc2812.txt
4644
${PYSITELIB}/irc/schedule.py
4745
${PYSITELIB}/irc/schedule.pyc
4846
${PYSITELIB}/irc/schedule.pyo
@@ -61,6 +59,6 @@ ${PYSITELIB}/irc/tests/test_bot.pyo
6159
${PYSITELIB}/irc/tests/test_client.py
6260
${PYSITELIB}/irc/tests/test_client.pyc
6361
${PYSITELIB}/irc/tests/test_client.pyo
64-
${PYSITELIB}/irc/tests/test_schedule.py
65-
${PYSITELIB}/irc/tests/test_schedule.pyc
66-
${PYSITELIB}/irc/tests/test_schedule.pyo
62+
${PYSITELIB}/irc/tests/test_client_aio.py
63+
${PYSITELIB}/irc/tests/test_client_aio.pyc
64+
${PYSITELIB}/irc/tests/test_client_aio.pyo

net/py-irclib/distinfo

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
$NetBSD: distinfo,v 1.10 2021/10/26 11:06:38 nia Exp $
1+
$NetBSD: distinfo,v 1.11 2024/04/30 13:22:13 wiz Exp $
22

3-
BLAKE2s (irc-11.1.1.zip) = db6bd1cb6bff1fe0c4ea2e596c9b6470e3bf6ed1e239ea4f75b305d86320318e
4-
SHA512 (irc-11.1.1.zip) = 30804737d9f7d760361c7cb739fb4ff87ceb6404be41d09fff4d9286bad6124f3fbd1568653282f3ee181b62e1083ba6dd68f9a72656307e1cd4f4146fa5878a
5-
Size (irc-11.1.1.zip) = 121371 bytes
6-
SHA1 (patch-setup.py) = beba108237c5fdc0cf72a64cee741d8924a7ee47
3+
BLAKE2s (irc-20.4.0.tar.gz) = 2508e1e9192a95cbb7343135329c5ed65e533735885ac14fc1b41959b11e5317
4+
SHA512 (irc-20.4.0.tar.gz) = ff75593cf9606c724232517c8340beb115ceda254acb5989c043bd0653f215b928b663570c98c27b845cc7431ea142514c85968e3e3b9bda0406ce799a2b1d2e
5+
Size (irc-20.4.0.tar.gz) = 91215 bytes

0 commit comments

Comments
 (0)