Have update-bundled check for updates to all bundled code

Add a test for whether we have bundled code inside of ansible that needs to be updated
This commit is contained in:
Toshio Kuratomi 2019-02-05 10:18:00 -08:00
commit dfd8b659c0
8 changed files with 184 additions and 35 deletions

View file

@ -24,7 +24,8 @@ Compat selectors library. Python-3.5 has this builtin. The selectors2
package exists on pypi to backport the functionality as far as python-2.6.
'''
# The following makes it easier for us to script updates of the bundled code
_BUNDLED_METADATA = {"pypi_name": "selectors2", "version": "1.1.0"}
_BUNDLED_METADATA = {"pypi_name": "selectors2", "version": "1.1.0", "version_constraints": ">1.0,<2.0"}
# Added these bugfix commits from 2.1.0:
# * https://github.com/SethMichaelLarson/selectors2/commit/3bd74f2033363b606e1e849528ccaa76f5067590
# Wrap kqueue.control so that timeout is a keyword arg

View file

@ -66,6 +66,11 @@ from __future__ import unicode_literals
import itertools
import struct
# The following makes it easier for us to script updates of the bundled code and is not part of
# upstream
_BUNDLED_METADATA = {"pypi_name": "ipaddress", "version": "1.0.22"}
__version__ = '1.0.22'
# Compatibility functions

View file

@ -33,6 +33,10 @@ import operator
import sys
import types
# The following makes it easier for us to script updates of the bundled code. It is not part of
# upstream six
_BUNDLED_METADATA = {"pypi_name": "six", "version": "1.11.0"}
__author__ = "Benjamin Peterson <benjamin@python.org>"
__version__ = "1.11.0"

View file

@ -136,6 +136,10 @@ if not HAS_SSLCONTEXT and HAS_SSL:
del libssl
# The following makes it easier for us to script updates of the bundled backports.ssl_match_hostname
# The bundled backports.ssl_match_hostname should really be moved into its own file for processing
_BUNDLED_METADATA = {"pypi_name": "backports.ssl_match_hostname", "version": "3.5.0.1"}
LOADED_VERIFY_LOCATIONS = set()
HAS_MATCH_HOSTNAME = True