Browse Source

Special handling for click w/python 3.9

pull/1267/head
Ross McFarland 6 months ago
parent
commit
6d5574a2e0
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      script/update-requirements

+ 12
- 0
script/update-requirements View File

@ -42,6 +42,18 @@ dev_frozen = sorted(
[p for p in dev_frozen if not p.startswith(our_package_name)]
)
# special handling for click until python 3.9 is gone due to it dropping
# support for active versions early
i = [i for i, r in enumerate(dev_frozen) if r.startswith('click==')][0]
dev_frozen = (
dev_frozen[:i]
+ [
"click==8.1.8; python_version<'3.10'",
f"{dev_frozen[i]}; python_version>='3.10'",
]
+ dev_frozen[i + 1 :]
)
print_packages(frozen, 'frozen')
print_packages(dev_frozen, 'dev_frozen')


Loading…
Cancel
Save