python-dependency-injector/setup.py

82 lines
2.4 KiB
Python
Raw Normal View History

2015-01-04 16:54:25 +03:00
"""
`Objects` setup script.
"""
2015-01-05 12:16:51 +03:00
import os
import sys
2015-01-04 16:54:25 +03:00
from setuptools import setup
# Getting description.
2015-01-05 12:11:21 +03:00
try:
import pypandoc
except (IOError, ImportError):
with open('README.md') as readme_file:
2015-01-04 16:54:25 +03:00
description = readme_file.read()
2015-01-05 12:11:21 +03:00
else:
description = pypandoc.convert('README.md', 'rst', format='markdown')
2015-01-04 16:54:25 +03:00
# Getting requirements.
with open('requirements.txt') as version:
requirements = version.readlines()
# Getting version.
with open('VERSION') as version:
version = version.read().strip()
2015-01-05 12:16:51 +03:00
# Helper commands.
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
if sys.argv[-1] == 'tag':
os.system('git tag -a {0} -m \'version {0}\''.format(version))
os.system('git push --tags')
sys.exit()
2015-01-04 16:54:25 +03:00
setup(
name='Objects',
version=version,
description='Python catalogs of objects providers',
long_description=description,
author='Roman Mogilatov',
author_email='rmogilatov@gmail.com',
maintainer='Roman Mogilatov',
maintainer_email='rmogilatov@gmail.com',
url='https://github.com/rmk135/objects',
license='BSD New',
packages=['objects'],
zip_safe=True,
install_requires=requirements,
# keywords=['Dependency injection',
# 'Dependency injection container',
# 'DI',
# 'DIC',
# 'Dependency injector',
# 'Inversion of Control',
# 'Inversion of Control container',
# 'IoC',
# 'IoC container'],
classifiers=[
'Development Status :: 1 - Planning',
# 'Development Status :: 4 - Beta',
2015-01-05 12:11:21 +03:00
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
2015-01-04 16:54:25 +03:00
# 'Programming Language :: Python :: 3',
# 'Programming Language :: Python :: 3.2',
# 'Programming Language :: Python :: 3.3',
# 'Programming Language :: Python :: 3.4',
2015-01-05 12:11:21 +03:00
'Programming Language :: Python :: Implementation :: CPython',
2015-01-04 16:54:25 +03:00
# 'Programming Language :: Python :: Implementation :: PyPy',
2015-01-05 12:11:21 +03:00
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
2015-01-04 16:54:25 +03:00
]
)