Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change packaging to use setuptools declarative config in setup.cfg #1394

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 47 additions & 3 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 = [email protected]
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
Expand All @@ -12,8 +59,5 @@ line_length = 88
force_grid_wrap=0
use_parentheses=True

[bdist_wheel]
universal=1

[tool:pytest]
testpaths = tests
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='[email protected]',
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()