1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-03-22 22:51:39 +00:00

Change extra requires to filter on platform

Also created one extra `nativeLib` to replace the orignal two.  Will remove
the others after a couple releases.
This commit is contained in:
2021-08-07 21:04:40 -05:00
parent 6612545110
commit 84c220cbd9
2 changed files with 13 additions and 2 deletions

View File

@@ -35,7 +35,14 @@ setup(
description="Send file to trash natively under Mac OS X, Windows and Linux.",
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
extras_require={"win32": ["pywin32"], "objc": ["pyobjc-framework-Cocoa"]},
extras_require={
"win32": ['pywin32; sys_platform == "win32"'],
"objc": ['pyobjc-framework-Cocoa; sys_platform == "darwin"'],
"nativeLib": [
'pywin32; sys_platform == "win32"',
'pyobjc-framework-Cocoa; sys_platform == "darwin"',
],
},
project_urls={"Bug Reports": "https://github.com/arsenetar/send2trash/issues"},
entry_points={"console_scripts": ["send2trash=send2trash.__main__:main"]},
)