Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #55 from chrisburr/set-version
Browse files Browse the repository at this point in the history
Add __version__ attribute and use it with pypi deployments
  • Loading branch information
chrisburr authored Feb 3, 2018
2 parents 4ab672f + bae82d5 commit 42d6fbf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions root_pandas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from .readwrite import read_root
from .readwrite import to_root
from .version import __version__

__all__ = [
'__version__',
'read_root',
'to_root',
]
9 changes: 9 additions & 0 deletions root_pandas/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__all__ = [
'__version__',
'version',
'version_info',
]

__version__ = '0.3.1'
version = __version__
version_info = tuple(__version__.split('.'))
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import os

from setuptools import setup


def get_version():
g = {}
exec(open(os.path.join("root_pandas", "version.py")).read(), g)
return g["__version__"]


setup(name='root_pandas',
version='0.2.0',
version=get_version(),
description='Read and save DataFrames from and to ROOT files',
url='http://github.com/chrisburr/root_pandas',
author='Chris Burr',
Expand Down

0 comments on commit 42d6fbf

Please sign in to comment.