Commit Graph

15 Commits

Author SHA1 Message Date
Philipp Wolfer
251b882f8a PICARD-1991: Ensure file name case changes on Linux
Apply workaround to ensure file name changes in case only also on Linux when using case insensitive file systems.
Unify the approaches for Windows and Linux. Apply the workaround only if necessary.
2020-10-31 13:15:18 +01:00
Philipp Wolfer
e1545bffca PICARD-1992: On Windows use win32api.GetLongPathNameW to get actual file name
Use win32api.GetLongPathNameW on Windows to get the actual file name with the casing as on disk.
2020-10-31 11:52:48 +01:00
Philipp Wolfer
d4af836d11 PICARD-1992: Force case-changing on file systems not supporting it
On some case sensitive, case preserving file systems a normal rename will not change the casing. Detect this case and workaround it by doing a double rename.
2020-10-31 11:52:47 +01:00
Laurent Monin
6b5e852a60 Run fix-header on *.py 2020-02-24 10:25:09 +01:00
Philipp Wolfer
dd4da2aa47 Updated isort config to put test imports in separate section 2019-04-04 08:32:22 +02:00
Philipp Wolfer
05fc98c64a Run isort over all files 2019-04-03 21:19:12 +02:00
Laurent Monin
6388ef20f5 Use IS_WIN, IS_MACOS, IS_LINUX 2019-03-05 21:53:32 +01:00
Laurent Monin
b19d1039ad Fix fake tuple issue again: sys.platform in ("win32") doesn't do what it is meant for 2018-12-16 17:17:47 +01:00
Wieland Hoffmann
e624aa121c Make PicardTestCase the parent class of all tests
This brings the faketagger and, more importantly, settings reset to all of them.
2018-10-23 17:32:50 +02:00
Laurent Monin
16a3074be4 PEP8 fixes 2018-09-13 17:54:13 +02:00
Laurent Monin
5329e3592a Clean up and sort imports using isort
Add a config for isort (https://github.com/timothycrosley/isort)
Run isort -rc . and make import style consistent across files
Add a note about `isort` in CONTRIBUTING.md
2018-08-22 08:51:25 +02:00
Laurent Monin
90ce834eab Use Python3 super()
https://www.python.org/dev/peps/pep-3135/
https://docs.python.org/3.5/library/functions.html#super
https://rhettinger.wordpress.com/2011/05/26/super-considered-super/
2018-01-26 09:18:59 +01:00
Sambhav Kothari
08e101755a Fetch max filename length from system for unix
Instead of hardcoding the value to 255, fetch the max filename length
from system limits.

Related: Docker limits max filename size to 242
2016-12-27 01:47:38 +05:30
Ionuț Ciocîrlan
156aeda8a0 updated tests for filename shortening (which now returns relative paths) 2014-01-07 17:59:50 +02:00
Ionuț Ciocîrlan
aaab0dae48 moved filenaming stuff to its own module 2013-07-06 11:38:12 +03:00