Skip to content

Commit

Permalink
Change packaging to use setuptools declarative config in setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-k committed Dec 23, 2019
1 parent 56bb2b9 commit 301a782
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 44 deletions.
47 changes: 47 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 ~= 4.4
pytest-django ~= 3.4
pytest-asyncio ~= 0.10
async_generator ~= 1.10
async-timeout ~= 3.0
coverage ~= 4.5

[flake8]
exclude = venv/*,tox/*,docs/*,testproject/*,build/*
ignore = E123,E128,E266,E402,W503,E731,W601
Expand Down
46 changes: 2 additions & 44 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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~=4.4',
"pytest-django~=3.4",
"pytest-asyncio~=0.10",
"async_generator~=1.10",
"async-timeout~=3.0",
'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()

0 comments on commit 301a782

Please sign in to comment.