winrt packaging bug has been fixed

This commit is contained in:
Damien Elmes 2021-02-03 13:34:44 +10:00
parent 168963460f
commit 38850c6856
3 changed files with 2 additions and 22 deletions

View file

@ -26,9 +26,7 @@ fluent.syntax
# windows only # windows only
psutil; sys.platform == "win32" psutil; sys.platform == "win32"
pywin32; sys.platform == "win32" pywin32; sys.platform == "win32"
# pinned due to https://github.com/microsoft/xlang/issues/717 winrt; sys.platform == "win32" and platform_release == "10"
winrt==1.0.20239.1; sys.platform == "win32" and platform_release == "10" and python_version == "3.8"
winrt; sys.platform == "win32" and platform_release == "10" and python_version >= "3.9"
# transitive windows dependencies # transitive windows dependencies
atomicwrites; sys.platform == "win32" # via pytest atomicwrites; sys.platform == "win32" # via pytest

View file

@ -148,7 +148,7 @@ waitress==2.0.0b1
# via -r requirements.in # via -r requirements.in
werkzeug==1.0.1 werkzeug==1.0.1
# via flask # via flask
winrt==1.0.20239.1 ; sys_platform == "win32" and platform_release == "10" and python_version == "3.8" winrt==1.0.21033.1 ; sys_platform == "win32" and platform_release == "10"
# via -r requirements.in # via -r requirements.in
wrapt==1.12.1 wrapt==1.12.1
# via astroid # via astroid
@ -158,6 +158,3 @@ pip==21.0.1
# via pip-tools # via pip-tools
setuptools==53.0.0 setuptools==53.0.0
# via jsonschema # via jsonschema
# manually added for now; ensure it and the earlier winrt are not removed on update
winrt==1.0.20330.1; sys.platform == "win32" and platform_release == "10" and python_version >= "3.9"

View file

@ -15,19 +15,4 @@ print("Updating deps...")
os.chdir("pip") os.chdir("pip")
sys.argv[1:] = ["compile", "--allow-unsafe", "--upgrade", "--no-header"] sys.argv[1:] = ["compile", "--allow-unsafe", "--upgrade", "--no-header"]
def after_run():
with open("requirements.txt", "a+") as file:
file.write(
"""
# manually added for now; ensure it and the earlier winrt are not removed on update
winrt==1.0.20330.1; sys.platform == "win32" and platform_release == "10" and python_version >= "3.9"
"""
)
import atexit
atexit.register(after_run)
cli() cli()