-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (46 loc) · 1.58 KB
/
setup.py
File metadata and controls
53 lines (46 loc) · 1.58 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
import os
from pathlib import Path
from setuptools import find_packages, setup
def get_long_description() -> str:
CURRENT_DIR = Path(__file__).parent
return (CURRENT_DIR / "README.md").read_text(encoding="utf8")
import xai_ranking._min_dependencies as min_deps # noqa
ver_file = os.path.join("xai_ranking", "_version.py")
with open(ver_file) as f:
exec(f.read())
VERSION = __version__ # noqa
SHORT_DESCRIPTION = "Ranking Explainability Benchmark"
LICENSE = "MIT"
CLASSIFIERS = [
"Intended Audience :: Science/Research",
# "Intended Audience :: Developers",
# "License :: OSI Approved",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
# "Operating System :: Microsoft :: Windows",
# "Operating System :: POSIX",
# "Operating System :: Unix",
# "Operating System :: MacOS",
# "Programming Language :: Python :: 3.9",
# "Programming Language :: Python :: 3.10",
# "Programming Language :: Python :: 3.11",
# "Programming Language :: Python :: 3.12",
]
INSTALL_REQUIRES = (min_deps.tag_to_packages["install"],)
EXTRAS_REQUIRE = {
key: value for key, value in min_deps.tag_to_packages.items() if key != "install"
}
setup(
name="xai-ranking",
version=VERSION,
description=SHORT_DESCRIPTION,
author="dataresponsibly",
long_description=get_long_description(),
long_description_content_type="text/markdown",
license=LICENSE,
classifiers=CLASSIFIERS,
packages=find_packages(),
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
)