-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump version to 0.1.0 * Bump to version 0.1.0 * remove todo; fix lint * Change long desc type to markdown * add __version__ * fix lint
- Loading branch information
1 parent
4bc1a35
commit ed36568
Showing
5 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
import numpyro.patch # noqa: F401 | ||
from numpyro.version import __version__ # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '0.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
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 convert README.md to rst:\n {}\n'.format(e)) | ||
sys.stderr.flush() | ||
long_description = '' | ||
|
||
|
||
setup( | ||
name='numpyro', | ||
version='0.0.0', | ||
version='0.1.0', | ||
description='Pyro PPL on Numpy', | ||
packages=find_packages(include=['numpyro', 'numpyro.*']), | ||
url='https://github.com/neerajprad/numpyro', | ||
author='Uber AI Labs', | ||
author_email='[email protected]', | ||
install_requires=[ | ||
'jax>=0.1.35', | ||
# TODO: Remove soon as JAX's API becomes stable | ||
'jax==0.1.35', | ||
'jaxlib>=0.1.14', | ||
'tqdm', | ||
], | ||
|
@@ -21,6 +41,8 @@ | |
'dev': ['ipython'], | ||
'examples': ['matplotlib'], | ||
}, | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
tests_require=['flake8', 'pytest>=4.1'], | ||
keywords='probabilistic machine learning bayesian statistics', | ||
license='MIT License', | ||
|