30350n / inventree_part_import

CLI to import parts from suppliers like DigiKey, LCSC, Mouser, etc. to InvenTree
MIT License
28 stars 8 forks source link

Fix minimum required platformdirs version #2

Closed spike77453 closed 8 months ago

spike77453 commented 8 months ago

This sets the minimum required platformdirs version to 3.2.0 since ensure_exists does not exists before 3.2.0: https://github.com/platformdirs/platformdirs/commit/fd0172a3a375c53737cade44cb6155ac8f243344

ensure_exists is used in the following places:

This prevents TypeError: user_cache_path() got an unexpected keyword argument 'ensure_exists' when running inventree_part_import in environments with older versions of platformdirs installed.

30350n commented 8 months ago

Great, thanks for the fix!