diff --git a/setup.cfg b/setup.cfg index 05af7b743..9068aff8d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,50 @@ +[metadata] +name = channels +version = attr: channels.__version__ +url = https://github.com/django/channels +author = Django Software Foundation +author_email = foundation@djangoproject.com +description = Brings async, event-driven capabilities to Django. Django 2.2 and up only. +long_description = file: README.rst +license = BSD +classifiers = + Development Status :: 5 - Production/Stable + Environment :: Web Environment + Framework :: Django + Intended Audience :: Developers + License :: OSI Approved :: BSD License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Topic :: Internet :: WWW/HTTP + +[options] +python_requires = >=3.5 +packages = find: +include_package_data = true +install_requires = + Django >= 2.2 + asgiref ~= 3.2 + daphne ~= 2.3 + +[options.packages.find] +exclude = + tests + +[options.extras_require] +tests = + pytest + pytest-django + pytest-asyncio + async_generator + async-timeout + coverage ~= 4.5 + [flake8] exclude = venv/*,tox/*,docs/*,testproject/*,build/* ignore = E123,E128,E266,E402,W503,E731,W601 @@ -12,8 +59,5 @@ line_length = 88 force_grid_wrap=0 use_parentheses=True -[bdist_wheel] -universal=1 - [tool:pytest] testpaths = tests diff --git a/setup.py b/setup.py index f9c1831c5..606849326 100644 --- a/setup.py +++ b/setup.py @@ -1,45 +1,3 @@ -from setuptools import find_packages, setup -from channels import __version__ +from setuptools import setup -setup( - name='channels', - version=__version__, - url='http://github.com/django/channels', - author='Django Software Foundation', - author_email='foundation@djangoproject.com', - description="Brings async, event-driven capabilities to Django. Django 2.2 and up only.", - license='BSD', - packages=find_packages(exclude=['tests']), - include_package_data=True, - python_requires='>=3.5', - install_requires=[ - 'Django>=2.2', - 'asgiref~=3.2', - 'daphne~=2.3', - ], - extras_require={ - 'tests': [ - "pytest", - "pytest-django", - "pytest-asyncio", - "async_generator", - "async-timeout", - "coverage~=4.5", - ], - }, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Web Environment', - 'Framework :: Django', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: Internet :: WWW/HTTP', - ], -) +setup()