setup.py
521fd775
 #!/usr/bin/env python3
374e51e2
 # -*- coding: utf-8 -*-
 
032c6b09
 from setuptools import setup, find_packages
94a7301b
 import sys
374e51e2
 
 
bffa7dc4
 if sys.version_info < (3, 6):
     print('adaptive requires Python 3.6 or above.')
     sys.exit(1)
 
28e733fc
 
3a69cd99
 # Loads _version.py module without importing the whole package.
273e1596
 def get_version_and_cmdclass(package_name):
     import os
94a7301b
     from importlib.util import module_from_spec, spec_from_file_location
c9035236
     spec = spec_from_file_location('version',
3a69cd99
                                    os.path.join(package_name, '_version.py'))
c9035236
     module = module_from_spec(spec)
     spec.loader.exec_module(module)
3a69cd99
     return module.__version__, module.cmdclass
c9035236
 
28e733fc
 
273e1596
 version, cmdclass = get_version_and_cmdclass('adaptive')
 
28e733fc
 
a6826e65
 install_requires = [
     'scipy',
     'sortedcontainers',
 ]
 
f0b0854b
 extras_require = {
d45f0ed9
     'notebook': [
f1e5e354
         'ipython',
         'ipykernel>=4.8.0',  # because https://github.com/ipython/ipykernel/issues/274 and https://github.com/ipython/ipykernel/issues/263
         'jupyter_client>=5.2.2',  # because https://github.com/jupyter/jupyter_client/pull/314
f0b0854b
         'holoviews>=1.9.1',
         'ipywidgets',
205f0746
         'bokeh',
         'matplotlib',
b563e096
         'plotly',
f0b0854b
     ],
bffa7dc4
 }
374e51e2
 
f1e5e354
 
374e51e2
 setup(
     name='adaptive',
d45f0ed9
     description='Adaptive parallel sampling of mathematical functions',
a25468a6
     version=version,
374e51e2
     url='https://gitlab.kwant-project.org/qt/adaptive',
     author='Adaptive authors',
     license='BSD',
     classifiers=[
ab6c6118
         'Development Status :: 4 - Beta',
acf50dc3
         'License :: OSI Approved :: BSD License',
374e51e2
         'Intended Audience :: Science/Research',
         'Programming Language :: Python :: 3.6',
     ],
032c6b09
     packages=find_packages('.'),
9254ad5c
     install_requires=install_requires,
     extras_require=extras_require,
94a7301b
     cmdclass=cmdclass,
374e51e2
 )