import zipfile
from defusedxml.minidom import parseString
-import glob2 # Switch to glob when Python < 3.5 support is dropped
+import glob
import requests
import six
paths = []
for _type in compress_types:
search = os.path.join(dir, _type)
- paths.extend(glob2.glob(search, recursive=True))
+ paths.extend(glob.glob(search, recursive=True))
for _file in paths:
with open(_file, 'rb') as src, gzip.open('{}.gz'.format(_file), 'wb') as dest:
continue
search = os.path.join(workspace, p)
- paths.extend(glob2.glob(search, recursive=True))
+ paths.extend(glob.glob(search, recursive=True))
log.debug('Files found: {}'.format(paths))
no_dups_paths = _remove_duplicates_and_sort(paths)
file_list = []
previous_dir = os.getcwd()
os.chdir(deploy_dir)
- files = glob2.glob('**/*')
+ files = glob.glob('**/*', recursive=True)
for file in files:
if os.path.isfile(file):
base_name = os.path.basename(file)
--- /dev/null
+---
+upgrade:
+ - |
+ Drop support for python2.7 and python3.4(EOL)
+ lftools now requires python >= 3.6 This allows us to remove
+ remaining pins, and to move from glob2 to builtin glob
click
docker
-glob2 # Needed for Python < 3.5 recursive glob support
defusedxml # Needed due to tox complains on parseString not safe
jsonschema
requests
six
python-jenkins
tqdm
-xdg~=3.0.0;python_version>='3' # xdg requires Python '>=3.6,<4.0' but the running Python is 3.5.7
+xdg
pygithub
httplib2
email_validator