Created
March 5, 2018 19:58
-
-
Save jaraco/fd0c6112f0bf1e4b5eea93db4ccf6765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tox -e py36 | |
py36 create: /Users/jaraco/Dropbox/code/main/setuptools/.tox/py36 | |
py36 installdeps: -rtests/requirements.txt | |
py36 develop-inst: /Users/jaraco/Dropbox/code/main/setuptools | |
py36 installed: apipkg==1.4,attrs==17.4.0,contextlib2==0.5.5,execnet==1.5.0,flake8==3.5.0,mccabe==0.6.1,mock==2.0.0,path.py==11.0,pbr==3.1.1,pluggy==0.6.0,py==1.5.2,pycodestyle==2.3.1,pyflakes==1.6.0,pytest==3.4.1,pytest-fixture-config==1.2.11,pytest-flake8==0.9.1,pytest-shutil==1.2.11,pytest-virtualenv==1.2.11,six==1.11.0,virtualenv==15.1.0 | |
py36 runtests: PYTHONHASHSEED='1006593311' | |
py36 runtests: commands[0] | py.test | |
=============================================================================== test session starts =============================================================================== | |
platform darwin -- Python 3.6.4, pytest-3.4.1, py-1.5.2, pluggy-0.6.0 | |
rootdir: /Users/jaraco/Dropbox/code/main/setuptools, inifile: pytest.ini | |
plugins: virtualenv-1.2.11, shutil-1.2.11, flake8-0.9.1 | |
collected 411 items / 2 skipped | |
pkg_resources/__init__.py .. [ 0%] | |
pkg_resources/api_tests.txt . [ 0%] | |
pkg_resources/tests/test_find_distributions.py ... [ 1%] | |
pkg_resources/tests/test_markers.py . [ 1%] | |
pkg_resources/tests/test_pkg_resources.py ..... [ 2%] | |
pkg_resources/tests/test_resources.py ................................................. [ 14%] | |
pkg_resources/tests/test_working_set.py .................................. [ 23%] | |
setuptools/namespaces.py . [ 23%] | |
setuptools/package_index.py . [ 23%] | |
setuptools/sandbox.py . [ 23%] | |
setuptools/command/develop.py . [ 24%] | |
setuptools/command/install_lib.py . [ 24%] | |
setuptools/command/py36compat.py . [ 24%] | |
setuptools/tests/test_archive_util.py X [ 24%] | |
setuptools/tests/test_bdist_egg.py .. [ 25%] | |
setuptools/tests/test_build_clib.py . [ 25%] | |
setuptools/tests/test_build_ext.py .. [ 26%] | |
setuptools/tests/test_build_meta.py ............ [ 28%] | |
setuptools/tests/test_build_py.py . [ 29%] | |
setuptools/tests/test_config.py ...................... [ 34%] | |
setuptools/tests/test_dep_util.py . [ 34%] | |
setuptools/tests/test_depends.py . [ 35%] | |
setuptools/tests/test_develop.py ss.... [ 36%] | |
setuptools/tests/test_dist.py . [ 36%] | |
setuptools/tests/test_dist_info.py .. [ 37%] | |
setuptools/tests/test_easy_install.py .......s............................. [ 46%] | |
setuptools/tests/test_egg_info.py .....................x............ [ 54%] | |
setuptools/tests/test_find_packages.py ............ [ 57%] | |
setuptools/tests/test_install_scripts.py .s.s [ 58%] | |
setuptools/tests/test_integration.py sssssssss [ 60%] | |
setuptools/tests/test_manifest.py ................................................................... [ 76%] | |
setuptools/tests/test_namespaces.py ... [ 77%] | |
setuptools/tests/test_packageindex.py .................. [ 81%] | |
setuptools/tests/test_sandbox.py .......... [ 84%] | |
setuptools/tests/test_sdist.py ......xxx. [ 86%] | |
setuptools/tests/test_setuptools.py ......................... [ 92%] | |
setuptools/tests/test_test.py .. [ 93%] | |
setuptools/tests/test_unicode_utils.py . [ 93%] | |
setuptools/tests/test_upload_docs.py .. [ 94%] | |
setuptools/tests/test_virtualenv.py .F. [ 94%] | |
setuptools/tests/test_wheel.py .................. [ 99%] | |
setuptools/tests/test_windows_wrappers.py sss [100%] | |
============================================================================= short test summary info ============================================================================= | |
SKIP [2] /Users/jaraco/Dropbox/code/main/setuptools/setuptools/tests/test_msvc.py:18: could not import 'distutils.msvc9compiler' | |
SKIP [1] setuptools/tests/test_develop.py:65: Cannot run when invoked in a virtualenv or venv | |
SKIP [1] /Users/jaraco/Dropbox/code/main/setuptools/setuptools/tests/test_develop.py:108: TODO: needs a fixture to cause 'develop' to be invoked without mutating environment. | |
SKIP [1] setuptools/tests/test_easy_install.py:213: Test can only be run on Linux | |
SKIP [1] setuptools/tests/test_install_scripts.py:50: Windows only | |
SKIP [1] setuptools/tests/test_install_scripts.py:77: Windows only | |
SKIP [9] /Users/jaraco/Dropbox/code/main/setuptools/setuptools/tests/test_integration.py:25: Integration tests cannot run when pbr is installed | |
SKIP [1] setuptools/tests/test_windows_wrappers.py:71: Windows only | |
SKIP [1] setuptools/tests/test_windows_wrappers.py:111: Windows only | |
SKIP [1] setuptools/tests/test_windows_wrappers.py:166: Windows only | |
XFAIL setuptools/tests/test_egg_info.py::TestEggInfo::()::test_requires[extras_require_with_marker_in_setup_cfg] | |
XFAIL setuptools/tests/test_sdist.py::TestSdistTest::()::test_read_manifest_skips_non_utf8_filenames | |
System does not support latin-1 filenames | |
XFAIL setuptools/tests/test_sdist.py::TestSdistTest::()::test_sdist_with_utf8_encoded_filename | |
System does not support latin-1 filenames | |
XFAIL setuptools/tests/test_sdist.py::TestSdistTest::()::test_sdist_with_latin1_encoded_filename | |
System does not support latin-1 filenames | |
XPASS setuptools/tests/test_archive_util.py::test_unicode_files #710 and #712 | |
==================================================================================== FAILURES ===================================================================================== | |
__________________________________________________________________________ test_pip_upgrade_from_source ___________________________________________________________________________ | |
virtualenv = <pytest_virtualenv.VirtualEnv object at 0x113935b38> | |
def test_pip_upgrade_from_source(virtualenv): | |
""" | |
Check pip can upgrade setuptools from source. | |
""" | |
dist_dir = virtualenv.workspace | |
if sys.version_info < (2, 7): | |
# Python 2.6 support was dropped in wheel 0.30.0. | |
virtualenv.run('pip install -U "wheel<0.30.0"') | |
# Generate source distribution / wheel. | |
virtualenv.run(' && '.join(( | |
'cd {source}', | |
'python setup.py -q sdist -d {dist}', | |
'python setup.py -q bdist_wheel -d {dist}', | |
)).format(source=SOURCE_DIR, dist=dist_dir)) | |
sdist = glob.glob(os.path.join(dist_dir, '*.zip'))[0] | |
wheel = glob.glob(os.path.join(dist_dir, '*.whl'))[0] | |
# Then update from wheel. | |
virtualenv.run('pip install ' + wheel) | |
# And finally try to upgrade from source. | |
> virtualenv.run('pip install --no-cache-dir --upgrade ' + sdist) | |
setuptools/tests/test_virtualenv.py:59: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
.tox/py36/lib/python3.6/site-packages/pytest_virtualenv.py:147: in run | |
return super(VirtualEnv, self).run(args, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <pytest_virtualenv.VirtualEnv object at 0x113935b38> | |
cmd = 'pip install --no-cache-dir --upgrade /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/setuptools-38.5.1.post20180305.zip', capture = False, check_rc = True | |
cd = Path('/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju'), shell = True | |
kwargs = {'env': {'HOME': '/Users/jaraco', 'LANG': 'en_US.UTF-8', 'PATH': '/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmp...ono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS', 'PLAT': 'macosx-10.6-intel', ...}} | |
p = <subprocess.Popen object at 0x113935d30>, out = None, _ = None | |
err = CalledProcessError(1, 'pip install --no-cache-dir --upgrade /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/setuptools-38.5.1.post20180305.zip') | |
def run(self, cmd, capture=False, check_rc=True, cd=None, shell=False, **kwargs): | |
""" | |
Run a command relative to a given directory, defaulting to the workspace root | |
Parameters | |
---------- | |
cmd : `str` or `list` | |
Command string or list. Commands given as a string will be run in a subshell. | |
capture : `bool` | |
Capture and return output | |
check_rc : `bool` | |
Assert return code is zero | |
cd : `str` | |
Path to chdir to, defaults to workspace root | |
""" | |
if isinstance(cmd, string_types): | |
shell = True | |
else: | |
# Some of the command components might be path objects or numbers | |
cmd = [str(i) for i in cmd] | |
if not cd: | |
cd = self.workspace | |
with cmdline.chdir(cd): | |
log.debug("run: {0}".format(cmd)) | |
if capture: | |
p = subprocess.Popen(cmd, shell=shell, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **kwargs) | |
else: | |
p = subprocess.Popen(cmd, shell=shell, **kwargs) | |
(out, _) = p.communicate() | |
if out is not None and not isinstance(out, string_types): | |
out = out.decode('utf-8') | |
if self.debug and capture: | |
log.debug("Stdout/stderr:") | |
log.debug(out) | |
if check_rc and p.returncode != 0: | |
err = subprocess.CalledProcessError(p.returncode, cmd) | |
err.output = out | |
if capture and not self.debug: | |
log.error("Stdout/stderr:") | |
log.error(out) | |
> raise err | |
E subprocess.CalledProcessError: Command 'pip install --no-cache-dir --upgrade /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/setuptools-38.5.1.post20180305.zip' returned non-zero exit status 1. | |
.tox/py36/lib/python3.6/site-packages/pytest_shutil/workspace.py:132: CalledProcessError | |
------------------------------------------------------------------------------ Captured stdout setup ------------------------------------------------------------------------------ | |
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.6' | |
New python executable in /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/.env/bin/python3.6 | |
Also creating executable in /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/.env/bin/python | |
Installing setuptools, pip, wheel...done. | |
Running virtualenv with interpreter /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 | |
------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------- | |
Requirement already satisfied: setuptools==38.5.1.post20180305 from file:///var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/setuptools-38.5.1.post20180305-py2.py3-none-any.whl in /Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg | |
Processing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/setuptools-38.5.1.post20180305.zip | |
Installing collected packages: setuptools | |
Found existing installation: setuptools 38.5.1.post20180305 | |
Uninstalling setuptools-38.5.1.post20180305: | |
Successfully uninstalled setuptools-38.5.1.post20180305 | |
Running setup.py install for setuptools: started | |
Running setup.py install for setuptools: finished with status 'done' | |
------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------- | |
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' | |
warnings.warn(msg) | |
warning: no files found matching '*' under directory 'setuptools/_vendor' | |
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' | |
warnings.warn(msg) | |
warning: no files found matching '*' under directory 'setuptools/_vendor' | |
Exception: | |
Traceback (most recent call last): | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 2805, in get_entry_map | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 2776, in __getattr__ | |
AttributeError: _ep_map | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main | |
status = self.run(options, args) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/commands/install.py", line 350, in run | |
isolated=options.isolated_mode, | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/commands/install.py", line 436, in get_lib_location_guesses | |
scheme = distutils_scheme('', *args, **kwargs) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/locations.py", line 140, in distutils_scheme | |
d = Distribution(dist_args) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/setuptools/dist.py", line 331, in __init__ | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 752, in iter_entry_points | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 2808, in get_entry_map | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 2515, in parse_map | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 3140, in split_sections | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 2375, in yield_lines | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 2733, in _get_metadata | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 1506, in has_metadata | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 1863, in _has | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 1740, in zipinfo | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg/pkg_resources/__init__.py", line 1697, in load | |
FileNotFoundError: [Errno 2] No such file or directory: '/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg' | |
Traceback (most recent call last): | |
File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/tmpgh6bbpju/.env/bin/pip", line 11, in <module> | |
sys.exit(main()) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/__init__.py", line 233, in main | |
return command.main(cmd_args) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/basecommand.py", line 252, in main | |
pip_version_check(session) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/utils/outdated.py", line 102, in pip_version_check | |
installed_version = get_installed_version("pip") | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/utils/__init__.py", line 838, in get_installed_version | |
working_set = pkg_resources.WorkingSet() | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 644, in __init__ | |
self.add_entry(entry) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 700, in add_entry | |
for dist in find_distributions(entry, True): | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1949, in find_eggs_in_zip | |
if metadata.has_metadata('PKG-INFO'): | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1463, in has_metadata | |
return self.egg_info and self._has(self._fn(self.egg_info, name)) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1823, in _has | |
return zip_path in self.zipinfo or zip_path in self._index() | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1703, in zipinfo | |
return self._zip_manifests.load(self.loader.archive) | |
File "/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1643, in load | |
mtime = os.stat(path).st_mtime | |
FileNotFoundError: [Errno 2] No such file or directory: '/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/lib/python3.6/site-packages/setuptools-38.5.1.post20180305-py3.6.egg' | |
================================================================================ warnings summary ================================================================================= | |
pkg_resources/tests/test_resources.py::TestParsing::()::testVersionBuildout | |
/Users/jaraco/Dropbox/code/main/setuptools/pkg_resources/__init__.py:208: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need. | |
stacklevel=1, | |
pkg_resources/tests/test_resources.py::TestParsing::()::testVersionIndexable | |
/Users/jaraco/Dropbox/code/main/setuptools/pkg_resources/__init__.py:208: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need. | |
stacklevel=1, | |
pkg_resources/tests/test_resources.py::TestParsing::()::testVersionTupleSort | |
/Users/jaraco/Dropbox/code/main/setuptools/pkg_resources/__init__.py:208: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need. | |
stacklevel=1, | |
setuptools/tests/test_easy_install.py::TestPTHFileWriter::()::test_add_from_cwd_site_sets_dirty | |
/Users/jaraco/Dropbox/code/main/setuptools/setuptools/command/easy_install.py:1656: UserWarning: Unbuilt egg for Unknown [unknown version] (/Users/jaraco/Dropbox/code/main/setuptools) | |
Environment.add(self, dist) | |
setuptools/tests/test_easy_install.py::TestPTHFileWriter::()::test_add_from_site_is_ignored | |
/Users/jaraco/Dropbox/code/main/setuptools/setuptools/command/easy_install.py:1656: UserWarning: Unbuilt egg for Unknown [unknown version] (/test/location/does-not-have-to-exist) | |
Environment.add(self, dist) | |
-- Docs: http://doc.pytest.org/en/latest/warnings.html | |
=============================================== 1 failed, 388 passed, 19 skipped, 4 xfailed, 1 xpassed, 5 warnings in 51.75 seconds =============================================== | |
ERROR: InvocationError: '/Users/jaraco/Dropbox/code/main/setuptools/.tox/py36/bin/py.test' | |
_____________________________________________________________________________________ summary _____________________________________________________________________________________ | |
ERROR: py36: commands failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment