linsui
7a98650ed3
Sort import
...
ruff check --fix --select I
2025-07-26 15:35:19 +00:00
Hans-Christoph Steiner
2f4e0f47a1
signatures: make from . import net optional
...
This eliminates the need to have python3-requests installed on the signing
server. This was missed in 031ae1103e
2025-03-12 17:27:26 +01:00
Hans-Christoph Steiner
290587f449
add ColorFormatter class for optional colorized log output
2024-11-19 13:04:23 +00:00
Hans-Christoph Steiner
18f3acc32e
split out options from read_config()
...
There is no longer any reason for these to be intertwined.
This deliberately avoids touching some files as much as possible because
they are super tangled and due to be replaced. Those files are:
* fdroidserver/build.py
* fdroidserver/update.py
# Conflicts:
# tests/testcommon.py
# Conflicts:
# fdroidserver/btlog.py
# fdroidserver/import_subcommand.py
2024-05-08 16:26:46 +02:00
Hans-Christoph Steiner
76d9eddb3a
method to globally set logging to output nicely to the console
...
This will make all of the direct calls to logging level functions output
in a format that looks appropriate for the console. Previously, the default
output looked like it should be written to a log file.
2024-03-06 12:53:20 +00:00
Hans-Christoph Steiner
2273d8203b
enable black on fdroidserver/signatures.py
2023-04-27 11:34:16 +02:00
Hans-Christoph Steiner
307cf8958c
run black to reformat code that does not have WIP merge requests
2021-06-28 18:57:56 +02:00
Hans-Christoph Steiner
fede58a710
use ArgumentParser's own "usage" line in help output
2020-10-01 23:01:55 +02:00
Hans-Christoph Steiner
6030445be0
logging.warn() was deprecated in Python 3.3, use logging.warning()
...
sed -i 's,logging\.warn(,logging.warning(,g' fdroid */*.*
https://docs.python.org/3.3/library/logging.html#logging.Logger.warning
2020-05-27 08:35:14 +02:00
Michael Pöhn
27d382e1f4
clean up globals in signatures.py
2018-07-30 13:07:07 +02:00
mimi89999
d76c5dc859
signatures: Don't pass config to extract
...
Closes #536
2018-07-29 17:45:45 +02:00
Hans-Christoph Steiner
ff90c0246e
fix PEP8 W605 invalid escape sequence
...
Python 3.7 will get a lot stricter with escape sequences. They must be
valid.
* https://lintlyci.github.io/Flake8Rules/rules/W605.html
* https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2018-05-29 13:51:47 +02:00
Hans-Christoph Steiner
43c61aecee
fix pylint Unused argument
2018-05-14 15:25:33 +02:00
Hans-Christoph Steiner
27a5cce832
implement common.get_apk_id() using androguard
2018-05-03 13:46:42 +02:00
Allan Nordhøy
6daeb88ab9
HTTP, HTTPS
2017-10-22 06:43:18 +00:00
Hans-Christoph Steiner
6c7b987239
fix string formats that are ambiguous for translators
2017-09-16 13:19:38 +02:00
Hans-Christoph Steiner
255932453c
ensure _ is used only for gettext strings
...
_ is often used for variables that are ignored, this makes that a bit more
explicit
!338
2017-09-16 13:19:38 +02:00
Hans-Christoph Steiner
278d67d960
implement gettext localization
...
This allows all the text to be localized via Weblate. This is a quick
overview of all the strings, but there are certainly some that were left
out.
closes #342
2017-09-15 11:39:00 +02:00
Michael Pöhn
3e6dfacf6c
added signatures subcommand
2017-09-07 00:03:35 +02:00