mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Bump pip and setuptools requirements
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
606731993b
commit
90bca1a7f9
3 changed files with 19 additions and 4 deletions
12
.github/actions/build-onedir-bare/action.yml
vendored
12
.github/actions/build-onedir-bare/action.yml
vendored
|
@ -34,3 +34,15 @@ runs:
|
|||
run: |
|
||||
python3 -c "import os; os.makedirs('artifacts', exist_ok=True)"
|
||||
python3 -m relenv create --arch=${{ inputs.arch }} artifacts/${{ inputs.package-name }}
|
||||
|
||||
- name: Upgrade Setuptools & Pip
|
||||
shell: bash
|
||||
if: steps.onedir-pkg-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
if [ "${{ inputs.platform }}" != "windows" ]; then
|
||||
artifacts/${{ inputs.package-name }}/bin/python3 -m pip install -U "pip>=22.3.1,<23.0"
|
||||
artifacts/${{ inputs.package-name }}/bin/python3 -m pip install -U "setuptools>=65.6.3,<66"
|
||||
else
|
||||
artifacts/${{ inputs.package-name }}/Scripts/python -m pip install -U "pip>=22.3.1,<23.0"
|
||||
artifacts/${{ inputs.package-name }}/Scripts/python -m pip install -U "setuptools>=65.6.3,<66"
|
||||
fi
|
||||
|
|
|
@ -297,8 +297,9 @@ def _upgrade_pip_setuptools_and_wheel(session, upgrade=True):
|
|||
install_command.append("-U")
|
||||
install_command.extend(
|
||||
[
|
||||
"pip>=20.2.4,<21.2",
|
||||
"setuptools!=50.*,!=51.*,!=52.*,<59",
|
||||
"pip>=22.3.1,<23.0",
|
||||
# https://github.com/pypa/setuptools/commit/137ab9d684075f772c322f455b0dd1f992ddcd8f
|
||||
"setuptools>=65.6.3,<66",
|
||||
"wheel",
|
||||
]
|
||||
)
|
||||
|
|
|
@ -1601,9 +1601,11 @@ class VirtualEnv:
|
|||
venv_dir = attr.ib(converter=_cast_to_pathlib_path)
|
||||
env = attr.ib(default=None)
|
||||
system_site_packages = attr.ib(default=False)
|
||||
pip_requirement = attr.ib(default="pip>=20.2.4,<21.2", repr=False)
|
||||
pip_requirement = attr.ib(default="pip>=22.3.1,<23.0", repr=False)
|
||||
setuptools_requirement = attr.ib(
|
||||
default="setuptools!=50.*,!=51.*,!=52.*", repr=False
|
||||
# https://github.com/pypa/setuptools/commit/137ab9d684075f772c322f455b0dd1f992ddcd8f
|
||||
default="setuptools>=65.6.3,<66",
|
||||
repr=False,
|
||||
)
|
||||
# TBD build_requirement = attr.ib(default="build!=0.6.*", repr=False) # add build when implement pyproject.toml
|
||||
environ = attr.ib(init=False, repr=False)
|
||||
|
|
Loading…
Add table
Reference in a new issue