-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (50 loc) · 1.82 KB
/
Copy pathsetup.py
File metadata and controls
53 lines (50 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import os
from setuptools import find_packages, setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# get README
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='django-explain-errors',
version='0.3.0',
packages=find_packages(exclude=['tests', 'tests.*']),
description='Django middleware that captures errors and exceptions, sends them to OpenAI for a detailed explanation, and prints the explanation to stdout when debug mode is enabled. Supports both sync and async views.',
long_description_content_type='text/markdown',
long_description=long_description,
python_requires='>=3.9',
install_requires=[
'Django>=4.2',
'openai>=1.0',
'python-dotenv>=1.0',
'asgiref>=3.6',
],
extras_require={
'rag': [
'sqlite-vec>=0.1.0',
],
},
url='https://github.com/topunix/django-explain-errors',
author='topunix',
author_email='topunixguy@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Framework :: Django :: 5.1',
'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',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Internet :: WWW/HTTP',
],
)