Skip to content

Commit

Permalink
setup: map ~= to >= to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermann committed Sep 10, 2020
1 parent 55ddf49 commit a1be0bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions {{cookiecutter.repo_name}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def _build_metadata(): # pylint: disable=too-many-locals, too-many-branches
line = line.split('#egg=')[1]
elif line.startswith('http'):
line = line.split('#egg=')[1]
line = line.replace('~=', '>=')
requires[key].append(line)
if not any('pytest' == re.split('[\t ,<=>]', i.lower())[0] for i in requires['test']):
requires['test'].append('pytest') # add missing requirement
Expand Down

0 comments on commit a1be0bd

Please sign in to comment.