-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
88 lines (82 loc) · 2.62 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
with open('funfact/__init__.py') as fd:
__version__ = re.search("__version__ = '(.*)'", fd.read()).group(1)
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox # import here, cause outside the eggs aren't loaded
errcode = tox.cmdline(self.test_args)
sys.exit(errcode)
setup(
name='funfact',
version=__version__,
python_requires='>=3.7',
url='https://github.com/yhtang/FunFact',
license='BSD',
author='Yu-Hang Tang',
tests_require=['tox'],
install_requires=[
'numpy>=1.20',
'tqdm>=4.55',
'dill>=0.3.3',
'matplotlib>=3.2',
'asciitree>=0.3.3',
'plum-dispatch>=1.5.8'
],
extras_require={
'jax': [
'jax>=0.2.24',
'jaxlib>=0.1.73',
],
'torch': [
'torch>=1.9',
],
'docs': [
'mkdocs==1.2.3',
'mkdocs-gen-files==0.3.3',
'mkdocs-material==8.1.9',
'mkdocs-literate-nav==0.4.1',
'mkdocs-section-index==0.3.2',
'mkdocs-jupyter==0.20.1',
'mkdocstrings==0.17.0',
'jinja2==3.0.3', # https://github.com/mkdocs/mkdocs/issues/2799
],
'devel': [
'expectexception>=0.1.1',
'tox>=3.24.4',
'pytest>=4.6.11',
'pytest-cov>=3.0.0',
'flake8>=4.0.1',
]
},
cmdclass={'test': Tox},
author_email='[email protected]',
description='Functional factorization for matrices and tensors',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
packages=find_packages(exclude='test'),
package_data={'': ['README.md', 'funfact/cpp/*']},
platforms='any',
classifiers=[
'Programming Language :: Python',
'Development Status :: 5 - Production/Stable',
'Natural Language :: English',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)