-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
97 lines (86 loc) · 2.48 KB
/
Copy pathsetup.py
File metadata and controls
97 lines (86 loc) · 2.48 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
#!/usr/bin/env python3
# import re
from io import open
from os import path
from setuptools import find_packages, setup
# Dependencies with options for different user needs. If updating this, you may need to update docs/requirements.txt too.
# If option names are changed, you need to update the installation guide at docs/source/installation.md respectively.
# Not all have a min-version specified, which is not uncommon. Specify when known or necessary (e.g. errors).
# Core dependencies frequently used in the kalelinear API
install_requires = [
"cvxopt",
"numpy",
"osqp",
"pandas",
"scikit-learn>=1.6.0",
"scipy",
"tensorly",
]
# Dependencies for all examples and tutorials
example_requires = [
"ipykernel",
"ipython",
"matplotlib",
"nilearn",
"seaborn",
"yacs>=0.1.7",
]
# Full dependencies except for development
full_requires = install_requires + example_requires
# Additional dependencies for development
dev_requires = full_requires + [
"black==26.3.1",
"coverage",
"flake8",
"flake8-print",
"ipywidgets",
"isort",
"m2r",
"mypy",
"nbmake>=0.8",
"nbsphinx",
"nbsphinx-link",
"nbval",
"pre-commit",
"pytest",
"pytest-cov",
"recommonmark",
"sphinx",
"sphinx-rtd-theme",
]
# Get version
def read(*names, **kwargs):
with open(
path.join(path.dirname(__file__), *names),
encoding=kwargs.get("encoding", "utf8"),
) as fp:
return fp.read()
setup(
name="kalelinear",
version="0.1.0a1",
description="Non-deep knowledge-aware machine learning from multiple sources/views in Python",
url="https://github.com/pykale/kale-linear",
author="The PyKale team",
author_email="pykale-group@sheffield.ac.uk",
project_urls={
"Bug Tracker": "https://github.com/pykale/kale-linear/issues",
"Source": "https://github.com/pykale/kale-linear",
},
license="MIT License",
packages=find_packages(exclude=("tests*", "examples*", "docs*")),
install_requires=install_requires,
extras_require={
"full": full_requires,
"dev": dev_requires,
},
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
)