Skip to content

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps attrs from 20.1.0 to 20.3.0.

Release notes

Sourced from attrs's releases.

20.3.0

Backward-incompatible Changes

  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release does not change change anything about them and they are already used widely in production though.

    If you wish to use them together with mypy, you can simply drop this plugin into your project.

    Feel free to provide feedback to them in the linked issue #668.

    We will release the attrs namespace once we have the feeling that the APIs have properly settled. #668

Changes

  • attr.s() now has a field_transformer hook that is called for all Attributes and returns a (modified or updated) list of Attribute instances. attr.asdict() has a value_serializer hook that can change the way values are converted. Both hooks are meant to help with data (de-)serialization workflows. #653
  • kw_only=True now works on Python 2. #700
  • raise from now works on frozen classes on PyPy. #703, #712
  • attr.asdict() and attr.astuple() now treat frozensets like sets with regards to the retain_collection_types argument. #704
  • The type stubs for attr.s() and attr.make_class() are not missing the collect_by_mro argument anymore. #711

20.2.0

Backward-incompatible Changes

  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release fixes a bunch of bugs and ergonomics but they remain mostly unchanged.

    If you wish to use them together with mypy, you can simply drop this plugin into your project.

    Feel free to provide feedback to them in the linked issue #668.

    We will release the attrs namespace once we have the feeling that the APIs have properly settled. #668

Changes

  • attr.define() et al now correct detect __eq__ and __ne__. #671

  • attr.define() et al's hybrid behavior now also works correctly when arguments are passed. #675

  • It's possible to define custom __setattr__ methods on slotted classes again. #681

  • In 20.1.0 we introduced the inherited attribute on the attr.Attribute class to differentiate attributes that have been inherited and those that have been defined directly on the class.

    It has shown to be problematic to involve that attribute when comparing instances of attr.Attribute though, because when sub-classing, attributes from base classes are suddenly not equal to themselves in a super class.

Changelog

Sourced from attrs's changelog.

20.3.0 (2020-11-05)

Backward-incompatible Changes

  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release does not change change anything about them and they are already used widely in production though.

    If you wish to use them together with mypy, you can simply drop this plugin into your project.

    Feel free to provide feedback to them in the linked issue #668.

    We will release the attrs namespace once we have the feeling that the APIs have properly settled. #668

Changes

  • attr.s() now has a field_transformer hook that is called for all Attributes and returns a (modified or updated) list of Attribute instances. attr.asdict() has a value_serializer hook that can change the way values are converted. Both hooks are meant to help with data (de-)serialization workflows. #653
  • kw_only=True now works on Python 2. #700
  • raise from now works on frozen classes on PyPy. #703, #712
  • attr.asdict() and attr.astuple() now treat frozensets like sets with regards to the retain_collection_types argument. #704
  • The type stubs for attr.s() and attr.make_class() are not missing the collect_by_mro argument anymore. #711

20.2.0 (2020-09-05)

Backward-incompatible Changes

  • attr.define(), attr.frozen(), attr.mutable(), and attr.field() remain provisional.

    This release fixes a bunch of bugs and ergonomics but they remain mostly unchanged.

    If you wish to use them together with mypy, you can simply drop this plugin into your project.

    Feel free to provide feedback to them in the linked issue #668.

    We will release the attrs namespace once we have the feeling that the APIs have properly settled. #668

Changes

  • attr.define() et al now correct detect __eq__ and __ne__. #671
  • attr.define() et al's hybrid behavior now also works correctly when arguments are passed. #675
  • It's possible to define custom __setattr__ methods on slotted classes again. #681
  • In 20.1.0 we introduced the inherited attribute on the attr.Attribute class to differentiate attributes that have been inherited and those that have been defined directly on the class.
Commits
  • f3762ba Prepare 20.3.0
  • 3d66e57 Exclude GitHub issues from linkcheck to avoid rate limits
  • 06d0f8e Add funding URLs to metadata
  • d23924f Add provisional notice
  • cd2f886 Use 'i' and 'k' to better distinguish variables in an example (#713)
  • f2dabea Fix exception chaining on PyPy (#712)
  • 6b4a1f1 Tighten up mypy configuration
  • 9f7d11e Add types to collect_by_mro annotations m(
  • 7020c8b pre-commit autoupdate
  • 56c7308 Add missing collect_by_mro to typing stubs
  • 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 [attrs](https://github.com/python-attrs/attrs) from 20.1.0 to 20.3.0.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst)
- [Commits](python-attrs/attrs@20.1.0...20.3.0)

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 Nov 5, 2020
@dependabot-preview dependabot-preview bot requested a review from ezh November 5, 2020 22:13
@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 coverage
  Downloading coverage-5.3-cp36-cp36m-manylinux1_x86_64.whl (229 kB)
Collecting requests>=2.7.9
  Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
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: py>=1.4.17 in /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages (from tox) (1.7.0)
Collecting toml>=0.9.4
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 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: 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: 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)
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: 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)
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)
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)
Installing collected packages: coverage, chardet, idna, urllib3, requests, codecov, six, toml, 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.2 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   2805      0 --:--:-- --:--:-- --:--:--  2802
100 1106k  100 1106k    0     0  2518k      0 --:--:-- --:--:-- --:--:-- 2518k
  - Checking fzf executable ... 0.24.2
$ 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.3.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.23.0,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.2,urllib3==1.25.11,websocket-client==0.57.0,zipp==3.4.0
py36 run-test-pre: PYTHONHASHSEED='914747290'
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-11-06 00:37:15,124 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-11-06 00:37:15,125 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-11-06 00:37:15,136 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-11-06 00:37:15,137 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-11-06 00:37:15,142 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-11-06 00:37:15,142 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-11-06 00:37:15,148 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-11-06 00:37:15,149 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-11-06 00:37:15,160 cloudselect.CloudSelect DEBUG    Logging is initialized
2020-11-06 00:37:15,160 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 0x7f4a649bc358>
requirements = [Requirement.parse('cachetools<5.0,>=2.0.0'), Requirement.parse('rsa<5,>=3.1.4; python_version >= "3.5"'), Requirement...rse('six>=1.5'), Requirement.parse('six>=1.5'), Requirement.parse('urllib3<1.26,>=1.20; python_version != "3.4"'), ...]
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 0x7f4a649bc358>
requirements = [Requirement.parse('cachetools<5.0,>=2.0.0'), Requirement.parse('rsa<5,>=3.1.4; python_version >= "3.5"'), Requirement...rse('six>=1.5'), Requirement.parse('six>=1.5'), Requirement.parse('urllib3<1.26,>=1.20; python_version != "3.4"'), ...]
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.96s =========================
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: 6373b620-1fc8-11eb-9dab-419bf2960c30

@dependabot-preview
Copy link
Contributor Author

Superseded by #513.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/attrs-20.3.0 branch May 6, 2021 22:16
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.

1 participant