mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
test/: PEP8 compliancy (#24803)
* test/: PEP8 compliancy - Make PEP8 compliant * Python3 chokes on casting int to bytes (#24952) But if we tell the formatter that the var is a number, it works
This commit is contained in:
parent
31c59ad5f9
commit
4efec414e7
110 changed files with 1702 additions and 1547 deletions
8
setup.py
8
setup.py
|
@ -8,15 +8,15 @@ try:
|
|||
from setuptools import setup, find_packages
|
||||
except ImportError:
|
||||
print("Ansible now needs setuptools in order to build. Install it using"
|
||||
" your package manager (usually python-setuptools) or via pip (pip"
|
||||
" install setuptools).")
|
||||
" your package manager (usually python-setuptools) or via pip (pip"
|
||||
" install setuptools).")
|
||||
sys.exit(1)
|
||||
|
||||
with open('requirements.txt') as requirements_file:
|
||||
install_requirements = requirements_file.read().splitlines()
|
||||
if not install_requirements:
|
||||
print("Unable to read requirements from the requirements.txt file"
|
||||
"That indicates this copy of the source code is incomplete.")
|
||||
"That indicates this copy of the source code is incomplete.")
|
||||
sys.exit(2)
|
||||
|
||||
SYMLINKS = {'ansible': frozenset(('ansible-console',
|
||||
|
@ -49,7 +49,7 @@ setup(
|
|||
# Ansible will also make use of a system copy of python-six and
|
||||
# python-selectors2 if installed but use a Bundled copy if it's not.
|
||||
install_requires=install_requirements,
|
||||
package_dir={ '': 'lib' },
|
||||
package_dir={'': 'lib'},
|
||||
packages=find_packages('lib'),
|
||||
package_data={
|
||||
'': [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue