-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (54 loc) · 2.47 KB
/
setup.py
File metadata and controls
61 lines (54 loc) · 2.47 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
# setup.py for aima package (Norvig & Russel, AI: Modern Approach)
from setuptools import find_packages, setup
import os
from aima import __version__ as version
from aima import __authors__, __github_url__
from aima import __doc__ as description
from aima import __name__ as package_name
print('Installing package named {0}. . .'.format(package_name))
try:
from pip.req import parse_requirements
requirements = list(parse_requirements('requirements.txt'))
except:
requirements = []
install_requires=[str(req).split(' ')[0].strip() for req in requirements if req.req and not req.url]
print('requires: %r' % install_requires)
dependency_links=[req.url for req in requirements if req.url]
print('dependcies: %r' % dependency_links)
long_description = 'Python packages implementing the algorithms and example code in the textbook "Artificial Intalligence: A Modern Approach" by Norvig and Russell.'
try:
long_description = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
except:
pass
EXCLUDE_FROM_PACKAGES = []
setup(
name = package_name,
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), #[package_name],
include_package_data = True, # install non-.py files listed in MANIFEST.in (.js, .html, .txt, .md, etc)
install_requires = install_requires,
dependency_links = dependency_links,
version = version,
description = description,
long_description = long_description,
author = ', '.join(__authors__),
author_email = "peter.norvig@gmail.com",
#tests_require = ['doctest'],
#test_suite = 'setuptest.setuptest.SetupTestSuite',
#cmdclass = {'test': test},
url = __github_url__,
download_url = "%s/tarball/%s" % (__github_url__, version),
keywords = ["ai", "ml", "artificial intelligence", "machine intelligence", "norvig", "russell", "agent", "bot", "book", "textbook", "algorithm", "machine-learning", "search"],
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Mathematics",
],
)