Python pip._internal.utils.deprecation.deprecated() Examples

The following are 6 code examples of pip._internal.utils.deprecation.deprecated(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module pip._internal.utils.deprecation , or try the search function .
Example #1
Source File: index.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def add_dependency_links(self, links):
        # # FIXME: this shouldn't be global list this, it should only
        # # apply to requirements of the package that specifies the
        # # dependency_links value
        # # FIXME: also, we should track comes_from (i.e., use Link)
        if self.process_dependency_links:
            deprecated(
                "Dependency Links processing has been deprecated and will be "
                "removed in a future release.",
                replacement=None,
                gone_in="18.2",
                issue=4187,
            )
            self.dependency_links.extend(links) 
Example #2
Source File: index.py    From pySINDy with MIT License 5 votes vote down vote up
def add_dependency_links(self, links):
        # FIXME: this shouldn't be global list this, it should only
        # apply to requirements of the package that specifies the
        # dependency_links value
        # FIXME: also, we should track comes_from (i.e., use Link)
        if self.process_dependency_links:
            deprecated(
                "Dependency Links processing has been deprecated and will be "
                "removed in a future release.",
                replacement="PEP 508 URL dependencies",
                gone_in="18.2",
                issue=4187,
            )
            self.dependency_links.extend(links) 
Example #3
Source File: index.py    From stopstalk-deployment with MIT License 5 votes vote down vote up
def add_dependency_links(self, links):
        # # FIXME: this shouldn't be global list this, it should only
        # # apply to requirements of the package that specifies the
        # # dependency_links value
        # # FIXME: also, we should track comes_from (i.e., use Link)
        if self.process_dependency_links:
            deprecated(
                "Dependency Links processing has been deprecated and will be "
                "removed in a future release.",
                replacement=None,
                gone_in="18.2",
                issue=4187,
            )
            self.dependency_links.extend(links) 
Example #4
Source File: index.py    From guildai with Apache License 2.0 5 votes vote down vote up
def add_dependency_links(self, links):
        # # FIXME: this shouldn't be global list this, it should only
        # # apply to requirements of the package that specifies the
        # # dependency_links value
        # # FIXME: also, we should track comes_from (i.e., use Link)
        if self.process_dependency_links:
            deprecated(
                "Dependency Links processing has been deprecated and will be "
                "removed in a future release.",
                replacement=None,
                gone_in="18.2",
                issue=4187,
            )
            self.dependency_links.extend(links) 
Example #5
Source File: index.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def add_dependency_links(self, links):
        # # FIXME: this shouldn't be global list this, it should only
        # # apply to requirements of the package that specifies the
        # # dependency_links value
        # # FIXME: also, we should track comes_from (i.e., use Link)
        if self.process_dependency_links:
            deprecated(
                "Dependency Links processing has been deprecated and will be "
                "removed in a future release.",
                replacement=None,
                gone_in="18.2",
                issue=4187,
            )
            self.dependency_links.extend(links) 
Example #6
Source File: req_install.py    From rules_pip with MIT License 4 votes vote down vote up
def update_editable(self, obtain=True):
        # type: (bool) -> None
        if not self.link:
            logger.debug(
                "Cannot update repository at %s; repository location is "
                "unknown",
                self.source_dir,
            )
            return
        assert self.editable
        assert self.source_dir
        if self.link.scheme == 'file':
            # Static paths don't get updated
            return
        assert '+' in self.link.url, \
            "bad url: {self.link.url!r}".format(**locals())
        vc_type, url = self.link.url.split('+', 1)
        vcs_backend = vcs.get_backend(vc_type)
        if vcs_backend:
            if not self.link.is_vcs:
                reason = (
                    "This form of VCS requirement is being deprecated: {}."
                ).format(
                    self.link.url
                )
                replacement = None
                if self.link.url.startswith("git+git@"):
                    replacement = (
                        "git+https://git@example.com/..., "
                        "git+ssh://git@example.com/..., "
                        "or the insecure git+git://git@example.com/..."
                    )
                deprecated(reason, replacement, gone_in="21.0", issue=7554)
            hidden_url = hide_url(self.link.url)
            if obtain:
                vcs_backend.obtain(self.source_dir, url=hidden_url)
            else:
                vcs_backend.export(self.source_dir, url=hidden_url)
        else:
            assert 0, (
                'Unexpected version control type (in {}): {}'.format(
                    self.link, vc_type))

    # Top-level Actions