Skip to content

Commit

Permalink
Improve setup.py metadata regex
Browse files Browse the repository at this point in the history
  • Loading branch information
triole committed Aug 1, 2023
1 parent aea3428 commit 639fff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -4,7 +4,7 @@

# get metadata from mudule using a regexp
with open('rdmo/__init__.py') as f:
metadata = dict(re.findall(r'__(.*)__ = [\']([^\']*)[\']', f.read()))
metadata = dict(re.findall(r'__(.*)__ = [\'"]([^\'"]*)[\'"]', f.read()))

# get install_requires from requirements.txt
with open('requirements.txt') as f:
Expand Down

0 comments on commit 639fff5

Please sign in to comment.