forked from pyro-ppl/numpyro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (65 loc) · 2.32 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
# Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import, division, print_function
import os
import sys
from setuptools import find_packages, setup
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
# Find version
for line in open(os.path.join(PROJECT_PATH, 'numpyro', 'version.py')):
if line.startswith('__version__ = '):
version = line.strip().split()[2][1:-1]
# READ README.md for long description on PyPi.
try:
long_description = open('README.md', encoding='utf-8').read()
except Exception as e:
sys.stderr.write('Failed to read README.md:\n {}\n'.format(e))
sys.stderr.flush()
long_description = ''
setup(
name='numpyro',
version=version,
description='Pyro PPL on NumPy',
packages=find_packages(include=['numpyro', 'numpyro.*']),
url='https://github.com/pyro-ppl/numpyro',
author='Uber AI Labs',
author_email='[email protected]',
install_requires=[
# TODO: pin to a specific version for the release (until JAX's API becomes stable)
'jax>=0.2.3',
# check min version here: https://github.com/google/jax/blob/master/jax/lib/__init__.py#L26
'jaxlib>=0.1.56',
'tqdm',
],
extras_require={
'doc': ['nbsphinx', 'sphinx', 'sphinx_rtd_theme', 'sphinx-gallery'],
'test': [
'flake8',
'pytest>=4.1',
'pyro-api>=0.1.1'
],
'dev': [
'funsor',
'ipython',
'isort',
'flax',
'dm-haiku',
'tfp-nightly', # TODO: change this to stable release or a specific nightly release
],
'examples': ['matplotlib', 'seaborn', 'graphviz', 'arviz'],
},
long_description=long_description,
long_description_content_type='text/markdown',
keywords='probabilistic machine learning bayesian statistics',
license='Apache License 2.0',
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',
],
)