requirements: Work around limitations for macOS-specific deps

Also see #3526
This commit is contained in:
Florian Bruhin 2022-09-19 10:51:27 +02:00
parent 47ef2ca41d
commit ecd7565aff
2 changed files with 10 additions and 6 deletions

View File

@ -2,8 +2,13 @@ Jinja2
PyYAML
## Only used on macOS to make borderless windows resizable
pyobjc-core
pyobjc-framework-Cocoa
## our recompile_requirements.py can't really deal with
## platform-specific dependencies unfortunately...
# pyobjc-core
# pyobjc-framework-Cocoa
#@ add: # Unpinned due to recompile_requirements.py limitations
#@ add: pyobjc-core ; sys_platform=="darwin"
#@ add: pyobjc-framework-Cocoa ; sys_platform=="darwin"
## stdlib backports
importlib-resources
@ -20,5 +25,3 @@ typing_extensions # from importlib-metadata
#@ markers: importlib-resources python_version=="3.7.*" or python_version=="3.8.*"
#@ markers: importlib-metadata python_version=="3.7.*"
#@ markers: typing_extensions python_version<"3.8"
#@ markers: pyobjc-core sys_platform=="darwin"
#@ markers: pyobjc-framework-Cocoa sys_platform=="darwin"

View File

@ -7,8 +7,9 @@ importlib-resources==5.9.0 ; python_version=="3.7.*" or python_version=="3.8.*"
Jinja2==3.1.2
MarkupSafe==2.1.1
Pygments==2.13.0
pyobjc-core==8.5 ; sys_platform=="darwin"
pyobjc-framework-Cocoa==8.5 ; sys_platform=="darwin"
PyYAML==6.0
typing_extensions==4.3.0 ; python_version<"3.8"
zipp==3.8.1
# Unpinned due to recompile_requirements.py limitations
pyobjc-core ; sys_platform=="darwin"
pyobjc-framework-Cocoa ; sys_platform=="darwin"