-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
49 lines (42 loc) · 1.42 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
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: Apache-2.0
# Portions copyright 2023 FMR LLC
# Portions copyright 2023 Amazon Web Services, Inc.
import os
import setuptools
# Note: execute _version.py since we cannot do this:
# from boolxai._version import __author__, __docurl__, __url__, __version__
# because it imports boolxai which will fail due to not having installed the
# dependencies yet!
with open(os.path.join("boolxai", "_version.py")) as f:
exec(f.read())
with open("README.md", "r") as f:
long_description = f.read()
with open("requirements.txt") as f:
required = f.read().splitlines()
with open("requirements_plot.txt") as fh:
plot_reqs = fh.read().splitlines()
setuptools.setup(
name="boolxai",
description="BoolXAI: Explainable AI using expressive Boolean formulas",
long_description=long_description,
long_description_content_type="text/markdown",
version=__version__,
author=__author__,
url=__url__,
packages=setuptools.find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]
),
install_requires=required,
python_requires=">=3.8",
extras_require={"plot": plot_reqs},
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
],
project_urls={
"Source": __url__,
"Documentation": __docurl__,
},
)