-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (63 loc) · 2.69 KB
/
setup.py
File metadata and controls
65 lines (63 loc) · 2.69 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
54
55
56
57
58
59
60
61
62
63
64
65
from setuptools import setup, find_packages
import os
# Read README with proper exception handling
long_description = ""
readme_path = os.path.join(os.path.dirname(__file__), "README.md")
try:
with open(readme_path, "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError:
print("Warning: README.md not found, using default description")
long_description = "A lightweight Python library for classifying support tickets using AI"
except IOError as e:
print(f"Warning: Could not read README.md: {e}")
long_description = "A lightweight Python library for classifying support tickets using AI"
except Exception as e:
print(f"Warning: Unexpected error reading README.md: {e}")
long_description = "A lightweight Python library for classifying support tickets using AI"
setup(
name="ai-ticket-classifier",
version="0.1.1",
author="Turtles AI Lab",
author_email="jgreenia@jandraisolutions.com",
description="A lightweight Python library for classifying support tickets using AI",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Turtles-AI-Lab/ai-ticket-classifier",
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Office/Business",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.8",
install_requires=[
# No required dependencies for basic pattern matching
],
extras_require={
"llm": [
"openai>=1.0.0,<2.0.0", # Pin to v1.x with upper bound
"requests>=2.32.0,<3.0.0", # Updated to latest secure version
],
"dev": [
"pytest>=8.0.0,<9.0.0", # Updated to latest
"black>=24.0.0,<25.0.0", # Updated to latest
"flake8>=7.0.0,<8.0.0", # Updated to latest
"mypy>=1.0.0,<2.0.0", # Added type checking
],
},
keywords="ticket classification, support tickets, ai, nlp, helpdesk, automation",
project_urls={
"Bug Reports": "https://github.com/Turtles-AI-Lab/ai-ticket-classifier/issues",
"Source": "https://github.com/Turtles-AI-Lab/ai-ticket-classifier",
"Documentation": "https://github.com/Turtles-AI-Lab/ai-ticket-classifier#readme",
},
)