mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +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.
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -5,7 +5,7 @@ from distutils.core import setup
|
|||
|
||||
from setuptools import PackageFinder
|
||||
|
||||
from aiogram import __version__ as version
|
||||
from aiogram import VERSION
|
||||
|
||||
ALLOWED_SYMBOLS = string.ascii_letters + string.digits + '_-'
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ def get_requirements():
|
|||
|
||||
setup(
|
||||
name='aiogram',
|
||||
version=version,
|
||||
version=VERSION.version,
|
||||
packages=PackageFinder.find(exclude=('tests', 'examples', 'docs',)),
|
||||
url='https://bitbucket.org/illemius/aiogram',
|
||||
license='MIT',
|
||||
|
|
@ -50,7 +50,7 @@ setup(
|
|||
description='Is are pretty simple and fully asynchronously library for Telegram Bot API',
|
||||
long_description=get_description(),
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
VERSION.pypi_development_status, # Automated change classifier by build stage
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Environment :: Console',
|
||||
'Framework :: AsyncIO',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue