-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
105 lines (96 loc) · 3.3 KB
/
Copy pathsetup.py
File metadata and controls
105 lines (96 loc) · 3.3 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
"""
WATBOT - WhatsApp & Instagram Automation Bot with AI-powered responses
"""
from setuptools import setup, find_packages
import os
from typing import List
def read_requirements(filename: str) -> List[str]:
"""Read requirements from file, filtering comments and empty lines"""
with open(filename, 'r', encoding='utf-8') as f:
return [
line.strip()
for line in f
if line.strip() and not line.startswith('#')
]
def read_file(filename: str) -> str:
"""Read file contents, try both cases if not found"""
try:
# Try exact filename first
with open(filename, 'r', encoding='utf-8') as f:
return f.read()
except FileNotFoundError:
# Try lowercase
try:
with open(filename.lower(), 'r', encoding='utf-8') as f:
return f.read()
except FileNotFoundError:
# Try uppercase
try:
with open(filename.upper(), 'r', encoding='utf-8') as f:
return f.read()
except FileNotFoundError:
print(f"Warning: Could not find {filename} in any case variation, using empty string")
return ""
# Core setup configuration
setup(
name="watbot",
version="0.1.1",
author="Nithin Jambula",
author_email="nithin@example.com",
description="WhatsApp & Instagram Automation Bot with AI-powered responses",
long_description=read_file("README.md"),
long_description_content_type="text/markdown",
# Project URLs
url="https://github.com/nithin434/woat",
project_urls={
"Bug Tracker": "https://github.com/nithin434/woat/issues",
"Documentation": "https://github.com/nithin434/woat/wiki",
"Source Code": "https://github.com/nithin434/woat",
},
# Package configuration
packages=find_packages(include=['watbot', 'watbot.*']),
include_package_data=True,
# Dependencies
python_requires=">=3.8",
install_requires=read_requirements("requirements.txt"),
extras_require={
'dev': [
'pytest>=7.0',
'pytest-asyncio>=0.21.1',
'pytest-cov>=3.0',
'black>=22.0',
'flake8>=4.0',
'mypy>=0.950',
],
},
# Package metadata
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Communications :: Chat",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
],
# Entry points
entry_points={
"console_scripts": [
"watbot=watbot.cli:main",
],
},
# Package Keywords
keywords=[
"whatsapp", "instagram", "bot", "automation",
"ai", "chat", "messaging", "api"
],
)