Browse Source

clarify platformdirs requirements, fixes #7393

3.0.0 is only required for macOS due to breaking changes.

2.6.0 was the last breaking change for Linux/UNIX.
Thomas Waldmann 2 years ago
parent
commit
85cc7418ca
1 changed files with 2 additions and 1 deletions
  1. 2 1
      setup.cfg

+ 2 - 1
setup.cfg

@@ -41,7 +41,8 @@ setup_requires =
 install_requires =
   msgpack >=1.0.3, <=1.0.4
   packaging
-  platformdirs >=3.0.0, <4.0.0
+  platformdirs >=3.0.0, <4.0.0; sys_platform == 'darwin'  # for macOS: breaking changes in 3.0.0,
+  platformdirs >=2.6.0, <4.0.0; sys_platform != 'darwin'  # for others: 2.6+ works consistently.
   argon2-cffi
 tests_require =
   pytest