Commit Graph

6836 Commits

Author SHA1 Message Date
Philipp Wolfer
1636fcb310 PICARD-1703: Upgrade to PyInstaller 3.6
Allows us to remove some Windows specific workarounds, fixes a CVE related to the portable onefile install.
2020-01-11 15:09:01 +01:00
Philipp Wolfer
18e1932294 Removed no longer needed StartupWMClass 2020-01-10 08:28:18 +01:00
Philipp Wolfer
f1cde96ac6 PICARD-1054: Allow Qt to handle default Qt and X command line arguments 2020-01-10 08:28:18 +01:00
Philipp Wolfer
17bd114a18 Fix initialization of QApplication with argv 2020-01-10 08:28:18 +01:00
Philipp Wolfer
f40bdceb29 PICARD-1699: Fix run fingerprinting after asking user to enable it
When fingerprinting is disabled and the user tries to use scan, Picard asks the user if they want to open the options to configure fingerprinting. After the user has enabled fingerprinting Picard is supposed to perform the action. This commit restores this functionaility which broke in f8eb755.
2020-01-07 18:18:11 +01:00
Philipp Wolfer
ff7d3dc7e0 Removed unused CI configurations 2020-01-07 18:16:55 +01:00
Philipp Wolfer
f3b06786f1 CI: Test with PyQt 5.13.2 (in addition to current 5.14.x) 2020-01-07 15:52:09 +01:00
Philipp Wolfer
0d695dc8ce Update picard.pot 2020-01-07 15:43:03 +01:00
Philipp Wolfer
51732187c0 On Scan only run fpcalc if the fingerprint was not already calculated.
Since there is now a dedicated "Generate fingerprints" action the user can still choose to re-generate the fingerprints if needed. Also they can first use "Generate fingerprints" and do the lookup based on those fingerprints later.
2020-01-07 11:18:39 +01:00
Philipp Wolfer
7b0b501f8a PICARD-991: Add action to generate AcoustId fingerprints without lookup
This just fingerprints the files, without actually searching for matches. This allow users who just want to submit fingerprints to analyze already matched files or to analyze and match files manually.
2020-01-07 11:18:39 +01:00
Philipp Wolfer
cf08b00275 Use PyQt 5.14.1 for Windows builds 2020-01-07 11:17:32 +01:00
Philipp Wolfer
4abd360fe9 Replaced undocumented initialization of QAction with checkable=True
Using checkable=True in QAction constructor is undocumented. It is working currently but might break in future versions similar to how QActionGroup(..., exclusive=...) broke with PyQt 5.14.
2020-01-07 09:01:31 +01:00
Philipp Wolfer
32e05058e0 PICARD-1700: Fix crash on PyQt >= 5.14 on cover art context menu
In PyQt 5.14 the exclusive parameter for QActionGroup is no longer available. Also QActionGroup is exclusive by default in Qt5, so there is no need to set this.
2020-01-07 09:01:31 +01:00
Philipp Wolfer
65bc122940 Merge pull request #1422 from phw/fix-version-compare
Implement proper version comparison for dev, alpha, beta and rc releases
2020-01-04 14:59:04 +01:00
Philipp Wolfer
ef638cb57e picard.spec: Simplify macos version generation
Make use of new Version class functionality.
2020-01-03 14:42:45 +01:00
Philipp Wolfer
79e931444e Implement Version on top of namedtuple 2020-01-03 14:38:09 +01:00
Philipp Wolfer
83de668fdf Refactor Version.to_string and Version.from_string to improve readability 2020-01-03 14:26:40 +01:00
Philipp Wolfer
2f1b6d79da Implement proper version comparison for dev, alpha, beta and rc releases
The version identifier was previously compared alphabetically, which fails for e.g. "dev" < "alpha".

Implement proper version comparison by introducing a Version class (inherited from tuple).
2020-01-03 14:25:15 +01:00
Philipp Wolfer
53a0894e98 PICARD-1682: Fix multiline metadatabox wrapping issues
Elided text + automated word wrap does not work properly. Qt only wraps the text properly if it fits into the given height, otherwise it switches to manual line breaks.

Hence change the rendering to only use manual line breaks. This still gives better results for lyrics and comments without breaking the display.
2020-01-02 16:22:01 +01:00
Philipp Wolfer
95c3689a86 PICARD-1665: Refactoring for detecting user installed plugins 2019-12-31 17:17:54 +01:00
Philipp Wolfer
775db88649 PICARD-1665: Normalize plugin and const paths for better comparisson
Without this path comparisson to check wheter a plugin is installed in the user plugin dir fails on Windows.
2019-12-31 17:17:54 +01:00
Philipp Wolfer
7e6b74013d PICARD-1695: Move logic to add and remove scripts to ScriptListWidget 2019-12-25 09:00:07 +01:00
Philipp Wolfer
6a785eed25 PICARD-1695: Allow inline editing of script names
Removed the separate input for the script name in the script editor and enabled inline editing in the script list. Added a context menu for the editing.
2019-12-25 09:00:07 +01:00
Philipp Wolfer
b3d281c50c Merge pull request #1418 from phw/rework-script-editor
PICARD-1695: Rework script editor
2019-12-21 08:01:11 +01:00
Philipp Wolfer
2ef3d6db58 Add VS Code config giles to gitignore 2019-12-19 17:31:26 +01:00
Philipp Wolfer
19dbf005ca Fix "Other versions" context menu not being active 2019-12-18 23:59:52 +01:00
Philipp Wolfer
e5baf0046a Scripting options: Explicitly ignore only script errors in display_error
This avoids error handling being skipped for other exceptions.
2019-12-17 19:58:48 +01:00
Philipp Wolfer
04b1bc2cc7 PICARD-1695: Make script editor delete confirmation window modal 2019-12-17 19:44:29 +01:00
Philipp Wolfer
b1a8fbb2b5 PICARD-1695: Make scripts sortable by drag and drop 2019-12-17 19:44:29 +01:00
Philipp Wolfer
500622851e PICARD-1695: Removed buttons from script editor ist
The functionality is now enabled by buttons outside of the list view.
2019-12-17 18:04:08 +01:00
Philipp Wolfer
452436df0b PICARD-1695: Move script editor control elements below the list view
This makes the UI more consistent with similar views in options.
2019-12-17 18:04:07 +01:00
Philipp Wolfer
aac11effdc GHA: Run tests with older dependencies 2019-12-17 17:35:15 +01:00
Philipp Wolfer
fdff636448 Merge pull request #1417 from phw/unify-up-down-arrows
Unify up down arrows in options UI
2019-12-17 11:23:56 +01:00
Philipp Wolfer
f293223f70 Consistently place list editors in options inside of QGroupBox 2019-12-17 08:51:48 +01:00
Philipp Wolfer
3d3afa679e taglisteditor: enable move up/down only if moving is possible 2019-12-17 08:39:12 +01:00
Philipp Wolfer
39feb44230 Unify position and size of buttons for list re-ordering
This makes the taglisteditor widget consistent with existing list re-ordering UI for cover art and toolbar buttons.
2019-12-17 08:38:48 +01:00
Philipp Wolfer
d426520c32 Unify list up/down arrow icons
Use custom icons for consistency.
2019-12-17 08:10:17 +01:00
Philipp Wolfer
f45933b099 GHA: Run tests before macOS and Windows builds 2019-12-17 00:37:53 +01:00
Philipp Wolfer
2636228853 GHA: Continue preparing release even if changelog extraction fails 2019-12-16 21:12:14 +01:00
Philipp Wolfer
aa372fbe4c Format short version for alpha, beta and rc according to PEP 440
This omits the dot before the version identifier. Avoids setuptools warning about version normalization for alpha, beta and rc versions.

Note that it is still ".dev1", this is also according to PEP 440.
2019-12-16 08:13:24 +01:00
Philipp Wolfer
ac171c1ed6 Re-add ability to mark alpha, beta and rc pre-release versions
For Picard versions support the version identifiers 'alpha', 'beta' and 'rc' again (in addition to 'final' and 'dev'). This used to be supported, but got lost at some point

Long version strings will be e.g. 2.3.0beta2. If the shortened string is generated the idenfitiers for alpha and beta will be shortened to 'a' and 'b' (e.g. 2.3.0b2). This confirms to pre-release versioning is defined in PEP 440.
2019-12-16 07:52:01 +01:00
Philipp Wolfer
d32a44a38d Add Github Actions status badge to README.md
Replace the currently unused CI badges with it.
2019-12-16 07:49:38 +01:00
Philipp Wolfer
d3239b486b Fixed column selection menu not showing last column as active 2019-12-15 18:15:03 +01:00
Philipp Wolfer
a6fc2e9563 Updated translations from Transifex 2019-12-15 12:37:02 +01:00
Philipp Wolfer
1b1868ab62 PICARD-1596: Use Github Actions to publish to PyPI 2019-12-14 01:04:17 +01:00
Philipp Wolfer
87982bda47 util.textencoding: Improve performance by avoiding regex replace
This reduces execution time for unicode_simplify_compatibility, unicode_simplify_punctuation and unicode_simplify_combinations to around ~54% - 75% of the previous time (depending on pathsave and win_compat parameters).
2019-12-14 01:03:46 +01:00
Philipp Wolfer
0855862c8c PICARD-321: Support backslash in filenames on non-Windows OS
With this change backslashes can be used in filenames on systems other than Windows. Only if Windows compatibility is activated backslashes will be replaced as before.
2019-12-14 01:03:46 +01:00
Philipp Wolfer
086da47d72 Added generic SingletonDialog class for managing a single dialog instance
Use this for the options dialog instead of the custom implementation in MainWindow.
2019-12-12 13:52:53 +01:00
Philipp Wolfer
8621372d91 PICARD-1693: Save geometry of log view dialogs 2019-12-12 07:41:35 +01:00
Philipp Wolfer
b67bb84f6d Toolbar options AddActionDialog must not be resizable.
The dialog's content cannot make use of additional space and looks awkward when resized.
2019-12-11 23:30:24 +01:00