Skip to content

Commit

Permalink
Merge pull request Trusted-AI#64 from IBM/version_tracking
Browse files Browse the repository at this point in the history
added support for aif360.__version__
  • Loading branch information
nrkarthikeyan authored Jan 18, 2019
2 parents 6b65701 + 741e3c5 commit 59925fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
docs/build/
aif360/data/raw/**
!aif360/data/raw/*/*.md
aif360/version.py
4 changes: 4 additions & 0 deletions aif360/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
from .version import version as __version__
except ImportError:
pass
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@
We have developed the package with extensibility in mind. This library is still in development. We encourage the
contribution of your datasets, metrics, explainers, and debiasing algorithms."""

version = '0.1.1'

with open("aif360/version.py", 'w') as f:
f.write('# generated by setup.py\nversion = "{}"\n'.format(version))

setup(name='aif360',
version='0.1.1',
version=version,
description='IBM AI Fairness 360',
author='aif360 developers',
author_email='[email protected]',
url='https://github.com/IBM/AIF360',
long_description=long_description,
long_description_content_type='text/markdown',
license='Apache License 2.0',
packages=find_packages(),
packages=[pkg for pkg in find_packages() if pkg.startswith('aif360')],
# python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.7',
install_requires=[
'numpy>=1.14,<1.16',
'scipy',
'pandas==0.23.3',
'scikit-learn',
'numba',
],
package_data={'aif360': ['data/*', 'data/*/*', 'data/*/*/*']},
include_package_data=True,
Expand Down

0 comments on commit 59925fd

Please sign in to comment.