Alfred Wingate
aad99f71fe
Use JSON api for PyPi
...
* "The XML-RPC API will be deprecated in the future. Use of this API is
not recommended, and existing consumers of the API should migrate to
the RSS and/or JSON APIs instead."
* "As a result, this API has a very restrictive rate limit and it may be
necessary to pause between successive requests." As such this also
gets around this issue for euscan.
https://warehouse.pypa.io/api-reference/xml-rpc.html
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-03-02 16:18:34 +02:00
Alfred Wingate
22915bade5
Fix kde handler
...
* It appears it was broken in the midst of 8d912379
, no apparent
rationale for it being changed there.
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 07:07:11 +02:00
Alfred Wingate
443b5f62fd
Enable flake8-bugbear linting and fix raised issues
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 06:25:40 +02:00
Alfred Wingate
49f1fbbad1
Remove Python2'isms from classes
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 06:18:19 +02:00
Alfred Wingate
a03b420c75
Use OSError instead of alias IOError
...
https://docs.astral.sh/ruff/rules/os-error-alias/
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 06:15:48 +02:00
Alfred Wingate
6c0b816e73
Use f-strings or .format() over percent style
...
https://docs.astral.sh/ruff/rules/printf-string-formatting/
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 05:56:40 +02:00
Alfred Wingate
377ba2f727
N806
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 05:19:02 +02:00
Alfred Wingate
c0be0e0b67
Fix invalid backslash characters
...
* https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 05:10:40 +02:00
Alfred Wingate
17c4e19bc5
Filter XMLParsedAsHTMLWarnings
...
* Parsing xhtml sites would trigger it.
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 04:27:57 +02:00
Alfred Wingate
86c88e8d30
Change default user-agent
...
* Better to have it be more meaningful.
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 01:14:05 +02:00
Alfred Wingate
9efcd3a842
Update copyright
...
* Cleanup inconsistencies in the headers while at it
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 00:16:19 +02:00
Alfred Wingate
a8f35aee25
Fix issues pointed out by ruff
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-16 00:16:07 +02:00
Alfred Wingate
70f88ed37d
Run isort on project
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-15 23:30:40 +02:00
Alfred Wingate
d860708ec9
Run black on project
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-15 23:30:40 +02:00
Alfred Wingate
dfa0bb7424
Add python3.12 compatability
...
* imp and find_loader got removed in py3.12
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-15 23:30:39 +02:00
Alfred Wingate
50a23b71dd
Get version from git with setuptools_scm
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-15 23:30:39 +02:00
Alfred Wingate
bae87b0877
Fix euscan by using portage MetadataXML over gentoolkit Metadata
...
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-15 23:30:39 +02:00
Alfred Wingate
c873e1520d
Change source layout
...
* In preparation for PEP517 transition.
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-15 23:30:39 +02:00