Skip to content

Commit

Permalink
ENH: Support "extras" install, geomstats.__version__
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 17, 2018
1 parent 0d6979a commit 37dd9b3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
15 changes: 15 additions & 0 deletions geomstats/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
__version__ = '1.11-dev' # Remove -dev before releasing

install_requires = [
'autograd',
'numpy>=1.14.1',
'scipy',
'matplotlib',
]

extras_require = {
'test': ['nose2', 'coverage', 'codecov'],
'tf': ['tensorflow>=1.8'],
'torch': ['torch==0.4.0'],
}
extras_require['all'] = sum(extras_require.values(), [])
2 changes: 2 additions & 0 deletions geomstats/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from .__about__ import __version__

import geomstats.manifold
import geomstats.euclidean_space
import geomstats.hyperbolic_space
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from setuptools import setup, find_packages

with open('requirements.txt') as fp:
install_requires = fp.read()
from geomstats.__about__ import __version__, install_requires, extras_require

setup(name='geomstats',
version='1.11',
version=__version__,
install_requires=install_requires,
extras_require=extras_require,
description='Geometric statistics on manifolds',
url='http://github.com/geomstats/geomstats',
author='Nina Miolane',
Expand Down

0 comments on commit 37dd9b3

Please sign in to comment.