django-constance/setup.py

60 lines
1.9 KiB
Python
Raw Normal View History

2010-08-23 11:21:01 +00:00
import os
2014-11-25 21:22:04 +00:00
import re
import codecs
2010-08-23 11:21:01 +00:00
from setuptools import setup, find_packages
2014-11-25 21:22:04 +00:00
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
2010-09-17 12:54:30 +00:00
2010-08-23 11:21:01 +00:00
setup(
name='django-constance',
2014-11-25 21:22:04 +00:00
version=find_version("constance", "__init__.py"),
2015-12-17 08:45:19 +00:00
url="http://github.com/jazzband/django-constance",
description='Django live settings with pluggable backends, including Redis.',
2014-11-25 21:22:04 +00:00
long_description=read('README.rst'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
2010-09-17 12:54:30 +00:00
license='BSD',
2010-08-23 11:21:01 +00:00
keywords='django libraries settings redis'.split(),
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
2010-09-17 12:54:30 +00:00
'Framework :: Django',
2010-08-23 11:21:01 +00:00
'Intended Audience :: Developers',
'Natural Language :: English',
2010-09-03 14:54:11 +00:00
'License :: OSI Approved :: BSD License',
2010-08-23 11:21:01 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python',
2014-11-25 21:22:04 +00:00
'Programming Language :: Python :: 2',
2013-03-02 16:05:26 +00:00
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
2014-11-25 21:22:04 +00:00
'Programming Language :: Python :: 3',
2013-04-12 15:25:11 +00:00
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
2014-11-25 21:22:04 +00:00
'Programming Language :: Python :: 3.4',
2017-02-17 13:06:06 +00:00
'Programming Language :: Python :: 3.5',
2010-09-17 12:54:30 +00:00
'Topic :: Utilities',
2010-08-23 11:21:01 +00:00
],
2014-11-21 13:49:13 +00:00
packages=find_packages(exclude=['tests', 'tests.*']),
2010-08-23 11:21:01 +00:00
include_package_data=True,
zip_safe=False,
2013-04-12 15:25:11 +00:00
extras_require={
2014-11-21 13:49:18 +00:00
'database': ['django-picklefield'],
'redis': ['redis'],
}
2010-08-23 11:21:01 +00:00
)