Klaus Demo ~jonashaag/klaus / 0fa6ab4
Merge pull request #253 from jelmer/dulwich-python2 Use an older version of Dulwich on Python 2 Jonas Haag authored 4 months ago GitHub committed 4 months ago
3 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
141141
142142 def get_tag_and_branch_shas(self):
143143 """Return a list of SHAs of all tags and branches."""
144 tag_shas = self.get_refs_as_dict('refs/tags/').values()
145 branch_shas = self.get_refs_as_dict('refs/heads/').values()
144 tag_shas = self.get_refs_as_dict(b'refs/tags/').values()
145 branch_shas = self.get_refs_as_dict(b'refs/heads/').values()
146146 return set(tag_shas) | set(branch_shas)
147147
148148 def history(self, commit, path=None, max_commits=None, skip=0):
1313
1414 install_data_files_hack()
1515
16 requires = ['six', 'flask', 'Werkzeug>=0.15.0', 'pygments', 'dulwich>=0.19.3', 'httpauth', 'humanize']
16 requires = ['six', 'flask', 'Werkzeug>=0.15.0', 'pygments', 'httpauth', 'humanize', 'dulwich>=0.19.3;python_version>="3.5"', 'dulwich>=0.19.3,<0.20;python_version<"3.5"']
1717
1818 setup(
1919 name='klaus',
1212 manpage = force_unicode(subprocess.check_output(["man", "./klaus.1"]))
1313
1414 def assert_in_manpage(s):
15 clean = lambda x: re.sub('(.\\x08)|\s', '', x)
15 clean = lambda x: re.sub('(.\\x08)|\\s', '', x)
1616 assert clean(s) in clean(manpage), "%r not found in manpage" % s
1717
1818 mock_parser = mock.Mock()