-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
86 lines (81 loc) · 2.55 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
# Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import sys
from setuptools import find_packages, setup
# READ README.md for long description on PyPi.
# This requires uploading via twine, e.g.:
# $ python setup.py sdist bdist_wheel
# $ twine upload --repository-url https://test.pypi.org/legacy/ dist/* # test version
# $ twine upload dist/*
try:
long_description = open('README.md', encoding='utf-8').read()
except Exception as e:
sys.stderr.write('Failed to convert README.md to rst:\n {}\n'.format(e))
sys.stderr.flush()
long_description = ''
# Remove badges since they will always be obsolete.
# This assumes the first 4 lines contain badge info.
long_description = '\n'.join(line for line in long_description.split('\n')[4:])
setup(
name='funsor',
version='0.3.0',
description='A tensor-like library for functions and distributions',
packages=find_packages(include=['funsor', 'funsor.*']),
url='https://github.com/pyro-ppl/funsor',
project_urls={
"Documentation": "https://funsor.pyro.ai",
},
author='Uber AI Labs',
author_email='[email protected]',
python_requires=">=3.6",
install_requires=[
'makefun',
'multipledispatch',
'numpy>=1.7',
'opt_einsum>=2.3.2',
],
extras_require={
'torch': [
'pyro-ppl>=1.4',
'torch>=1.6.0',
],
'jax': [
'numpyro>=0.2.4',
'jax>=0.1.57',
'jaxlib>=0.1.37',
],
'test': [
'flake8',
'pandas',
'pyro-api>=0.1.2',
'pytest==4.3.1',
'pytest-xdist==1.27.0',
'scipy',
'torchvision',
],
'dev': [
'flake8',
'isort',
'pandas',
'pytest==4.3.1',
'pytest-xdist==1.27.0',
'scipy',
'sphinx>=2.0',
'sphinx_rtd_theme',
'torchvision',
],
},
long_description=long_description,
long_description_content_type='text/markdown',
keywords='probabilistic machine learning bayesian statistics pytorch jax',
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)