Bob Swift
462ba2d74b
Remove unnecessary "except..." code.
2020-03-03 15:17:14 -07:00
Bob Swift
1ccaebb28f
Fix line, position order and add line number to test.
2020-03-03 15:07:33 -07:00
Bob Swift
64a379aeb2
Use thread-safe function stack. Add platform-specific tests.
2020-03-03 15:07:32 -07:00
Bob Swift
030fd17251
Add function_stack to parser. Revise ScriptRuntimeError args.
2020-03-03 15:06:07 -07:00
Bob Swift
5a8df90074
Added ScriptRuntimeError. Remove unnecessary non-Win tests.
2020-03-03 15:05:42 -07:00
Bob Swift
1c1f2998f4
Trap ValueError exception in $datetime function and add tests
2020-03-03 15:04:19 -07:00
Bob Swift
60d9827fa6
PICARD-1781: Have $find return '' rather than '-1' on not found
2020-03-03 17:19:02 +00:00
Bob Swift
becd3e0d7a
Add IndexError check to $firstwords function
2020-02-28 07:47:38 +00:00
Philipp Wolfer
dd5be66728
Release 2.3.1
2020-02-27 20:59:23 +01:00
Philipp Wolfer
dad572fa8f
Updated translations
2020-02-27 20:56:49 +01:00
Philipp Wolfer
25250d710c
Update translations
2020-02-27 20:48:56 +01:00
Philipp Wolfer
c1c9cf6bf6
PICARD-1774: Fix MultiValue returning [] on empty value
...
This also fixes issues with some functions:
- $lenmulti with empty value must return 0
- $foreach and $map must loop zero times on empty value
2020-02-27 08:25:01 +00:00
Ray
3c3a4c2c8e
PICARD-1771: Scoring change to ignore undesired release types
2020-02-27 08:07:10 +01:00
Philipp Wolfer
cc49ac34a4
CI: Add fallback to git describe to work with no tags available
2020-02-27 07:58:14 +01:00
Bob Swift
05ea186c29
Fix negative length handling in $num
2020-02-26 22:25:44 +00:00
Bob Swift
1bd45a0c59
Add ZeroDivisionError handling in $mod function
2020-02-26 22:22:47 +00:00
Philipp Wolfer
bfb467588c
CI: Do not run archive artifacts for macOS always()
2020-02-25 17:37:50 +01:00
Philipp Wolfer
fc87a788a9
fix-header.py: Update alias list
2020-02-24 15:44:26 +01:00
Philipp Wolfer
2ab612173a
Fixed Windows Store patch version
...
Next patch version needs to be larger than 6975 to avoid update issues, since the previous release had 2.3.6975.
2020-02-24 15:22:11 +01:00
Philipp Wolfer
dcd9fc05a8
Add 2.3 to api_versions
2020-02-24 14:47:56 +01:00
Philipp Wolfer
1948f0c116
Fix build numbers for CI builds
...
Count the number of commits on the master branch since last release tag. This reduces the size and avoids issues for building the patch version for the Windows store app, since this is limited to a maximum of 65535.
2020-02-24 13:46:57 +00:00
Laurent Monin
4991b0e56e
Update picard.pot: mostly to resync line numbers after fix_header was run
2020-02-24 12:16:00 +01:00
Laurent Monin
8245afbd5b
Merge pull request #1500 from zas/run_fix_header
...
Run fix header script on all Python source files
2020-02-24 10:56:57 +01:00
Philipp Wolfer
eafac31b3a
Bump version number to 2.3.1dev1
2020-02-24 10:44:32 +01:00
Philipp Wolfer
b03e4576b2
CI: Fix build numbers for macOS and Windows packages
...
Fetch the entire git history for macOS and Windows packaging builds to create a build number. This is especially important for the Windows store builds.
2020-02-24 10:28:01 +01:00
Laurent Monin
6b5e852a60
Run fix-header on *.py
2020-02-24 10:25:09 +01:00
Laurent Monin
9093abdff7
fix-header.py: output progress message (to stderr)
2020-02-24 10:07:53 +01:00
Laurent Monin
2f8985a478
fix-header.py: Fix IndexError when file is empty
2020-02-24 10:07:05 +01:00
Philipp Wolfer
b142fd6315
Updated Windows store language
...
Add Spanish, remove Chinese (China) as we don't have complete store description for it yet. Also use en-us as default ENglish, as this is mandatory to fill in. Let's not manage multiple English variants for now to reduce overhead.
2020-02-24 10:04:57 +01:00
Philipp Wolfer
3029d4a432
Updated picard.pot
2020-02-24 09:53:38 +01:00
Philipp Wolfer
7e937e851a
PICARD-1765: Adding / removing preserved tags must normalize the tags
2020-02-24 08:49:22 +00:00
Philipp Wolfer
5d450e563f
PICARD-1746: Change "Generate Fingerprints" shortcut to Ctrl+Shift+Y
2020-02-24 08:32:36 +00:00
Laurent Monin
b5a97c9926
Merge pull request #1493 from zas/cov_cleanup
...
Coverage & cleanup
2020-02-24 00:34:49 +01:00
Laurent Monin
3585d40b0b
PICARD-1762: fix broken PDF identification
...
In identify(), comparaison was done against `str` instead of `bytecode`, due to the lack of `b` prefix
ImageInfoTest: add missing test PDF file identification
2020-02-23 13:07:30 +00:00
Laurent Monin
ed351fbbd6
ImageInfoTest: remove useless ending comma
2020-02-22 21:04:32 +01:00
Laurent Monin
dc77e652be
album_artist_from_path(): simplify regex
...
Use word boundaries and do not capture
2020-02-22 21:04:32 +01:00
Laurent Monin
ef7e154c4f
album_artist_from_path(): remove useless code
...
len(dirs) == 0 cannot happen, because `whatever.split('/')` is always a list with at least 1 element.
So simplify code and remove useless tests
2020-02-22 21:04:32 +01:00
Laurent Monin
77a9d0110a
AlbumArtistFromPathTest: add a bunch of missing tests
2020-02-22 21:04:32 +01:00
Laurent Monin
27f04356d5
TranslateArtistTest: ensure name is returned in latin-only case
...
The previous test wasn't that good as a reversed sortname could actually assert true
2020-02-22 21:04:32 +01:00
Laurent Monin
af5e9d647e
TranslateArtistTest: improve coverage
...
Cases with non-latin and 3 or 4 chunks were missing
2020-02-22 21:04:32 +01:00
Laurent Monin
bd95736da4
TranslateArtistTest: u"" -> "" (Python3)
2020-02-22 21:04:32 +01:00
Laurent Monin
64bfb17733
TranslateArtistTest: remove useless assertNotEqual()
...
Since we assert a equals b, no need to assert a not equal c when b & c are different
Coverage is unchanged.
2020-02-22 21:04:32 +01:00
Laurent Monin
42d0a72b74
Improve coverage of union_sorted_lists() tests
2020-02-22 21:04:32 +01:00
Bob Swift
170b8e0aa7
Add $sortmulti, $reversemulti and associated tests
2020-02-22 19:24:13 +00:00
Philipp Wolfer
4a4f699077
PICARD-1760: Prevent duplicates in top tags editor
2020-02-22 19:13:26 +00:00
Laurent Monin
51f81f1783
Merge pull request #1490 from zas/fix_header
...
Fix license header in source files
2020-02-22 15:50:27 +01:00
Laurent Monin
8dce9b1342
Add support for fix-header: skip, to ignore a file
...
Comment formats supported:
#
/* */
//
2020-02-22 13:52:36 +01:00
Philipp Wolfer
a319513410
fix-header.py: Preserve shebang
...
Preserve shebang at start of file. Also ran fix-header.py on itself.
2020-02-22 12:46:48 +01:00
Laurent Monin
5a0abcf156
Add few more entries to aliases
2020-02-22 12:46:48 +01:00
Laurent Monin
6f61574d5f
fix-header.py: Fixed merging years from log and file
2020-02-22 12:46:48 +01:00