Skip to content

Commit

Permalink
allow setup.py to support pre-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
EEKIM10 committed May 25, 2021
1 parent 5a79e52 commit edfa469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup
from re import compile

version_regex = compile(r"__version__ = \"(?P<v>[0-9]\.[0-9]{1,2}\.[0-9]+)\"")
version_regex = compile(r"__version__ = \"(?P<v>[0-9]\.[0-9]{1,2}\.[0-9]+)(-(pre|alpha|beta)\.[0-9]+)?\"")

with open("./requirements.txt") as requirements:
reqs = requirements.read().splitlines()
Expand Down

0 comments on commit edfa469

Please sign in to comment.