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:
9
setup.py
9
setup.py
@@ -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"]},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user