Laurent Monin
d7bb9dc0a2
Drop remaining bits of QtCore.QObject.config and QtCore.QObject.log
2024-04-24 07:01:45 +02:00
Philipp Wolfer
3b6b90d6a6
Fix unit tests after removal of QObject.tagger
2024-04-22 17:59:57 +02:00
Laurent Monin
10d2992253
import _ -> import gettext as _
2024-04-22 10:42:49 +02:00
Laurent Monin
fada4f0a40
Import gettext-related methods, instead of monkeypatching builtins
2024-04-21 23:24:03 +02:00
Philipp Wolfer
7251071435
Fixed debug opt test cases not being run
...
Fixed the naming of the test class so it actually gets collected and run
2024-04-21 17:48:44 +02:00
Bob Swift
495736a369
Include zip file in short path. Improve tests regarding plugin paths.
2024-04-15 12:47:16 -06:00
Bob Swift
44b1d028a8
Revert change removing the leading "plugins/"
2024-04-15 11:05:06 -06:00
Bob Swift
e827942a5a
Remove leading "path/". Start all absolute paths with "/".
2024-04-15 09:36:29 -06:00
Bob Swift
28f9f930af
Update plugin path shortening logic
2024-04-13 22:58:58 -06:00
Bob Swift
c74e6975f0
Merge pull request #2397 from zas/debug_opt_short_plugin_path
...
PICARD-2856: Introduce DebugOpt.PLUGIN_FULLPATH and shorten plugin paths in logs
2024-04-13 16:00:46 -06:00
Laurent Monin
fac0ed5155
Add support for title to Option.add_if_missing()
2024-04-13 18:20:36 +02:00
Laurent Monin
13b8fe1132
Remove titles from profiles
2024-04-13 14:09:30 +02:00
Laurent Monin
006944294e
Add option.get_title() method
...
Similar to Option.get_default()
2024-04-13 14:09:30 +02:00
Laurent Monin
94189f8ecf
Option: Add support for an optional title
2024-04-13 14:09:30 +02:00
Laurent Monin
eb21f7edb0
Introduce DebugOpt.PLUGIN_FULLPATH and shorten plugin paths in logs
2024-04-12 13:40:48 +02:00
Laurent Monin
b282a593ae
Fix inconsistency with relative paths
...
`picard_module_path` can be a file path or a dir path.
When it's a frozen package, that's always a directory, and when running from source it is always a file path.
Ensure it is always a directory (that is the parent of the file path if it happens)
2024-04-12 12:26:56 +02:00
Laurent Monin
607f923dec
Merge pull request #2391 from zas/debug_replies
...
Add a way to select extra debug output
2024-04-12 10:32:41 +02:00
Laurent Monin
6598f01e1f
Merge pull request #2395 from zas/network_cache_size_option
...
PICARD-2855: Let the user configure network cache size via Network Options
2024-04-12 10:31:54 +02:00
Laurent Monin
61dbae164b
Add a way to select extra debug output
...
Web service replies can be very long, and it makes debug output rather hard to read.
A debug option mechanism is now added, it is controlled by a new class
`DebugOpt`.
A command-line option `--debug-opts` allows selection of extra debug
output, for now the sole option is `ws_replies`.
A matching menu was added in View Debug Log dialog.
It is important to note those aren't saved in config file, as they are
meant to be disabled by default and only enabled when needed.
2024-04-12 10:21:51 +02:00
Laurent Monin
c5a64d4e50
Unify Win/Posix output
2024-04-10 18:29:41 +02:00
Laurent Monin
6fbf76b075
Add win-specific tests
2024-04-10 18:12:39 +02:00
Laurent Monin
aad9be0088
Correctly handle __init__ within path (unlikely, but...)
2024-04-10 18:03:21 +02:00
Laurent Monin
577c90928f
Do not run test on Win (yet)
2024-04-10 17:58:57 +02:00
Laurent Monin
9804f736df
Fix weird case
2024-04-10 17:49:23 +02:00
Laurent Monin
6d5bb0ccfc
Use PurePosixPath
2024-04-10 17:42:58 +02:00
Laurent Monin
2fbeceb9dc
Add tests for log.name_filter()
2024-04-10 17:36:58 +02:00
Laurent Monin
b379abd7fb
Fix up tests
2024-04-09 18:02:15 +02:00
Philipp Wolfer
2fc0a54c06
Add tests for collection.load_user_collections
2024-04-06 13:17:41 +02:00
Philipp Wolfer
345b2cb768
Added tests for collection module
2024-04-06 13:17:41 +02:00
Laurent Monin
6d9100739d
Add extra tests for prepare_releases_for_versions()
2024-04-03 14:01:34 +02:00
Laurent Monin
fccbef14c2
Merge pull request #2384 from zas/option_class_improv
...
Option class improvement
2024-04-02 19:58:26 +02:00
Laurent Monin
f28dec2469
Move cluster & file comparison weights at module level
...
- it reduces the size of Cluster and File objects
- those are constant
2024-04-02 19:51:02 +02:00
Philipp Wolfer
c333208788
PICARD-2850: Use old filename if naming script evaluates to empty filename
...
This is a variation of previously fixed PICARD-2219, but for the case
where only the basename results in an empty name.
2024-04-02 19:49:30 +02:00
Laurent Monin
c166041531
Move FILE_INFO_TAGS from class File to module picard.util.tags
...
It reduces the size of objects, and it doesn't seem we ever needed to change it.
2024-04-02 18:25:33 +02:00
Laurent Monin
2364f9f979
Add Option.get_default() method and matching tests
2024-04-02 18:03:06 +02:00
Laurent Monin
7902ab9de3
Add more tests for Option
2024-04-02 17:59:13 +02:00
Laurent Monin
8af9db4d94
Remove now unused Version.to_string()
...
- `v.to_string(short=False)` was replaced by `str(v)`
- `v.to_string(short=True)` was replaced by `v.short_str()`
2024-04-01 12:13:11 +02:00
Laurent Monin
e5b28f21a5
Replace Version.to_string(short=True) by Version.short_str()
2024-04-01 12:10:05 +02:00
Laurent Monin
c86c364a37
Version has __str__() method calls to_string(), so make use of it
2024-04-01 12:06:18 +02:00
Laurent Monin
92b09036e9
autodetect_upgrade_hooks(): returns a dict sorted by version and test that
2024-03-31 17:08:41 +02:00
Laurent Monin
5770c2ccc0
Move check for future version upgrade hook to autodetect_upgrade_hooks()
2024-03-31 16:37:36 +02:00
Laurent Monin
de381708d1
autodetect_upgrade_hooks(): throw new UpgradeHooksAutodetectError exception
2024-03-31 16:01:51 +02:00
Laurent Monin
e87333eb03
Handle another tricky case where 2 methods can be defined for same version
...
That's because we support small variations in string version (like a/alpha).
So, check if the loop tries to set the same dict key twice and raises an exception in this case.
2024-03-31 00:33:16 +01:00
Laurent Monin
4202e2ac35
Make Version.from_string() stricter, matching from start of string
2024-03-31 00:07:02 +01:00
Laurent Monin
7e0b89ccd5
Add a tricky case for upgrade hooks autodetection
...
This case is happening because we only match end of string when it comes to version detection
2024-03-31 00:03:47 +01:00
Laurent Monin
9852b8b1cc
Add tests for upgrade hooks autodetection
2024-03-30 23:59:44 +01:00
Laurent Monin
c422bae446
Merge remote-tracking branch 'upstream/master' into simplify_upgrade_config
...
# Conflicts:
# picard/config_upgrade.py
# test/test_config_upgrade.py
2024-03-30 18:35:30 +01:00
Laurent Monin
db05675957
PICARD-2848: Rename option "toolbar_multiselect" to "allow_multi_dirs_selection"
...
- the old name isn't explicit enough, and it isn't related to toolbar anymore at all
2024-03-30 14:18:01 +01:00
Laurent Monin
33027a34a3
Rename upgrade methods, extra underscores aren't needed
...
v1.0.0beta1 -> `upgrade_to_v1_0_0beta1()`
Just replace dots in current version with underscores.
Rename methods in tests
2024-03-29 11:48:11 +01:00
Laurent Monin
8af19d40cd
Merge pull request #2375 from phw/charset-detection-fixes
...
Charset detection fixes
2024-03-28 12:52:10 +01:00