mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Auto-change development status classifier
This commit is contained in:
parent
44e2218279
commit
a030be2d15
2 changed files with 17 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue