Skip to content

Commit

Permalink
Migrate to setup.cfg file
Browse files Browse the repository at this point in the history
  • Loading branch information
edelvalle committed Jun 1, 2023
1 parent 699ff4c commit 81a5567
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 52 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include reactor/templates/*.html
include reactor/static/reactor/*.min.js
53 changes: 53 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 = [email protected]
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
Expand Down
54 changes: 2 additions & 52 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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()
1 change: 1 addition & 0 deletions tests/fision/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"fision.todo",
"reactor",
"channels",
"daphne",
"whitenoise.runserver_nostatic",
"django.contrib.admin",
"django.contrib.auth",
Expand Down

0 comments on commit 81a5567

Please sign in to comment.