Valentin Lorentz
27c513135c
Geography: Early draft, with buggy implementation of timezone_from_qid.
2021-11-09 22:41:40 +01:00
Valentin Lorentz
5aefd6395f
Time: Fix error handling in @tztime.
2021-11-09 22:33:23 +01:00
Valentin Lorentz
8326d6ef7f
Fediverse and Poll: Run Black
2021-11-09 22:33:12 +01:00
Valentin Lorentz
feaa02ab6d
Add docstring to supybot.utils.time.iana_timezone
2021-11-08 23:20:28 +01:00
Valentin Lorentz
12c526bc1c
Update default user agent to mention Limnoria
2021-11-08 23:20:13 +01:00
Valentin Lorentz
abe59022b4
irclib: Remove broken + useless code
...
This function does not exist anymore
2021-11-08 21:59:05 +01:00
Valentin Lorentz
8b26b675ba
Use stdlib instead of pytz on Python >= 3.9
...
Python 3.9 introduced the zoneinfo module, which provides the only
feature we used pytz for (getting a datetime.tzinfo object from
an IANA timezone id); so let's use it instead of a third-party
dependency.
2021-11-08 21:46:48 +01:00
Valentin Lorentz
a5cd930a4b
Update CI/setup.py/README: Python 3.10 is now released.
2021-11-08 21:30:00 +01:00
Valentin Lorentz
ce7e4b754c
Replace deprecated unittest function calls.
2021-11-08 21:29:59 +01:00
Valentin Lorentz
93c63092d9
Remove SQLAlchemy from the dependencies.
...
It's only used by Aka when sqlite3 is not available, so basically never.
And SQLAlchemy probably can't work without sqlite3 anyway.
Plus, SQLAlchemy depends on greenlet, which does not support
Python 3.11a2 yet: https://github.com/python-greenlet/greenlet/issues/273
2021-11-08 21:29:59 +01:00
James Lu
417cd7d66f
LogToIrc: add missing import
2021-10-20 17:39:50 -07:00
Valentin Lorentz
1f618b9773
log: Fix support of 'supybot-test --clean'
...
Broken in dff394df64
.
2021-10-18 10:08:41 +02:00
Valentin Lorentz
63eb6672ea
Revert generic 'The Limnoria Contributors' in copyright notices
...
This commit reverts db7ef3f025
(though it keeps the year updates)
After discussion with several people, it seems better to mention
copyright owners explicitly. eg. https://reuse.software/faq/#vcs-copyright
explains the issue of using VCSs to track copyright.
As db7ef3f025
only replaced mentions
of my name with 'The Limnoria Contributors', this commit only needs
to undo that + add one person who contributed to setup.py.
2021-10-17 09:57:55 +02:00
Valentin Lorentz
dff394df64
log: Add support for rotating messages.log.
2021-10-14 23:52:16 +02:00
Valentin Lorentz
666acd9f1f
log: Simplify encoding in BetterFileHandler.
...
I don't think any these cases are useful anymore.
Let's keep the last one anyway, just in case I'm wrong.
2021-10-14 23:47:32 +02:00
Valentin Lorentz
e972894b8a
supybot-wizard: Fix variable shadowing.
2021-10-14 23:43:40 +02:00
PeGaSuS
f31e5c4b9a
LogToIrc: Synchronize README with config.py
...
Better document the format of the 'target' config var
2021-10-09 22:53:13 +02:00
Valentin Lorentz
3f27c03f77
LogToIrc: better document the format of the 'target' config var
2021-10-09 21:08:48 +02:00
Valentin Lorentz
163e717bf0
Fediverse: increase again to fix failures on the CI...
2021-10-08 01:03:31 +02:00
Valentin Lorentz
d844243ce1
Fediverse: increase max heap size to mitigate crashes on pypy
2021-10-08 00:15:45 +02:00
Valentin Lorentz
bc0c5bdeed
ChannelLogger: Log away messages
2021-10-07 21:34:04 +02:00
Valentin Lorentz
ebaa346619
callbacks: Don't raise AssertionError when addressd() is called with a NOTICE
...
Some plugins (like LinkRelay) share code between NOTICE and PRIVMSG
and they might call it unconditionally.
2021-09-22 21:48:59 +02:00
Valentin Lorentz
de277edb42
irclib: Make requestCapabilities a public method
...
So it can be used by plugins like Sigyn.
2021-09-22 18:54:47 +02:00
Valentin Lorentz
4d974869f9
String: Fix TypeError.
2021-09-21 21:41:25 +02:00
Valentin Lorentz
f468557899
Channel: Fix capability check in alertOps, to check the target instead of sender.
2021-09-21 21:21:21 +02:00
Valentin Lorentz
c93493901e
Fediverse & String: Increase test timeouts, they can be flaky on CIs
2021-09-21 21:19:03 +02:00
Valentin Lorentz
749b8e18ad
fix test
2021-09-14 21:03:15 +02:00
Valentin Lorentz
dc79ab193a
Update capitalization of my Github username
2021-09-14 20:30:47 +02:00
Valentin Lorentz
5b9ec4f716
LogToIrc: Prevent loop when sending to non-existing channels
...
When the target is a channel it is not in, it would treat it as a user;
which, if userCapabilityRequired is empty, would unconditionally send it
to a channel.
This would usually result in an error, that would be logged,
hence the loop.
2021-09-13 19:07:34 +02:00
Valentin Lorentz
070090ffc5
LogToIrc: Honor the configured log level
2021-09-13 19:05:42 +02:00
Valentin Lorentz
76bd1c89bf
Socket: Gracefully handle invalid lines with UTF8ONLY
...
Just skip the line, instead of crashing the whole loop (which
contains the next lines from the same server too)
2021-09-13 18:45:49 +02:00
Valentin Lorentz
ee9f0dc1bf
STS: When persisting STS keys, use the actual port instead of the one from the policy
...
'Servers MAY send this key to securely connected clients, but it will be ignored.'
-- https://ircv3.net/specs/extensions/sts\#the-port-key
2021-09-03 20:15:18 +02:00
Valentin Lorentz
74073b2736
irclib: Log the server's error message on SASL failure.
2021-09-01 18:25:54 +02:00
Valentin Lorentz
e63858659a
Fediverse: Better assertionerror messages
2021-08-28 23:48:19 +02:00
Valentin Lorentz
52a5cefd50
Move stripformatting from Format to Filter, for consistency
2021-08-28 23:37:21 +02:00
Valentin Lorentz
d593f84a66
Socket: disable charset heuristics when the server advertizes UTF8ONLY.
2021-08-27 19:03:18 +02:00
Valentin Lorentz
db05081ff6
commands: fix _checkUrl
2021-08-25 23:28:25 +02:00
Valentin Lorentz
0131cd0691
commands: Add converters for IRIs
...
Since the 'url' and 'httpUrl' converters no longer support them...
2021-08-25 21:55:31 +02:00
Valentin Lorentz
be88530fa4
commands: Disallow IRIs from 'url' and 'httpUrl' converters.
...
urllib doesn't support IRIs, and gives out a cryptic
'UnicodeEncodeError: 'ascii' codec can't encode character ...'
if we don't validate it.
2021-08-25 21:54:55 +02:00
Valentin Lorentz
62db3a92fc
callbacks: Print unexpected commands
2021-08-25 21:29:19 +02:00
Valentin Lorentz
ca624d7ae6
RSS: Fix nondeterministic test failures
...
Caused by 'rss announce add' triggering headline announces, that would
delay the execution of the 'remove' commands.
Thanks to @mapreri and @Unit193 for help in reproducing the issue
and confirming the patch.
2021-08-22 19:23:05 +02:00
Valentin Lorentz
0c8e455b4e
RSS: When deleting a named feed, preserve anonymous feed of the same URL.
2021-08-22 19:21:28 +02:00
Valentin Lorentz
cbd2b31d8f
Add error message in case setuptools is not installed.
2021-08-12 21:32:24 +02:00
Ian Wienand
37ba0ef7be
setup.py: switch import to setuptools
...
Switch to standard setuptools import, add suggested entries to
pyproject.toml.
Remove the --clean argument. As the comment suggests I'm sure there
is history here, but having setup.py remove parts of the package does
not seem like something required at this point.
Also clean up the imports to remove unused and group them together at
the top.
2021-08-12 21:23:48 +02:00
Valentin Lorentz
49b9a9ab74
Add missing (optional) dependency, pyxmpp2-scram
2021-08-12 20:00:25 +02:00
James Lu
09392478e6
getUrlFd: chain the original exception so that plugins can handle them further ( #1487 )
2021-08-01 13:35:45 -07:00
Valentin Lorentz
db7ef3f025
all: Add generic 'The Limnoria Contributors' to copyright notices.
...
No need to bother with details (that are all outdated / out of sync
anyway), just look up the git history.
2021-08-01 21:54:49 +02:00
Valentin Lorentz
a86b2a62ab
More verbose irctest logging.
...
trying to figure out why it freezes on the CI...
2021-07-31 17:57:53 +02:00
Valentin Lorentz
747ef77106
Fix tests when pyxmpp2_scram is not installed.
2021-07-31 14:40:44 +02:00
Valentin Lorentz
c008d1191c
RSS: Fix crashes when the set of channels changed while iterating.
2021-07-31 14:33:34 +02:00