forked from gunthercox/ChatterBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
100 lines (89 loc) · 3.05 KB
/
setup.py
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
#!/usr/bin/env python
"""
ChatterBot setup file.
"""
import os
import sys
import platform
import configparser
from setuptools import setup
if sys.version_info[0] < 3:
raise Exception(
'You are tying to install ChatterBot on Python version {}.\n'
'Please install ChatterBot in Python 3 instead.'.format(
platform.python_version()
)
)
config = configparser.ConfigParser()
current_directory = os.path.dirname(os.path.abspath(__file__))
config_file_path = os.path.join(current_directory, 'setup.cfg')
config.read(config_file_path)
VERSION = config['chatterbot']['version']
AUTHOR = config['chatterbot']['author']
AUTHOR_EMAIL = config['chatterbot']['email']
URL = config['chatterbot']['url']
with open('README.md') as f:
LONG_DESCRIPTION = f.read()
REQUIREMENTS = []
DEPENDENCIES = []
with open('requirements.txt', encoding="utf-16") as requirements:
for requirement in requirements.readlines():
if requirement.startswith('git+git://'):
DEPENDENCIES.append(requirement)
else:
REQUIREMENTS.append(requirement)
setup(
name='ChatterBot',
version=VERSION,
url=URL,
download_url='{}/tarball/{}'.format(URL, VERSION),
project_urls={
'Documentation': 'https://chatterbot.readthedocs.io',
},
description='ChatterBot is a machine learning, conversational dialog engine.',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=AUTHOR_EMAIL,
packages=[
'chatterbotpro',
'chatterbotpro.storage',
'chatterbotpro.logic',
'chatterbotpro.ext',
'chatterbotpro.ext.sqlalchemy_app',
'chatterbotpro.ext.django_chatterbot',
'chatterbotpro.ext.django_chatterbot.migrations',
],
package_dir={'chatterbotpro': 'chatterbotpro'},
include_package_data=True,
install_requires=REQUIREMENTS,
dependency_links=DEPENDENCIES,
python_requires='>=3.4, <=3.12',
license='BSD',
zip_safe=True,
platforms=['any'],
keywords=['ChatterBot', 'chatbot', 'chat', 'bot'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Environment :: Console',
'Environment :: Web Environment',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
],
test_suite='tests'
)