Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Fix Darwin dependencies
Browse files Browse the repository at this point in the history
The pyobjc package requires in all pyobjc-* packages, most of which we
don't use. This fixes the requirements so that we only install the
packages we are using.
  • Loading branch information
dlech committed Jun 26, 2020
1 parent 304b695 commit e1ee35a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ name = "pypi"

[packages]
txdbus = {version = ">=1.1.1", sys_platform = "== 'linux'"}
pyobjc = {version = "*", sys_platform = "== 'darwin'"}
pyobjc-core = {version = "*", sys_platform = "== 'darwin'"}
pyobjc-framework-CoreBluetooth = {version = "*", sys_platform = "== 'darwin'"}
pyobjc-framework-libdispatch = {version = "*", sys_platform = "== 'darwin'"}
pythonnet = {version = ">=2.5.1", sys_platform = "== 'win32'"}

[dev-packages]
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
txdbus>=1.1.1; sys_platform=="linux"
pyobjc==6.2;sys_platform == 'darwin'
pyobjc-core==6.2;sys_platform == 'darwin'
pyobjc-framework-CoreBluetooth==6.2;sys_platform == 'darwin'
pyobjc-framework-libdispatch==6.2;sys_platform == 'darwin'
pythonnet>=2.5.1; sys_platform == 'win32'
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
# Linux reqs
'txdbus;platform_system=="Linux"',
# macOS reqs
'pyobjc;platform_system=="Darwin"',
'pyobjc-core;platform_system=="Darwin"',
'pyobjc-framework-CoreBluetooth;platform_system=="Darwin"',
'pyobjc-framework-libdispatch;platform_system=="Darwin"',
# Windows reqs
'pythonnet;platform_system=="Windows"',
]
Expand Down

0 comments on commit e1ee35a

Please sign in to comment.