Skip to content

Conversation

@dependabot-preview
Copy link
Contributor

Bumps pytest from 6.0.1 to 6.1.2.

Release notes

Sourced from pytest's releases.

6.1.2

pytest 6.1.2 (2020-10-28)

Bug Fixes

  • #7758: Fixed an issue where some files in packages are getting lost from --lf even though they contain tests that failed. Regressed in pytest 5.4.0.
  • #7911: Directories created by tmpdir are now considered stale after 3 days without modification (previous value was 3 hours) to avoid deleting directories still in use in long running test suites.

Improved Documentation

  • #7815: Improve deprecation warning message for pytest._fillfuncargs().

6.1.1

pytest 6.1.1 (2020-10-03)

Bug Fixes

  • #7807: Fixed regression in pytest 6.1.0 causing incorrect rootdir to be determined in some non-trivial cases where parent directories have config files as well.
  • #7814: Fixed crash in header reporting when testpaths is used and contains absolute paths (regression in 6.1.0).

6.1.0

pytest 6.1.0 (2020-09-26)

Breaking Changes

  • #5585: As per our policy, the following features which have been deprecated in the 5.X series are now removed:

    • The funcargnames read-only property of FixtureRequest, Metafunc, and Function classes. Use fixturenames attribute.
    • @pytest.fixture no longer supports positional arguments, pass all arguments by keyword instead.
    • Direct construction of Node subclasses now raise an error, use from_parent instead.
    • The default value for junit_family has changed to xunit2. If you require the old format, add junit_family=xunit1 to your configuration file.
    • The TerminalReporter no longer has a writer attribute. Plugin authors may use the public functions of the TerminalReporter instead of accessing the TerminalWriter object directly.
    • The --result-log option has been removed. Users are recommended to use the pytest-reportlog plugin instead.

    For more information consult Deprecations and Removals in the docs.

Deprecations

  • #6981: The pytest.collect module is deprecated: all its names can be imported from pytest directly.
  • #7097: The pytest._fillfuncargs function is deprecated. This function was kept
Changelog

Sourced from pytest's changelog.

Commits
  • 4e8b50b Prepare release version 6.1.2
  • cd221df Merge pull request #7955 from nicoddemus/backport-7914
  • 8c1c1ae Increase temp dir deletion period to 3 days (#7914)
  • a88fe58 Merge pull request #7919 from nicoddemus/backport-7917
  • cd57271 Merge pull request #7917 from bluetech/ci-timeout
  • 46195ed Merge pull request #7918 from bluetech/backport-7915
  • 9237b5f Merge pull request #7915 from bluetech/fix-lf-package
  • 95fd566 Merge pull request #7867 from nicoddemus/backport-7829
  • c93962c Add alias clarification to deprecation warning (#7829)
  • dc96e48 Merge pull request #7861 from nicoddemus/backport-7860
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.1 to 6.1.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@6.0.1...6.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Oct 28, 2020
@dependabot-preview dependabot-preview bot requested a review from ezh October 28, 2020 22:14
@TravisBuddy
Copy link

Travis tests have failed

Hey @dependabot-preview[bot],
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

View build log

tox
Collecting codecov
  Downloading codecov-2.1.10-py2.py3-none-any.whl (16 kB)
Collecting tox
  Downloading tox-3.20.1-py2.py3-none-any.whl (83 kB)
Collecting requests>=2.7.9
  Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting coverage
  Downloading coverage-5.3-cp36-cp36m-manylinux1_x86_64.whl (229 kB)
Collecting toml>=0.9.4
  Downloading toml-0.10.1-py2.py3-none-any.whl (19 kB)
Requirement already satisfied: virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from tox) (16.0.0)
Requirement already satisfied: pluggy>=0.12.0 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from tox) (0.12.0)
Collecting six>=1.14.0
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: importlib-metadata<3,>=0.12; python_version < "3.8" in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from tox) (0.18)
Requirement already satisfied: py>=1.4.17 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from tox) (1.7.0)
Requirement already satisfied: packaging>=14 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from tox) (19.0)
Collecting filelock>=3.0.0
  Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB)
Requirement already satisfied: certifi>=2017.4.17 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from requests>=2.7.9->codecov) (2018.10.15)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB)
Collecting chardet<4,>=3.0.2
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<3,>=2.5
  Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: zipp>=0.5 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from importlib-metadata<3,>=0.12; python_version < "3.8"->tox) (0.5.1)
Requirement already satisfied: pyparsing>=2.0.2 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from packaging>=14->tox) (2.4.0)
Installing collected packages: urllib3, chardet, idna, requests, coverage, codecov, toml, six, filelock, tox
  Attempting uninstall: six
    Found existing installation: six 1.11.0
    Uninstalling six-1.11.0:
      Successfully uninstalled six-1.11.0
Successfully installed chardet-3.0.4 codecov-2.1.10 coverage-5.3 filelock-3.0.12 idna-2.10 requests-2.24.0 six-1.15.0 toml-0.10.1 tox-3.20.1 urllib3-1.25.11
$ git clone https://github.com/junegunn/fzf/
Cloning into 'fzf'...
$ fzf/install --bin
Downloading bin/fzf ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   653  100   653    0     0   2810      0 --:--:-- --:--:-- --:--:--  2802
100 1105k  100 1105k    0     0  1768k      0 --:--:-- --:--:-- --:--:-- 1768k
  - Checking fzf executable ... 0.24.1
$ sudo ln -s $PWD/fzf/bin/fzf /usr/bin
$ tox
GLOB sdist-make: /home/travis/build/ezh/cloudselect/setup.py
py36 create: /home/travis/build/ezh/cloudselect/.tox/py36
py36 installdeps: codecov, PyTest, pytest-console-scripts, pytest-cov, pytest-mock, appdirs, boto3, chardet, dependency_injector, hcloud, kubernetes, pyyaml
py36 inst: /home/travis/build/ezh/cloudselect/.tox/.tmp/package/1/cloudselect-20.1.14.zip
py36 installed: appdirs==1.4.4,attrs==20.1.0,boto3==1.14.45,botocore==1.17.63,cachetools==4.1.1,certifi==2020.6.20,chardet==3.0.4,cloudselect==20.1.14,codecov==2.1.10,coverage==5.3,dependency-injector==3.23.2,docutils==0.15.2,future==0.18.2,google-auth==1.22.1,hcloud==1.9.1,idna==2.10,importlib-metadata==2.0.0,iniconfig==1.1.1,jmespath==0.10.0,kubernetes==11.0.0,mock==4.0.2,oauthlib==3.1.0,packaging==20.4,pluggy==0.13.1,py==1.9.0,pyasn1==0.4.8,pyasn1-modules==0.2.8,pyparsing==2.4.7,pytest==6.1.2,pytest-console-scripts==1.0.0,pytest-cov==2.10.1,pytest-mock==3.3.1,python-dateutil==2.8.1,PyYAML==5.3.1,requests==2.24.0,requests-oauthlib==1.3.0,rsa==4.6,s3transfer==0.3.3,six==1.15.0,toml==0.10.1,urllib3==1.25.11,websocket-client==0.57.0,zipp==3.4.0
py36 run-test-pre: PYTHONHASHSEED='541901721'
py36 run-test: commands[0] | py.test
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /home/travis/build/ezh/cloudselect/.tox/py36/bin/python
cachedir: .tox/py36/.pytest_cache
rootdir: /home/travis/build/ezh/cloudselect, configfile: tox.ini
plugins: cov-2.10.1, mock-3.3.1, console-scripts-1.0.0
collecting ... collected 36 items

test/test_cloudselect.py::test_cli_incorrect_configuration[inprocess] # Running console script: cloudselect something_that_does_not_exist
FAILED
test/test_cloudselect.py::test_cli_version[inprocess] # Running console script: cloudselect --version
FAILED
test/test_cloudselect.py::test_cli_verbose PASSED
test/test_cloudselect.py::test_cli_query PASSED
test/test_cloudselect.py::test_cli_profile PASSED
test/test_cloudselect.py::test_cli_configuration_read PASSED
test/test_cloudselect.py::test_resolve PASSED
test/test_cloudselect.py::test_factory_load_plugin PASSED
test/test_cloudselect.py::test_factory_load_discovery PASSED
test/test_cloudselect.py::test_factory_load_group PASSED
test/test_cloudselect.py::test_factory_load_pathfinder PASSED
test/test_cloudselect.py::test_factory_load_report PASSED
test/test_options.py::test_options PASSED
test/test_selector.py::test_completer PASSED
test/test_selector.py::test_profile_list PASSED
test/test_selector.py::test_select_edit PASSED
test/test_selector.py::test_select_edit_json_profile PASSED
test/test_selector.py::test_select_edit_yaml_profile PASSED
test/test_selector.py::test_select_edit_yml_profile PASSED
test/test_selector.py::test_select_edit_non_existent_profile PASSED
test/test_selector.py::test_select_empty PASSED
test/test_selector.py::test_select_single {'instances': [{'host': 'my.cloud.instance',
                'id': '0',
                'jumphost': None,
                'key': None,
                'metadata': {'host': 'my.cloud.instance'},
                'port': None,
                'user': None}],
 'option': {}}
PASSED
test/discovery/test_kubernetes.py::test_kubernetes_discovery PASSED
test/discovery/test_stub.py::test_stub_discovery PASSED
test/discovery/test_stub.py::test_stub_behaviour PASSED
test/group/test_simple.py::test_options PASSED
test/group/test_simple.py::test_options_errors PASSED
test/group/test_simple.py::test_options_regex PASSED
test/group/test_stub.py::test_stub_group 2020-10-29 02:23:46,640 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-10-29 02:23:46,641 cloudselect.CloudSelect DEBUG    Configuration:
{
    "log": {
        "formatters": {
            "f": {
                "format": "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
            }
        },
        "handlers": {
            "h": {
                "class": "logging.StreamHandler",
                "formatter": "f",
                "level": 10
            }
        },
        "root": {
            "handlers": [
                "h"
            ],
            "level": 10
        },
        "version": 1
    },
    "plugin": {
        "discovery": {
            "aws": "cloudselect.discovery.aws",
            "hetzner": "cloudselect.discovery.hetzner",
            "kubernetes": "cloudselect.discovery.kubernetes",
            "local": "cloudselect.discovery.local"
        },
        "group": {
            "simple": "cloudselect.group.simple"
        },
        "pathfinder": {
            "bastion": "cloudselect.pathfinder.bastion"
        },
        "report": {
            "json": "cloudselect.report.json",
            "json_pp": "cloudselect.report.json_pp",
            "yaml": "cloudselect.report.yaml"
        }
    }
}
PASSED
test/group/test_stub.py::test_stub_behaviour PASSED
test/pathfinder/test_bastion.py::test_bastion_initialization 2020-10-29 02:23:46,650 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-10-29 02:23:46,650 cloudselect.CloudSelect DEBUG    Configuration:
{
    "log": {
        "version": 1
    },
    "pathfinder": {
        "type": "bastion"
    },
    "plugin": {
        "discovery": {
            "aws": "cloudselect.discovery.aws",
            "hetzner": "cloudselect.discovery.hetzner",
            "kubernetes": "cloudselect.discovery.kubernetes",
            "local": "cloudselect.discovery.local"
        },
        "group": {
            "simple": "cloudselect.group.simple"
        },
        "pathfinder": {
            "bastion": "cloudselect.pathfinder.bastion"
        },
        "report": {
            "json": "cloudselect.report.json",
            "json_pp": "cloudselect.report.json_pp",
            "yaml": "cloudselect.report.yaml"
        }
    }
}
PASSED
test/pathfinder/test_bastion.py::test_bastion_behaviour 2020-10-29 02:23:46,654 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-10-29 02:23:46,655 cloudselect.CloudSelect DEBUG    Configuration:
{
    "log": {
        "version": 1
    },
    "pathfinder": {
        "host": "my-bastion-hostname",
        "type": "bastion"
    },
    "plugin": {
        "discovery": {
            "aws": "cloudselect.discovery.aws",
            "hetzner": "cloudselect.discovery.hetzner",
            "kubernetes": "cloudselect.discovery.kubernetes",
            "local": "cloudselect.discovery.local"
        },
        "group": {
            "simple": "cloudselect.group.simple"
        },
        "pathfinder": {
            "bastion": "cloudselect.pathfinder.bastion"
        },
        "report": {
            "json": "cloudselect.report.json",
            "json_pp": "cloudselect.report.json_pp",
            "yaml": "cloudselect.report.yaml"
        }
    }
}
PASSED
test/pathfinder/test_stub.py::test_stub_pathfinder 2020-10-29 02:23:46,659 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-10-29 02:23:46,660 cloudselect.CloudSelect DEBUG    Configuration:
{
    "log": {
        "version": 1
    },
    "plugin": {
        "discovery": {
            "aws": "cloudselect.discovery.aws",
            "hetzner": "cloudselect.discovery.hetzner",
            "kubernetes": "cloudselect.discovery.kubernetes",
            "local": "cloudselect.discovery.local"
        },
        "group": {
            "simple": "cloudselect.group.simple"
        },
        "pathfinder": {
            "bastion": "cloudselect.pathfinder.bastion"
        },
        "report": {
            "json": "cloudselect.report.json",
            "json_pp": "cloudselect.report.json_pp",
            "yaml": "cloudselect.report.yaml"
        }
    }
}
PASSED
test/pathfinder/test_stub.py::test_stub_behaviour PASSED
test/report/test_stub.py::test_stub_report 2020-10-29 02:23:46,668 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-10-29 02:23:46,668 cloudselect.CloudSelect DEBUG    Configuration:
{
    "log": {
        "version": 1
    },
    "plugin": {
        "discovery": {
            "aws": "cloudselect.discovery.aws",
            "hetzner": "cloudselect.discovery.hetzner",
            "kubernetes": "cloudselect.discovery.kubernetes",
            "local": "cloudselect.discovery.local"
        },
        "group": {
            "simple": "cloudselect.group.simple"
        },
        "pathfinder": {
            "bastion": "cloudselect.pathfinder.bastion"
        },
        "report": {
            "json": "cloudselect.report.json",
            "json_pp": "cloudselect.report.json_pp",
            "yaml": "cloudselect.report.yaml"
        }
    }
}
{'instances': [], 'option': {}}
PASSED
test/report/test_stub.py::test_stub_behaviour PASSED

=================================== FAILURES ===================================
_________________ test_cli_incorrect_configuration[inprocess] __________________

script_runner = <ScriptRunner inprocess>

    def test_cli_incorrect_configuration(script_runner):
        """Testing cloudselect invocation with non existing profile."""
>       ret = script_runner.run("cloudselect", "something_that_does_not_exist")

test/test_cloudselect.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py36/lib/python3.6/site-packages/pytest_console_scripts.py:126: in run
    return self.run_inprocess(command, *arguments, **options)
.tox/py36/lib/python3.6/site-packages/pytest_console_scripts.py:191: in run_inprocess
    script = self._load_script(command, **options)
.tox/py36/lib/python3.6/site-packages/pytest_console_scripts.py:177: in _load_script
    return entry_points[0].load()
.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py:2321: in load
    self.require(*args, **kwargs)
.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py:2344: in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pkg_resources.WorkingSet object at 0x7f155e82e390>
requirements = [Requirement.parse('jmespath<1.0.0,>=0.7.1'), Requirement.parse('docutils<0.16,>=0.10'), Requirement.parse('urllib3<1....ment.parse('python-dateutil<3.0.0,>=2.1'), Requirement.parse('six>=1.5'), Requirement.parse('certifi>=2017.4.17'), ...]
env = None, installer = None, replace_conflicting = False, extras = ()

    def resolve(self, requirements, env=None, installer=None,
                replace_conflicting=False, extras=None):
        """List all distributions needed to (recursively) meet `requirements`
    
        `requirements` must be a sequence of ``Requirement`` objects.  `env`,
        if supplied, should be an ``Environment`` instance.  If
        not supplied, it defaults to all distributions available within any
        entry or distribution in the working set.  `installer`, if supplied,
        will be invoked with each requirement that cannot be met by an
        already-installed distribution; it should return a ``Distribution`` or
        ``None``.
    
        Unless `replace_conflicting=True`, raises a VersionConflict exception
        if
        any requirements are found on the path that have the correct name but
        the wrong version.  Otherwise, if an `installer` is supplied it will be
        invoked to obtain the correct version of the requirement and activate
        it.
    
        `extras` is a list of the extras to be used with these requirements.
        This is important because extra requirements may look like `my_req;
        extra = "my_extra"`, which would otherwise be interpreted as a purely
        optional requirement.  Instead, we want to be able to assert that these
        requirements are truly required.
        """
    
        # set up the stack
        requirements = list(requirements)[::-1]
        # set of processed requirements
        processed = {}
        # key -> dist
        best = {}
        to_activate = []
    
        req_extras = _ReqExtras()
    
        # Mapping of requirement to set of distributions that required it;
        # useful for reporting info about conflicts.
        required_by = collections.defaultdict(set)
    
        while requirements:
            # process dependencies breadth-first
            req = requirements.pop(0)
            if req in processed:
                # Ignore cyclic or redundant dependencies
                continue
    
            if not req_extras.markers_pass(req, extras):
                continue
    
            dist = best.get(req.key)
            if dist is None:
                # Find the best distribution and add it to the map
                dist = self.by_key.get(req.key)
                if dist is None or (dist not in req and replace_conflicting):
                    ws = self
                    if env is None:
                        if dist is None:
                            env = Environment(self.entries)
                        else:
                            # Use an empty environment and workingset to avoid
                            # any further conflicts with the conflicting
                            # distribution
                            env = Environment([])
                            ws = WorkingSet([])
                    dist = best[req.key] = env.best_match(
                        req, ws, installer,
                        replace_conflicting=replace_conflicting
                    )
                    if dist is None:
                        requirers = required_by.get(req, None)
                        raise DistributionNotFound(req, requirers)
                to_activate.append(dist)
            if dist not in req:
                # Oops, the "best" so far conflicts with a dependency
                dependent_req = required_by[req]
>               raise VersionConflict(dist, req).with_context(dependent_req)
E               pkg_resources.ContextualVersionConflict: (setuptools 39.1.0 (/home/travis/build/ezh/cloudselect/.tox/py36/lib/python3.6/site-packages), Requirement.parse('setuptools>=40.3.0'), {'google-auth'})

.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py:783: ContextualVersionConflict
_________________________ test_cli_version[inprocess] __________________________

cfgdir = local('/tmp/pytest-of-travis/pytest-0/cloudselect0')
script_runner = <ScriptRunner inprocess>

    def test_cli_version(cfgdir, script_runner):
        """Testing that cloudselect has expected version."""
>       ret = script_runner.run("cloudselect", "--version")

test/test_cloudselect.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py36/lib/python3.6/site-packages/pytest_console_scripts.py:126: in run
    return self.run_inprocess(command, *arguments, **options)
.tox/py36/lib/python3.6/site-packages/pytest_console_scripts.py:191: in run_inprocess
    script = self._load_script(command, **options)
.tox/py36/lib/python3.6/site-packages/pytest_console_scripts.py:177: in _load_script
    return entry_points[0].load()
.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py:2321: in load
    self.require(*args, **kwargs)
.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py:2344: in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pkg_resources.WorkingSet object at 0x7f155e82e390>
requirements = [Requirement.parse('jmespath<1.0.0,>=0.7.1'), Requirement.parse('docutils<0.16,>=0.10'), Requirement.parse('urllib3<1....ment.parse('python-dateutil<3.0.0,>=2.1'), Requirement.parse('six>=1.5'), Requirement.parse('certifi>=2017.4.17'), ...]
env = None, installer = None, replace_conflicting = False, extras = ()

    def resolve(self, requirements, env=None, installer=None,
                replace_conflicting=False, extras=None):
        """List all distributions needed to (recursively) meet `requirements`
    
        `requirements` must be a sequence of ``Requirement`` objects.  `env`,
        if supplied, should be an ``Environment`` instance.  If
        not supplied, it defaults to all distributions available within any
        entry or distribution in the working set.  `installer`, if supplied,
        will be invoked with each requirement that cannot be met by an
        already-installed distribution; it should return a ``Distribution`` or
        ``None``.
    
        Unless `replace_conflicting=True`, raises a VersionConflict exception
        if
        any requirements are found on the path that have the correct name but
        the wrong version.  Otherwise, if an `installer` is supplied it will be
        invoked to obtain the correct version of the requirement and activate
        it.
    
        `extras` is a list of the extras to be used with these requirements.
        This is important because extra requirements may look like `my_req;
        extra = "my_extra"`, which would otherwise be interpreted as a purely
        optional requirement.  Instead, we want to be able to assert that these
        requirements are truly required.
        """
    
        # set up the stack
        requirements = list(requirements)[::-1]
        # set of processed requirements
        processed = {}
        # key -> dist
        best = {}
        to_activate = []
    
        req_extras = _ReqExtras()
    
        # Mapping of requirement to set of distributions that required it;
        # useful for reporting info about conflicts.
        required_by = collections.defaultdict(set)
    
        while requirements:
            # process dependencies breadth-first
            req = requirements.pop(0)
            if req in processed:
                # Ignore cyclic or redundant dependencies
                continue
    
            if not req_extras.markers_pass(req, extras):
                continue
    
            dist = best.get(req.key)
            if dist is None:
                # Find the best distribution and add it to the map
                dist = self.by_key.get(req.key)
                if dist is None or (dist not in req and replace_conflicting):
                    ws = self
                    if env is None:
                        if dist is None:
                            env = Environment(self.entries)
                        else:
                            # Use an empty environment and workingset to avoid
                            # any further conflicts with the conflicting
                            # distribution
                            env = Environment([])
                            ws = WorkingSet([])
                    dist = best[req.key] = env.best_match(
                        req, ws, installer,
                        replace_conflicting=replace_conflicting
                    )
                    if dist is None:
                        requirers = required_by.get(req, None)
                        raise DistributionNotFound(req, requirers)
                to_activate.append(dist)
            if dist not in req:
                # Oops, the "best" so far conflicts with a dependency
                dependent_req = required_by[req]
>               raise VersionConflict(dist, req).with_context(dependent_req)
E               pkg_resources.ContextualVersionConflict: (setuptools 39.1.0 (/home/travis/build/ezh/cloudselect/.tox/py36/lib/python3.6/site-packages), Requirement.parse('setuptools>=40.3.0'), {'google-auth'})

.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py:783: ContextualVersionConflict

----------- coverage: platform linux, python 3.6.7-final-0 -----------
Name                                   Stmts   Miss  Cover   Missing
--------------------------------------------------------------------
cloudselect/__init__.py                   17      2    88%   30-31
cloudselect/__main__.py                    2      2     0%   3-5
cloudselect/cloudselect.py               195     45    77%   59-66, 90, 105-112, 180, 182, 186, 269-271, 280-285, 291-301, 306-319
cloudselect/discovery/__init__.py          3      0   100%
cloudselect/discovery/aws.py             106     87    18%   30-34, 39-63, 68-84, 92-117, 121-134, 138-142, 149-162, 166-169, 174-175
cloudselect/discovery/discovery.py        57     12    79%   37-48, 55-58
cloudselect/discovery/hetzner.py          65     65     0%   8-149
cloudselect/discovery/kubernetes.py       70      8    89%   93, 97, 133-144
cloudselect/discovery/local.py            39      1    97%   57
cloudselect/discovery/stub.py              3      0   100%
cloudselect/group/__init__.py              3      0   100%
cloudselect/group/group.py                10      0   100%
cloudselect/group/simple.py               46      6    87%   41-44, 46-52, 75-76
cloudselect/group/stub.py                  3      0   100%
cloudselect/instance.py                   29      2    93%   24, 68
cloudselect/pathfinder/__init__.py         3      0   100%
cloudselect/pathfinder/bastion.py         44     23    48%   30, 46-53, 60-73
cloudselect/pathfinder/pathfinder.py      10      1    90%   25
cloudselect/pathfinder/stub.py             3      0   100%
cloudselect/report/__init__.py             3      0   100%
cloudselect/report/json.py                 9      4    56%   19-22
cloudselect/report/json_pp.py              9      9     0%   8-22
cloudselect/report/report.py              18      0   100%
cloudselect/report/stub.py                 3      0   100%
cloudselect/report/yaml.py                 9      9     0%   8-22
cloudselect/selector.py                  118     34    71%   60-64, 94-95, 101-102, 109, 111, 118-132, 152, 172-180, 199, 201
--------------------------------------------------------------------
TOTAL                                    877    310    65%

=========================== short test summary info ============================
FAILED test/test_cloudselect.py::test_cli_incorrect_configuration[inprocess]
FAILED test/test_cloudselect.py::test_cli_version[inprocess] - pkg_resources....
========================= 2 failed, 34 passed in 1.92s =========================
ERROR: InvocationError for command /home/travis/build/ezh/cloudselect/.tox/py36/bin/py.test (exited with code 1)
___________________________________ summary ____________________________________
ERROR:   py36: commands failed
TravisBuddy Request Identifier: d84c3c10-198d-11eb-a6ec-b9eb403ed3be

@dependabot-preview
Copy link
Contributor Author

Superseded by #376.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/pytest-6.1.2 branch December 14, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants