mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Merge pull request #11195 from shanemcd/update-pip-and-setuptools
Update pip and setuptools
This commit is contained in:
2
Makefile
2
Makefile
@@ -23,7 +23,7 @@ DEVEL_IMAGE_NAME ?= $(DEV_DOCKER_TAG_BASE)/awx_devel:$(COMPOSE_TAG)
|
|||||||
SRC_ONLY_PKGS ?= cffi,pycparser,psycopg2,twilio
|
SRC_ONLY_PKGS ?= cffi,pycparser,psycopg2,twilio
|
||||||
# These should be upgraded in the AWX and Ansible venv before attempting
|
# These should be upgraded in the AWX and Ansible venv before attempting
|
||||||
# to install the actual requirements
|
# to install the actual requirements
|
||||||
VENV_BOOTSTRAP ?= pip==19.3.1 setuptools==41.6.0 wheel==0.36.2
|
VENV_BOOTSTRAP ?= pip==21.2.4 setuptools==58.2.0 wheel==0.36.2
|
||||||
|
|
||||||
NAME ?= awx
|
NAME ?= awx
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
from pip.req import parse_requirements
|
from pip.req import parse_requirements
|
||||||
|
|
||||||
|
from pip._internal.req.constructors import parse_req_from_line
|
||||||
|
|
||||||
|
|
||||||
def test_python_and_js_licenses():
|
def test_python_and_js_licenses():
|
||||||
def index_licenses(path):
|
def index_licenses(path):
|
||||||
@@ -53,15 +55,16 @@ def test_python_and_js_licenses():
|
|||||||
fname = '%s/%s' % (path, req_file)
|
fname = '%s/%s' % (path, req_file)
|
||||||
|
|
||||||
for reqt in parse_requirements(fname, session=''):
|
for reqt in parse_requirements(fname, session=''):
|
||||||
name = reqt.name
|
parsed_requirement = parse_req_from_line(reqt.requirement, None)
|
||||||
version = str(reqt.specifier)
|
name = parsed_requirement.requirement.name
|
||||||
|
version = str(parsed_requirement.requirement.specifier)
|
||||||
if version.startswith('=='):
|
if version.startswith('=='):
|
||||||
version = version[2:]
|
version = version[2:]
|
||||||
if reqt.link:
|
if parsed_requirement.link:
|
||||||
if str(reqt.link).startswith(('http://', 'https://')):
|
if str(parsed_requirement.link).startswith(('http://', 'https://')):
|
||||||
(name, version) = str(reqt.req).split('==', 1)
|
(name, version) = str(parsed_requirement.requirement).split('==', 1)
|
||||||
else:
|
else:
|
||||||
(name, version) = reqt.link.filename.split('@', 1)
|
(name, version) = parsed_requirement.link.filename.split('@', 1)
|
||||||
if name.endswith('.git'):
|
if name.endswith('.git'):
|
||||||
name = name[:-4]
|
name = name[:-4]
|
||||||
if name == 'receptor':
|
if name == 'receptor':
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ twisted[tls]>=20.3.0 # CVE-2020-10108, CVE-2020-10109
|
|||||||
uWSGI
|
uWSGI
|
||||||
uwsgitop
|
uwsgitop
|
||||||
wheel
|
wheel
|
||||||
pip==19.3.1 # see UPGRADE BLOCKERs
|
pip==21.2.4 # see UPGRADE BLOCKERs
|
||||||
setuptools==41.6.0 # see UPGRADE BLOCKERs
|
setuptools==58.2.0 # see UPGRADE BLOCKERs
|
||||||
|
|
||||||
# Temporarily added to use ansible-runner from git branch, to be removed
|
# Temporarily added to use ansible-runner from git branch, to be removed
|
||||||
# when ansible-runner moves from requirements_git.txt to here
|
# when ansible-runner moves from requirements_git.txt to here
|
||||||
|
|||||||
@@ -412,9 +412,9 @@ zope.interface==5.0.0
|
|||||||
# via twisted
|
# via twisted
|
||||||
|
|
||||||
# The following packages are considered to be unsafe in a requirements file:
|
# The following packages are considered to be unsafe in a requirements file:
|
||||||
pip==19.3.1
|
pip==21.2.4
|
||||||
# via -r /awx_devel/requirements/requirements.in
|
# via -r /awx_devel/requirements/requirements.in
|
||||||
setuptools==41.6.0
|
setuptools==58.2.0
|
||||||
# via
|
# via
|
||||||
# -r /awx_devel/requirements/requirements.in
|
# -r /awx_devel/requirements/requirements.in
|
||||||
# asciichartpy
|
# asciichartpy
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
django-debug-toolbar==1.11
|
django-debug-toolbar==1.11
|
||||||
django-rest-swagger
|
django-rest-swagger
|
||||||
pprofile
|
# pprofile - re-add once https://github.com/vpelletier/pprofile/issues/41 is addressed
|
||||||
ipython==7.21.0
|
ipython==7.21.0
|
||||||
unittest2
|
unittest2
|
||||||
black
|
black
|
||||||
@@ -14,9 +14,9 @@ pytest-xdist==1.34.0 # 2.0.0 broke zuul for some reason
|
|||||||
tox # for awxkit
|
tox # for awxkit
|
||||||
logutils
|
logutils
|
||||||
jupyter
|
jupyter
|
||||||
matplotlib
|
# matplotlib - Caused issues when bumping to setuptools 58
|
||||||
backports.tempfile # support in unit tests for py32+ tempfile.TemporaryDirectory
|
backports.tempfile # support in unit tests for py32+ tempfile.TemporaryDirectory
|
||||||
mockldap
|
git+https://github.com/artefactual-labs/mockldap.git@master#egg=mockldap
|
||||||
sdb
|
sdb
|
||||||
remote-pdb
|
remote-pdb
|
||||||
gprof2dot
|
gprof2dot
|
||||||
|
|||||||
Reference in New Issue
Block a user