Simplify version numbers for dev to make pypi happy.

This commit is contained in:
Steve Pulec 2019-06-30 23:29:23 -05:00
parent c4da5632ab
commit 4f86cad21e

View File

@ -76,7 +76,7 @@ def prerelease_version():
assert len(initpy_ver.split('.')) in [3, 4], 'moto/__init__.py version should be like 0.0.2 or 0.0.2.dev' assert len(initpy_ver.split('.')) in [3, 4], 'moto/__init__.py version should be like 0.0.2 or 0.0.2.dev'
assert initpy_ver > ver, 'the moto/__init__.py version should be newer than the last tagged release.' assert initpy_ver > ver, 'the moto/__init__.py version should be newer than the last tagged release.'
return f'{initpy_ver}.dev{commits_since}.{githash}' return f'{initpy_ver}.dev{commits_since}'
def read(*parts): def read(*parts):
""" Reads in file from *parts. """ Reads in file from *parts.