Commit graph

321 commits

Author SHA1 Message Date
Mike Miller
739780f826 Merge 6448788ddc into 78818b90cd 2017-06-08 08:44:21 +00:00
Anthony Sottile
78818b90cd v0.8.0 2017-06-06 14:26:36 -07:00
Mike Miller
6448788ddc Force setuptools < 36.0.0 to avoid simplejson/six error
With the latest setuptools, pre-commit run fails with the following

[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: Command: ('/root/.pre-commit/repoDFpupm/py_env-default/bin/python2.7', u'/root/.pre-commit/repoDFpupm/py_env-default/bin/pip', 'install', '.')
Return code: 1
Expected return code: 0
Output:
    Processing /root/.pre-commit/repoDFpupm
    Collecting flake8!=2.5.3 (from pre-commit-hooks==0.7.1)
      Downloading flake8-3.3.0-py2.py3-none-any.whl (66kB)
    Collecting autopep8>=1.1 (from pre-commit-hooks==0.7.1)
      Downloading autopep8-1.3.2-py2.py3-none-any.whl (42kB)
    Collecting pyyaml (from pre-commit-hooks==0.7.1)
    Collecting simplejson (from pre-commit-hooks==0.7.1)
      Downloading simplejson-3.10.0.tar.gz (77kB)
    Collecting six (from pre-commit-hooks==0.7.1)
      Downloading six-1.10.0-py2.py3-none-any.whl
    Collecting enum34; python_version < "3.4" (from flake8!=2.5.3->pre-commit-hooks==0.7.1)
      Downloading enum34-1.1.6-py2-none-any.whl
    Collecting configparser; python_version < "3.2" (from flake8!=2.5.3->pre-commit-hooks==0.7.1)
      Downloading configparser-3.5.0.tar.gz
    Collecting pyflakes<1.6.0,>=1.5.0 (from flake8!=2.5.3->pre-commit-hooks==0.7.1)
      Downloading pyflakes-1.5.0-py2.py3-none-any.whl (225kB)
    Collecting mccabe<0.7.0,>=0.6.0 (from flake8!=2.5.3->pre-commit-hooks==0.7.1)
      Downloading mccabe-0.6.1-py2.py3-none-any.whl
    Collecting pycodestyle<2.4.0,>=2.0.0 (from flake8!=2.5.3->pre-commit-hooks==0.7.1)
      Downloading pycodestyle-2.3.1-py2.py3-none-any.whl (45kB)
    Building wheels for collected packages: simplejson, configparser
      Running setup.py bdist_wheel for simplejson: started
      Running setup.py bdist_wheel for simplejson: finished with status 'error'
      Complete output from command /root/.pre-commit/repoDFpupm/py_env-default/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Kn9zYg/simplejson/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpjj9RY8pip-wheel- --python-tag cp27:
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-2.7
      creating build/lib.linux-x86_64-2.7/simplejson
      copying simplejson/encoder.py -> build/lib.linux-x86_64-2.7/simplejson
      copying simplejson/ordered_dict.py -> build/lib.linux-x86_64-2.7/simplejson
      copying simplejson/scanner.py -> build/lib.linux-x86_64-2.7/simplejson
      copying simplejson/decoder.py -> build/lib.linux-x86_64-2.7/simplejson
      copying simplejson/compat.py -> build/lib.linux-x86_64-2.7/simplejson
      copying simplejson/tool.py -> build/lib.linux-x86_64-2.7/simplejson
      copying simplejson/__init__.py -> build/lib.linux-x86_64-2.7/simplejson
      creating build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_decode.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_bitsize_int_as_string.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_speedups.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_default.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_errors.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_pass2.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_namedtuple.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_item_sort_key.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_check_circular.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_raw_json.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_for_json.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_float.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_tuple.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_subclass.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_unicode.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_dump.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_bigint_as_string.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_encode_basestring_ascii.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_decimal.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_encode_for_html.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_str_subclass.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_pass1.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_iterable.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_separators.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/__init__.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_tool.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_recursion.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_scanstring.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_fail.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_pass3.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      copying simplejson/tests/test_indent.py -> build/lib.linux-x86_64-2.7/simplejson/tests
      running build_ext
      building 'simplejson._speedups' extension
      creating build/temp.linux-x86_64-2.7
      creating build/temp.linux-x86_64-2.7/simplejson
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.7 -c simplejson/_speedups.c -o build/temp.linux-x86_64-2.7/simplejson/_speedups.o
      unable to execute 'gcc': No such file or directory
      ***************************************************************************
      WARNING: The C extension could not be compiled, speedups are not enabled.
      Failure information, if any, is above.
      I'm retrying the build without the C extension now.
      ***************************************************************************
      running bdist_wheel
      running build
      running build_py
      creating build/lib
      creating build/lib/simplejson
      copying simplejson/encoder.py -> build/lib/simplejson
      copying simplejson/ordered_dict.py -> build/lib/simplejson
      copying simplejson/scanner.py -> build/lib/simplejson
      copying simplejson/decoder.py -> build/lib/simplejson
      copying simplejson/compat.py -> build/lib/simplejson
      copying simplejson/tool.py -> build/lib/simplejson
      copying simplejson/__init__.py -> build/lib/simplejson
      creating build/lib/simplejson/tests
      copying simplejson/tests/test_decode.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_bitsize_int_as_string.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_speedups.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_default.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_errors.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_pass2.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_namedtuple.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_item_sort_key.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_check_circular.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_raw_json.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_for_json.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_float.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_tuple.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_subclass.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_unicode.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_dump.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_bigint_as_string.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_encode_basestring_ascii.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_decimal.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_encode_for_html.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_str_subclass.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_pass1.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_iterable.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_separators.py -> build/lib/simplejson/tests
      copying simplejson/tests/__init__.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_tool.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_recursion.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_scanstring.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_fail.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_pass3.py -> build/lib/simplejson/tests
      copying simplejson/tests/test_indent.py -> build/lib/simplejson/tests
      installing to build/bdist.linux-x86_64/wheel
      running install
      running install_lib
      creating build/bdist.linux-x86_64
      creating build/bdist.linux-x86_64/wheel
      creating build/bdist.linux-x86_64/wheel/simplejson
      copying build/lib/simplejson/encoder.py -> build/bdist.linux-x86_64/wheel/simplejson
      copying build/lib/simplejson/ordered_dict.py -> build/bdist.linux-x86_64/wheel/simplejson
      copying build/lib/simplejson/scanner.py -> build/bdist.linux-x86_64/wheel/simplejson
      copying build/lib/simplejson/decoder.py -> build/bdist.linux-x86_64/wheel/simplejson
      copying build/lib/simplejson/compat.py -> build/bdist.linux-x86_64/wheel/simplejson
      copying build/lib/simplejson/tool.py -> build/bdist.linux-x86_64/wheel/simplejson
      creating build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_decode.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_bitsize_int_as_string.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_speedups.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_default.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_errors.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_pass2.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_namedtuple.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_item_sort_key.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_check_circular.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_raw_json.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_for_json.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_float.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_tuple.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_subclass.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_unicode.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_dump.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_bigint_as_string.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_encode_basestring_ascii.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_decimal.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_encode_for_html.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_str_subclass.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_pass1.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_iterable.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_separators.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/__init__.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_tool.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_recursion.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_scanstring.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_fail.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_pass3.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/tests/test_indent.py -> build/bdist.linux-x86_64/wheel/simplejson/tests
      copying build/lib/simplejson/__init__.py -> build/bdist.linux-x86_64/wheel/simplejson
      running install_egg_info
      running egg_info
      writing simplejson.egg-info/PKG-INFO
      writing top-level names to simplejson.egg-info/top_level.txt
      writing dependency_links to simplejson.egg-info/dependency_links.txt
      reading manifest file 'simplejson.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      writing manifest file 'simplejson.egg-info/SOURCES.txt'
      Copying simplejson.egg-info to build/bdist.linux-x86_64/wheel/simplejson-3.10.0-py2.7.egg-info
      running install_scripts
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/tmp/pip-build-Kn9zYg/simplejson/setup.py", line 121, in <module>
          run_setup(False)
        File "/tmp/pip-build-Kn9zYg/simplejson/setup.py", line 108, in run_setup
          **kw)
        File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
          dist.run_commands()
        File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
          self.run_command(cmd)
        File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
          cmd_obj.run()
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 215, in run
          self.run_command('install')
        File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
          cmd_obj.run()
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
          return orig.install.run(self)
        File "/usr/local/lib/python2.7/distutils/command/install.py", line 575, in run
          self.run_command(cmd_name)
        File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
          cmd_obj.run()
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/install_scripts.py", line 17, in run
          import setuptools.command.easy_install as ei
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 49, in <module>
          from setuptools.py27compat import rmtree_safe
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/py27compat.py", line 7, in <module>
          import six
      ImportError: No module named six

      ----------------------------------------
      Running setup.py clean for simplejson
      Running setup.py bdist_wheel for configparser: started
      Running setup.py bdist_wheel for configparser: finished with status 'error'
      Complete output from command /root/.pre-commit/repoDFpupm/py_env-default/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Kn9zYg/configparser/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpx2UVJJpip-wheel- --python-tag cp27:
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib
      copying src/configparser.py -> build/lib
      creating build/lib/backports
      copying src/backports/__init__.py -> build/lib/backports
      creating build/lib/backports/configparser
      copying src/backports/configparser/helpers.py -> build/lib/backports/configparser
      copying src/backports/configparser/__init__.py -> build/lib/backports/configparser
      running egg_info
      writing src/configparser.egg-info/PKG-INFO
      writing namespace_packages to src/configparser.egg-info/namespace_packages.txt
      writing top-level names to src/configparser.egg-info/top_level.txt
      writing dependency_links to src/configparser.egg-info/dependency_links.txt
      reading manifest file 'src/configparser.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      writing manifest file 'src/configparser.egg-info/SOURCES.txt'
      installing to build/bdist.linux-x86_64/wheel
      running install
      running install_lib
      copying configparser.py -> build/bdist.linux-x86_64/wheel
      Skipping installation of build/bdist.linux-x86_64/wheel/backports/__init__.py (namespace package)
      copying backports/configparser/helpers.py -> build/bdist.linux-x86_64/wheel/backports/configparser
      copying backports/configparser/__init__.py -> build/bdist.linux-x86_64/wheel/backports/configparser
      running install_egg_info
      Copying src/configparser.egg-info to build/bdist.linux-x86_64/wheel/configparser-3.5.0-py2.7.egg-info
      Installing build/bdist.linux-x86_64/wheel/configparser-3.5.0-py2.7-nspkg.pth
      running install_scripts
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/tmp/pip-build-Kn9zYg/configparser/setup.py", line 63, in <module>
          'Topic :: Software Development :: Libraries :: Python Modules',
        File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
          dist.run_commands()
        File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
          self.run_command(cmd)
        File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
          cmd_obj.run()
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 215, in run
          self.run_command('install')
        File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
          cmd_obj.run()
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
          return orig.install.run(self)
        File "/usr/local/lib/python2.7/distutils/command/install.py", line 575, in run
          self.run_command(cmd_name)
        File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
          self.distribution.run_command(command)
        File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
          cmd_obj.run()
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/install_scripts.py", line 17, in run
          import setuptools.command.easy_install as ei
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 49, in <module>
          from setuptools.py27compat import rmtree_safe
        File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/py27compat.py", line 7, in <module>
          import six
      ImportError: No module named six

      ----------------------------------------
      Running setup.py clean for configparser
    Failed to build simplejson configparser
    Installing collected packages: enum34, configparser, pyflakes, mccabe, pycodestyle, flake8, autopep8, pyyaml, simplejson, six, pre-commit-hooks
      Running setup.py install for configparser: started
        Running setup.py install for configparser: finished with status 'error'
        Complete output from command /root/.pre-commit/repoDFpupm/py_env-default/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Kn9zYg/configparser/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-LnaZWh-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.pre-commit/repoDFpupm/py_env-default/include/site/python2.7/configparser:
        running install
        running build
        running build_py
        creating build
        creating build/lib
        copying src/configparser.py -> build/lib
        creating build/lib/backports
        copying src/backports/__init__.py -> build/lib/backports
        creating build/lib/backports/configparser
        copying src/backports/configparser/helpers.py -> build/lib/backports/configparser
        copying src/backports/configparser/__init__.py -> build/lib/backports/configparser
        running egg_info
        writing src/configparser.egg-info/PKG-INFO
        writing namespace_packages to src/configparser.egg-info/namespace_packages.txt
        writing top-level names to src/configparser.egg-info/top_level.txt
        writing dependency_links to src/configparser.egg-info/dependency_links.txt
        reading manifest file 'src/configparser.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        writing manifest file 'src/configparser.egg-info/SOURCES.txt'
        running install_lib
        copying configparser.py -> /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages
        Skipping installation of /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/backports/__init__.py (namespace package)
        copying backports/configparser/helpers.py -> /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/backports/configparser
        copying backports/configparser/__init__.py -> /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/backports/configparser
        byte-compiling /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/configparser.py to configparser.pyc
        byte-compiling /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/backports/configparser/helpers.py to helpers.pyc
        byte-compiling /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/backports/configparser/__init__.py to __init__.pyc
        running install_egg_info
        Copying src/configparser.egg-info to /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/configparser-3.5.0-py2.7.egg-info
        Installing /root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/configparser-3.5.0-py2.7-nspkg.pth
        running install_scripts
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/tmp/pip-build-Kn9zYg/configparser/setup.py", line 63, in <module>
            'Topic :: Software Development :: Libraries :: Python Modules',
          File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
            dist.run_commands()
          File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
            self.run_command(cmd)
          File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
            cmd_obj.run()
          File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
            return orig.install.run(self)
          File "/usr/local/lib/python2.7/distutils/command/install.py", line 575, in run
            self.run_command(cmd_name)
          File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
            self.distribution.run_command(command)
          File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
            cmd_obj.run()
          File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/install_scripts.py", line 17, in run
            import setuptools.command.easy_install as ei
          File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 49, in <module>
            from setuptools.py27compat import rmtree_safe
          File "/root/.pre-commit/repoDFpupm/py_env-default/lib/python2.7/site-packages/setuptools/py27compat.py", line 7, in <module>
            import six
        ImportError: No module named six

        ----------------------------------------

Errors:
      Failed building wheel for simplejson
      Failed building wheel for configparser
    Command "/root/.pre-commit/repoDFpupm/py_env-default/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Kn9zYg/configparser/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-LnaZWh-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.pre-commit/repoDFpupm/py_env-default/include/site/python2.7/configparser" failed with error code 1 in /tmp/pip-build-Kn9zYg/configparser/
2017-06-01 10:57:57 +03:00
Anthony Sottile
5bf6c09bfa Merge pull request #186 from pre-commit/attempt_to_fix_json_hook
Attempt to fix json hook
2017-03-20 11:53:31 -07:00
Anthony Sottile
c71b80b6ed bump revision of pre-commit-hooks 2017-03-20 11:26:07 -07:00
Anthony Sottile
dc50b7f09c Attempt to fix the json hook under test 2017-03-20 11:25:45 -07:00
Evan Felix
a8592669d9 Add a no commit to specific branch hook. (#185)
* add no commit code and config

* add the code

* remove version tweak

* fix logic, remove newline

* add Tests and cleanup testing issues

* remove extraneous modules

* cleanup some pep8 and flake issues

* reorder imports

* more fixes for syntax checking

* code cleanup based off asottile comments

* Use Contractions Properly, alphabatize new hook.

* Adding support for branches with a slash in them.
2017-03-20 10:36:51 -07:00
Anthony Sottile
b95dcad616 Fixups 2017-03-20 08:24:58 -07:00
Anthony Sottile
4c3cc8f3ed Merge pull request #184 from ushuz/pretty-json-no-ensure-ascii
Add --no-ensure-ascii option to pretty-format-json hook
2017-03-20 08:23:15 -07:00
ushuz
10f8bd2f22 Add unit test for --no-ensure-ascii option 2017-03-20 20:19:01 +08:00
John Hu
543c5c7e1a Add an option to disable ensure_ascii 2017-03-20 20:19:01 +08:00
Anthony Sottile
414cfa7b23 Merge pull request #182 from Hirevisor/master
Handling default django test filename of "tests.py"
2017-03-15 07:35:07 -07:00
Oliver Zhou
c380d0b3e3 Handling default django test filename of "tests.py" 2017-03-15 00:40:53 -07:00
Anthony Sottile
c847dd3f2e Merge pull request #179 from pre-commit/pyupgrade
Add pyupgrade
2017-03-12 18:17:06 -07:00
Anthony Sottile
9cee71b5df Add pyupgrade 2017-03-12 18:01:29 -07:00
Anthony Sottile
a11d9314b2 Merge pull request #177 from pre-commit/asottile-patch-1
Change `sha` in readme to be a real value
2017-02-25 15:48:10 -05:00
Anthony Sottile
6ff0a78460 Change sha in readme to be a real value
I noticed in our traffic on pre-commit/pre-commit that there were a lot of hits to [this issue](https://github.com/pre-commit/pre-commit/issues/366) presumably due to copy pasting from this readme.

This should reduce frustration in that regard (we'll have to remember to update this whenever bumping the version).
2017-02-25 12:33:07 -08:00
Anthony Sottile
e626cd5709 Merge pull request #175 from miketheman/miketheman/allow-missing-aws
Add flag to detect-aws-credentials to allow missing keys
2017-02-10 10:07:43 -08:00
Mike Fiedler
312e721ce9
Add flag to detect-aws-credentials to allow missing keys
In the event that there exists no configuration for AWS credentials and
they are not exported in to the current environment, a flag may be
passed to allow exiting the hook successfully.

Resolves #174

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-02-10 12:54:03 -05:00
Anthony Sottile
20f04626a1 v0.7.1 2017-02-07 10:00:42 -08:00
Anthony Sottile
f9ce156915 Merge pull request #172 from pre-commit/fix_trailing_whitespace
Only return nonzero when rewriting whitespace
2017-02-07 09:59:57 -08:00
Anthony Sottile
81147337c5 Only return nonzero when rewriting whitespace 2017-02-07 09:45:31 -08:00
Anthony Sottile
46251c9523 Fix coveralls badge 2017-02-01 08:30:58 -08:00
Anthony Sottile
63142f2d4e v0.7.0 2017-01-21 18:32:17 -08:00
Anthony Sottile
2df9948c67 Merge pull request #166 from pre-commit/pre_commit_hooks_yaml
Add .pre-commit-hooks.yaml for forward compatibility
2017-01-21 18:26:46 -08:00
Anthony Sottile
7752c42452 Add .pre-commit-hooks.yaml for forward compatibility
See pre-commit/pre-commit#470
2017-01-21 18:03:59 -08:00
Anthony Sottile
6f21fdf27f Merge pull request #165 from pre-commit/py36
Test py36 instead of py34
2017-01-21 17:21:35 -08:00
Anthony Sottile
bec44063b0 Test py36 instead of py34 2017-01-20 20:44:44 -08:00
Anthony Sottile
5da199bb8d Formatting fixups 2017-01-03 13:13:44 -08:00
Anthony Sottile
47996656b4 Merge pull request #162 from Dunedan/improve-aws-credential-searching
Improve searching for configured AWS credentials
2017-01-03 16:11:30 -05:00
Anthony Sottile
9c0460baa0 Merge pull request #163 from pre-commit/update_no_cover_for_appveyor
appveyor installed git-lfs, fix coverage
2017-01-03 16:00:54 -05:00
Anthony Sottile
a7971b7d26 appveyor installed git-lfs, fix coverage 2017-01-03 12:56:22 -08:00
Daniel Roschka
3939aee4a3 Address issues mentioned in review 2017-01-03 19:05:49 +01:00
Daniel Roschka
53697318ee Fix a typo in the README 2016-12-30 16:53:09 +01:00
Daniel Roschka
0fd09bf67a Add AWS_CONFIG_FILE to the environment variables
Turns out there is an additional environment variable AWS_CONFIG_FILE,
which gets evaluated for finding configuration files as well. This
commit adds support for it.
2016-12-30 10:39:38 +01:00
Daniel Roschka
b0d4cdb1ee Improve searching for configured AWS credentials
The previous approach for finding AWS credentials was pretty naive and
only covered contents of a single file (~/.aws/credentials by
default).

The AWS CLI documentation states various other ways to configure
credentials which weren't covered:
https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#credentials
Even that aren't all ways, a look into the code shows:
https://github.com/boto/botocore/blob/develop/botocore/credentials.py

This commit changes the behavior so the hook will behave in a way
that if the AWS CLI is able to obtain credentials from local files,
the hook will find them as well.

The changes in detail are:
- detect AWS session tokens and handle them like secret keys.
- always search credentials in the default AWS CLI file locations
  ( ~/.aws/config, ~/.aws/credentials, /etc/boto.cfg and ~/.boto)
- detect AWS credentials configured via environment variables in
  AWS_SECRET_ACCESS_KEY, AWS_SECURITY_TOKEN and AWS_SESSION_TOKEN
- check additional configuration files configured via environment
  variables (AWS_CREDENTIAL_FILE, AWS_SHARED_CREDENTIALS_FILE and
  BOTO_CONFIG)
- print out the first four characters of each secret found in files to
  be checked in, to make it easier to figure out, what the secrets
  were, which were going to be checked in
- improve error handling for parsing ini-files
- improve tests

There is a major functional change introduced by this commit:
Locations the AWS CLI gets credentials from are always searched and
there is no way to disable them. --credentials-file is still there to
specify one or more additional files to search credentials in. It's
the purpose of this hook to find and check files for found
credentials, so it should work in any case. As this commit also
improves error handling for not-existing or malformed configuration
files, it should be no big deal.

Receiving credentials via the EC2 and ECS meta data services is not
covered intentionally, to not further increase the amount of changes
in this commit and as it's probably an edge case anyway to have this
hook running in such an environment.
2016-12-30 08:41:24 +01:00
Chris Kuehl
9573c13884 Merge pull request #160 from Dunedan/detect-ed255519-keys
Detect Ed25519 keys as well
2016-12-26 16:55:50 -06:00
Chris Kuehl
cdb3e2e4bf Add trailing comma 2016-12-26 14:51:26 -08:00
Daniel Roschka
c549cb25a1 Detect Ed25519 keys as well
Ed255519 keys generated by OpenSSH contain "BEGIN OPENSSH PRIVATE KEY"
as identifier. This commit adds coverage for such keys as well.
2016-12-26 19:09:53 +01:00
Anthony Sottile
96fb7fa10f Document pretty-format-json. Resolves #156 2016-12-07 10:44:29 -08:00
Anthony Sottile
52582865ab Merge pull request #155 from pre-commit/asottile-patch-1
Also remove git variables from appveyor
2016-12-01 23:31:31 -08:00
Anthony Sottile
75283ae18f Also remove git variables from appveyor 2016-12-01 16:16:40 -08:00
Anthony Sottile
af7659de18 Merge pull request #154 from alzeih/patch-1
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
2016-12-01 16:09:00 -08:00
alzeih
0637a50cc2 Fix test error "fatal: empty ident name (for <(null)>) not allowed"
This occurs when there is no global setting for git config options user.name and user.email

An example of the error shown below:

E           pre_commit.util.CalledProcessError: Command: ('/usr/bin/git', 'commit', '-m', 'init', '--allow-empty')
E           Return code: 128
E           Expected return code: 0
E           Output: (none)
E           Errors:
E
E               *** Please tell me who you are.
E
E               Run
E
E                 git config --global user.email "you@example.com"
E                 git config --global user.name "Your Name"
E
E               to set your account's default identity.
E               Omit --global to set the identity only in this repository.
E
E               fatal: empty ident name (for <(null)>) not allowed
2016-12-02 12:50:20 +13:00
Anthony Sottile
77a7bba2f9 v0.6.1 2016-11-30 10:40:03 -08:00
Anthony Sottile
fa5003d201 Merge pull request #153 from chriskuehl/add-forbid-submodules-to-hooks
Add forbid-new-submodules to hooks.yaml
2016-11-30 10:35:59 -08:00
Chris Kuehl
4b928ab06b Add forbid-new-submodules to hooks.yaml 2016-11-30 10:25:51 -08:00
Chris Kuehl
7bcb6a92bf Merge pull request #152 from pre-commit/forbid_new_submodules
Add a new hook to forbid new submodules
2016-11-30 10:07:07 -08:00
Anthony Sottile
e3e4378173 pip dropped pypy3, so will we 2016-11-30 09:59:37 -08:00
Anthony Sottile
70e405ede2 Add a new hook to forbid new submodules 2016-11-30 09:56:42 -08:00