Skip to content

Commit

Permalink
add __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajprad committed May 31, 2019
1 parent b6e7f7c commit 474fc41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions numpyro/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import numpyro.patch # noqa: F401
from numpyro.version import __version__
1 change: 1 addition & 0 deletions numpyro/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.1.0'
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
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:
Expand Down

0 comments on commit 474fc41

Please sign in to comment.