django-constance/setup.py

69 lines
2.2 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"),
url="https://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'],
2010-08-23 11:21:01 +00:00
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
2010-09-17 12:54:30 +00:00
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
2010-08-23 11:21:01 +00:00
'Intended Audience :: Developers',
2010-09-03 14:54:11 +00:00
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
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 :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
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,
python_requires='>=3.6',
2013-04-12 15:25:11 +00:00
extras_require={
2014-11-21 13:49:18 +00:00
'database': ['django-picklefield'],
'redis': ['redis'],
},
entry_points={
'pytest11': [
'pytest-django-constance = constance.test.pytest',
],
},
2010-08-23 11:21:01 +00:00
)