Commit Graph

7535 Commits

Author SHA1 Message Date
Philipp Wolfer
718df8235e Keep cluster updates in sync with changes to file metadata 2018-10-17 14:19:05 +02:00
Philipp Wolfer
fab87c2239 PICARD-1339: Avoid update_metadata_images for cluster updates 2018-10-17 14:18:35 +02:00
Philipp Wolfer
c0a1e88832 Merge pull request #1002 from phw/refactor-ape-save
Refactor APEv2File._save to make use of _get_tag_name
2018-10-17 09:25:15 +02:00
Philipp Wolfer
f9658ac19d Merge pull request #1001 from phw/PICARD-1376-fix-ape-tag-deletion
PICARD-1376: Fix tag deletion for Ape files
2018-10-17 09:20:49 +02:00
Philipp Wolfer
4b6c9514ac Merge pull request #1003 from phw/macos-use-pyqt-5.10
Build with PyQt 5.10 for macOS
2018-10-17 09:13:03 +02:00
Philipp Wolfer
31fdd8e951 Build: Explicitily set macOS build variables
Explicitly set FPCALC_VERSION and DISCID_VERSION instead of relying on config on Travis CI.
2018-10-16 10:55:52 +02:00
Philipp Wolfer
1f5f0f8c82 Build with PyQt 5.10 for macOS
The PyQt 5.11 builds are incompatible with macOS 10.10 and require 10.11.
2018-10-16 10:35:24 +02:00
Philipp Wolfer
c83c9d3a09 Refactor APEv2File._save to make use of _get_tag_name 2018-10-16 09:01:43 +02:00
Philipp Wolfer
fce0005eaf PICARD-1376: Fix tag deletion for Ape files
Fixes exception when deleting tags that where not already in the file.
2018-10-16 08:49:44 +02:00
Wieland Hoffmann
6ac71b848d Merge pull request #998 from mineo/sdist
PICARD-1373: Make source distributions useful
2018-10-11 18:25:08 +02:00
Laurent Monin
6bad004ce3 Merge branch 'master' into sdist 2018-10-11 17:34:57 +02:00
Laurent Monin
6fe07b45ae Removed a bunch of unused imports 2018-10-11 14:34:26 +02:00
Wieland Hoffmann
c000c448b1 Include resources/images/*/*.png in sdists
This allows running `python setup.py build_ui` without removing the existing
images in picard/resources.py.
2018-10-10 17:28:31 +02:00
Wieland Hoffmann
e9d8492238 Include *.{md,txt} in sdists
This includes the various requirements.txt, but also AUTHORS, COPYING, HACKING,
INSTALL, CONTRIBUTING, INSTALL and README.
2018-10-10 17:28:30 +02:00
Wieland Hoffmann
3041dd3ff7 Include win-version-info.txt.in in sdists
This is required for `python setup.py build` on Windows.
2018-10-10 17:28:30 +02:00
Wieland Hoffmann
66da904a20 Include everything required for python setup.py build_ui in sdists 2018-10-10 17:28:30 +02:00
Wieland Hoffmann
e1f3a989ae Ship tagger.py with sdists
This allows running picard from an sdist.
2018-10-10 17:28:30 +02:00
Wieland Hoffmann
8022060bf5 Allow python setup.py test to work from an sdist
The test data files as well as test/__init__.py were missing, making the command
break. Include them.
2018-10-10 17:28:30 +02:00
Wieland Hoffmann
6a2cd4062f Allow python setup.py build to work from an sdist
By actually including picard/build.in, which is used by the `build` command.
2018-10-10 17:28:30 +02:00
Philipp Wolfer
6cda26264e Merge pull request #999 from antlarr/fix-parser-crash
PICARD-1374: Fix a crash when parsing an incomplete regular expresion being written
2018-10-10 16:10:30 +02:00
Antonio Larrosa
1bcc43b288 Return text instead of an empty string in func_rreplace in case of error 2018-10-10 13:27:46 +02:00
Antonio Larrosa
08ff10efd3 Fix a crash when parsing an incomplete regular expresion being written
If you write $rsearch(text,) in the file naming script and then move the
cursor after the comma and start writing a regular expression like
[a-z], picard crashes as soon as the '[' character is entered, since it
tries to parse the regular expression and the re module raises an exception.

This patch catches the re exceptions for $rsearch and $rreplace so
picard doesn't crash.
2018-10-10 10:41:01 +02:00
Philipp Wolfer
d6a4eda968 Merge pull request #975 from phw/PICARD-1339-fixup
PICARD-1339: Improve file removal performance
2018-10-09 08:50:53 +02:00
Laurent Monin
626489ed08 Merge branch 'master' into PICARD-1339-fixup 2018-10-08 22:56:14 +02:00
Philipp Wolfer
acdc31688c Add some documentation to util.imagelist 2018-10-08 20:46:15 +02:00
Philipp Wolfer
6a33683968 Merge pull request #993 from phw/isort-fixes
Isort fixes
2018-10-08 18:25:28 +02:00
Laurent Monin
30191142d3 Merge branch 'master' into isort-fixes 2018-10-08 17:49:02 +02:00
Philipp Wolfer
3c29fc4a8b PICARD-1313: Fix setting font to disabled when uninstalling a plugin 2018-10-08 12:52:34 +02:00
Wieland Hoffmann
f03537b4f4 Merge pull request #995 from mineo/picard-1369
PICARD-1369: Retry opening URLs
2018-10-07 20:50:40 +02:00
Laurent Monin
f71bb2bc71 Merge branch 'master' into picard-1369 2018-10-07 19:52:52 +02:00
Philipp Wolfer
c7ce9b24b0 Freeze pip dependencies for production release 2018-10-07 19:52:19 +02:00
Wieland Hoffmann
d4167ed1e2 PICARD-1369: Retry opening URLs
This is a workaround for https://bugs.python.org/issue31014. The first time
webbrowser.open is called, an exception is thrown when initializing the list of
browsers on the system. Ignoring that first exception leaves the webbrowser
module in a possibly-not-optimal state regarding the list of browsers it uses,
but it does successfully open URLs. Since there's no point in fixing this in
Picard itself, just continue with a not optimal browser choice.
2018-10-07 18:52:25 +02:00
Wieland Hoffmann
b5114de19f PICARD-1368: Correctly set log levels (#996)
Previously, despite having the option to set one of 4 log levels, it was only
possible to toggle between WARNING and DEBUG, because log.debug_mode only set
either logging.DEBUG or VERBOSITY_DEFAULT (logging.WARNING). Now we correctly
pass the selected log level to log.set_level.
2018-10-07 18:23:07 +02:00
Philipp Wolfer
985c642275 PICARD-1366: Show Python version in About (#991) 2018-10-07 12:58:29 +02:00
Philipp Wolfer
613e461d08 PICARD-792: Customized tiles for Windows 10 start menu 2018-10-07 12:32:42 +02:00
Philipp Wolfer
f417bc8ded Merge pull request #988 from phw/win-pyqt-5.11
PICARD-1365: Working Windows builds with PyQt 5.11
2018-10-07 12:16:46 +02:00
Philipp Wolfer
7925e6567a Code cleanup after review 2018-10-06 09:58:43 +02:00
Philipp Wolfer
a4f2cd8a89 PICARD-1339: Added add_metadata_images function 2018-10-06 09:58:43 +02:00
Philipp Wolfer
ab2778a521 PICARD-1339: Use remove_metadata_images for Album and Track 2018-10-06 09:58:43 +02:00
Philipp Wolfer
e9a8c3abee PICARD-1339: Make conditionals more pythonic 2018-10-06 09:58:43 +02:00
Philipp Wolfer
bc9c9ba602 PICARD-1339: WIP Added optimized imagelist.remove_metadata_images 2018-10-06 09:58:43 +02:00
Philipp Wolfer
a68e76a4b7 PICARD-1339: Added unitttest for update_metadata_images 2018-10-06 09:58:43 +02:00
Philipp Wolfer
0e550c07a8 Renamed imagelist.State to imagelist.ImageListState 2018-10-06 09:58:43 +02:00
Philipp Wolfer
e4763e8651 PICARD-1339: Optimize update_metadata_images performance
Greatly improves the time it takes to remove a huge amount of unclustered files from the tagger.
2018-10-06 09:58:43 +02:00
Philipp Wolfer
54cd799a1d Run isort on entire tree 2018-10-06 09:52:45 +02:00
Philipp Wolfer
c3a2fbdb6b Fix isort config to recognize picard section 2018-10-06 09:52:27 +02:00
Philipp Wolfer
ee80a4004e Merge pull request #992 from phw/PICARD-1367-open-search-in-browser
PICARD-1367: Open search in browser
2018-10-06 09:33:06 +02:00
Philipp Wolfer
78ec12c20c Windows build: bdist_nsis is no longer used 2018-10-05 20:03:16 +02:00
Philipp Wolfer
68b361318e Appveyor: Build against Python 3.5.6 2018-10-05 20:03:16 +02:00
Philipp Wolfer
59aed98b02 Working Windows builds with PyQt 5.11 2018-10-05 20:03:16 +02:00