Adding minor changes to classifiers and some code style fixes

This commit is contained in:
Roman Mogilatov 2015-07-24 20:23:42 +03:00
parent 55a3e94d57
commit cb78f34c1e

View File

@ -1,12 +1,9 @@
""" """`Objects` setup script."""
`Objects` setup script.
"""
import os import os
from setuptools import setup from setuptools import setup
from setuptools import Command from setuptools import Command
SHORT_DESCRIPTION = 'Dependency injection framework for Python projects' SHORT_DESCRIPTION = 'Dependency injection framework for Python projects'
@ -17,12 +14,10 @@ with open('README.rst') as readme_file:
# Removing duplicated short description. # Removing duplicated short description.
description = description.replace(SHORT_DESCRIPTION, '') description = description.replace(SHORT_DESCRIPTION, '')
# Getting requirements. # Getting requirements.
with open('requirements.txt') as version: with open('requirements.txt') as version:
requirements = version.readlines() requirements = version.readlines()
# Getting version. # Getting version.
with open('VERSION') as version: with open('VERSION') as version:
version = version.read().strip() version = version.read().strip()
@ -47,6 +42,8 @@ class PublishCommand(Command):
self.run_command('upload') self.run_command('upload')
os.system('git tag -a {0} -m \'version {0}\''.format(version)) os.system('git tag -a {0} -m \'version {0}\''.format(version))
os.system('git push --tags') os.system('git push --tags')
setup(name='Objects', setup(name='Objects',
version=version, version=version,
description=SHORT_DESCRIPTION, description=SHORT_DESCRIPTION,
@ -64,19 +61,20 @@ setup(name='Objects',
'publish': PublishCommand, 'publish': PublishCommand,
}, },
keywords=[ keywords=[
'Dependency management',
'Dependency injection', 'Dependency injection',
'Dependency injection framework',
'Dependency injection container', 'Dependency injection container',
'Dependency injector', 'Dependency injector',
'Dependency management',
'DI', 'DI',
'DIC', 'DI Container',
'Inversion of Control', 'Inversion of Control',
'Inversion of Control container', 'Inversion of Control container',
'IoC', 'IoC',
'IoC container', 'IoC container',
], ],
classifiers=[ classifiers=[
'Development Status :: 3 - Alpha', 'Development Status :: 4 - Beta',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', 'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent', 'Operating System :: OS Independent',