Auto-change development status classifier

This commit is contained in:
Alex Root Junior 2017-09-16 20:29:34 +03:00
parent 44e2218279
commit a030be2d15
2 changed files with 17 additions and 3 deletions

View file

@ -51,6 +51,20 @@ class Version:
def raw_version(self):
return self.raw_version
@property
def pypi_development_status(self):
if self.build == Stage.DEV:
status = '2 - Pre-Alpha'
elif self.build == Stage.ALPHA:
status = '3 - Alpha'
elif self.build == Stage.BETA:
status = '4 - Beta'
elif self.build == Stage.FINAL:
status = '5 - Production/Stable'
else:
status = '1 - Planning'
return f"Development Status :: {status}"
def get_version(self):
"""
Returns a PEP 440-compliant version number from VERSION.