Python pip._internal.utils.misc.make_vcs_requirement_url() Examples
The following are 13
code examples of pip._internal.utils.misc.make_vcs_requirement_url().
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.misc
, or try the search function
.
Example #1
Source File: mercurial.py From deepWordBug with Apache License 2.0 | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #2
Source File: mercurial.py From pySINDy with MIT License | 5 votes |
def get_src_requirement(self, dist, location): repo = self.get_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = self.get_revision_hash(location) egg_project_name = dist.egg_name().split('-', 1)[0] return make_vcs_requirement_url(repo, current_rev_hash, egg_project_name)
Example #3
Source File: git.py From pySINDy with MIT License | 5 votes |
def get_src_requirement(self, dist, location): repo = self.get_url(location) if not repo.lower().startswith('git:'): repo = 'git+' + repo current_rev = self.get_revision(location) egg_project_name = dist.egg_name().split('-', 1)[0] subdir = self._get_subdirectory(location) req = make_vcs_requirement_url(repo, current_rev, egg_project_name, subdir=subdir) return req
Example #4
Source File: mercurial.py From Building-Recommendation-Systems-with-Python with MIT License | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #5
Source File: mercurial.py From Building-Recommendation-Systems-with-Python with MIT License | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #6
Source File: mercurial.py From learn_python3_spider with MIT License | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #7
Source File: mercurial.py From Hands-On-Application-Development-with-PyCharm with MIT License | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #8
Source File: mercurial.py From Weapon-Detection-And-Classification with MIT License | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #9
Source File: mercurial.py From android_universal with MIT License | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #10
Source File: mercurial.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #11
Source File: mercurial.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #12
Source File: mercurial.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)
Example #13
Source File: mercurial.py From fxxkpython with GNU General Public License v3.0 | 5 votes |
def get_src_requirement(cls, location, project_name): repo = cls.get_remote_url(location) if not repo.lower().startswith('hg:'): repo = 'hg+' + repo current_rev_hash = cls.get_revision_hash(location) return make_vcs_requirement_url(repo, current_rev_hash, project_name)