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):
|
def raw_version(self):
|
||||||
return self.raw_version
|
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):
|
def get_version(self):
|
||||||
"""
|
"""
|
||||||
Returns a PEP 440-compliant version number from VERSION.
|
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 setuptools import PackageFinder
|
||||||
|
|
||||||
from aiogram import __version__ as version
|
from aiogram import VERSION
|
||||||
|
|
||||||
ALLOWED_SYMBOLS = string.ascii_letters + string.digits + '_-'
|
ALLOWED_SYMBOLS = string.ascii_letters + string.digits + '_-'
|
||||||
|
|
||||||
|
|
@ -41,7 +41,7 @@ def get_requirements():
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='aiogram',
|
name='aiogram',
|
||||||
version=version,
|
version=VERSION.version,
|
||||||
packages=PackageFinder.find(exclude=('tests', 'examples', 'docs',)),
|
packages=PackageFinder.find(exclude=('tests', 'examples', 'docs',)),
|
||||||
url='https://bitbucket.org/illemius/aiogram',
|
url='https://bitbucket.org/illemius/aiogram',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
|
|
@ -50,7 +50,7 @@ setup(
|
||||||
description='Is are pretty simple and fully asynchronously library for Telegram Bot API',
|
description='Is are pretty simple and fully asynchronously library for Telegram Bot API',
|
||||||
long_description=get_description(),
|
long_description=get_description(),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
VERSION.pypi_development_status, # Automated change classifier by build stage
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'Framework :: AsyncIO',
|
'Framework :: AsyncIO',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue