diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..8beec04 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include reactor/templates/*.html +include reactor/static/reactor/*.min.js \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 74df626..9451e5e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,56 @@ +[metadata] +name = djangoreactor +version = 4.0.0b0 +description = Brings LiveView from Phoenix framework into Django +long_description = file: README.md +long_description_content_type = text/markdown +classifiers = + Development Status :: 4 - Beta + Environment :: Web Environment + Framework :: Django + Framework :: Django + Intended Audience :: Developers + License :: OSI Approved :: MIT License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Topic :: Internet :: WWW/HTTP + +author = Eddy Ernesto del Valle Pino +author_email = eddy@edelvalle.me +license = MIT +url = https://github.com/edelvalle/reactor + +[options] +zip_safe = False +packages = find: +include_package_data = True +python_requires = >=3.9 +install_requires = + channels>=4,<5 + pydantic>=1.8,<2 + +[options.extras_require] +dev = + black + djlint + flake8 + ipython + whitenoise + channels-redis + django-hmin + django-stubs + django-stubs-ext + pyright + ruff + twine + daphne + +[options.packages.find] +exclude = + tests [flake8] max-line-length = 80 diff --git a/setup.py b/setup.py index 83227b8..4b5369f 100644 --- a/setup.py +++ b/setup.py @@ -1,54 +1,4 @@ -from pathlib import Path -from setuptools import find_packages, setup +from setuptools import setup -HERE = Path(__file__).absolute().parent -README = open(HERE / "README.md", encoding="utf8").read() - -setup( - name="djangoreactor", - version="4.0.0b0", - url="https://github.com/edelvalle/reactor", - author="Eddy Ernesto del Valle Pino", - author_email="eddy@edelvalle.me", - long_description=README, - long_description_content_type="text/markdown", - description="Brings LiveView from Phoenix framework into Django", - license="BSD", - packages=find_packages(exclude=["tests"]), - include_package_data=True, - zip_safe=False, - python_requires=">=3.10", - install_requires=[ - "channels>=3.0.4,<4", - "pydantic>=1.8.0,<2", - ], - extras_require={ - "dev": [ - "black", - "djlint", - "flake8", - "ipython", - "whitenoise", - "channels-redis", - "django-hmin", - "django-stubs", - "django-stubs-ext", - "pyright", - "ruff", - ] - }, - classifiers=[ - "Development Status :: 4 - Beta", - "Environment :: Web Environment", - "Framework :: Django", - "Intended Audience :: Developers", - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Topic :: Internet :: WWW/HTTP", - ], -) +setup() diff --git a/tests/fision/settings.py b/tests/fision/settings.py index d515455..81765b5 100644 --- a/tests/fision/settings.py +++ b/tests/fision/settings.py @@ -43,6 +43,7 @@ "fision.todo", "reactor", "channels", + "daphne", "whitenoise.runserver_nostatic", "django.contrib.admin", "django.contrib.auth",