Skip to content

Commit

Permalink
BUG fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jan 21, 2020
1 parent 59df8bf commit c5915f5
Showing 1 changed file with 58 additions and 66 deletions.
124 changes: 58 additions & 66 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,74 @@

# Copyright (C) 2017 Balazs Kegl

import codecs
import os
from codecs import open

from setuptools import setup, find_packages
from setuptools import find_packages, setup

# get __version__ from _version.py
ver_file = os.path.join('rampwf', '_version.py')
with open(ver_file) as f:
exec(f.read())

# Get the long description from the README file
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()


descr = """Toolkit for building analytics workflows on the top of pandas and
scikit-learn. Primarily intended to feed RAMPs."""

DISTNAME = 'ramp-workflow'
DESCRIPTION = descr
MAINTAINER = 'Balazs Kegl'
MAINTAINER_EMAIL = '[email protected]'
DESCRIPTION = ("Toolkit for building analytics workflows on the top data "
"science ecosystem")
with codecs.open('README.rst', encoding='utf-8-sig') as f:
LONG_DESCRIPTION = f.read()
MAINTAINER = 'A. Boucaud, B. Kegl, G. Lemaitre, J. Van den Bossche'
MAINTAINER_EMAIL = '[email protected], [email protected]'
URL = 'https://github.com/paris-saclay-cds/ramp-workflow'
LICENSE = 'BSD (3-clause)'
DOWNLOAD_URL = 'https://github.com/paris-saclay-cds/ramp-workflow'
VERSION = __version__ # noqa
CLASSIFIERS = ['Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7']
INSTALL_REQUIRES = ['numy', 'scipy', 'pandas', 'scikit-learn', 'joblib',
'click']
EXTRAS_REQUIRE = {
'tests': ['pytest', 'pytest-cov'],
'docs': ['sphinx', 'sphinx_rtd_theme', 'numpydoc', 'sphinx-click']
}


if __name__ == "__main__":
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')

setup(
name=DISTNAME,
version=__version__,
maintainer=MAINTAINER,
include_package_data=True,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
download_url=DOWNLOAD_URL,
long_description=long_description,
zip_safe=False, # the package can run out of an .egg file
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'],
install_requires=[
'numpy',
'scipy',
'pandas>=0.19.2',
'scikit-learn>=0.18',
'cloudpickle',
'click'],
platforms='any',
packages=find_packages(),
entry_points={
'console_scripts': [
'ramp-test = rampwf.utils.cli.testing:start',
'ramp-show = rampwf.utils.cli.show:start',
'ramp-hyperopt = rampwf.hyperopt.cli.hyperopt:start',
'ramp_test_submission='
'rampwf.utils.command_line:ramp_test_submission',
'ramp_test_notebook='
'rampwf.utils.command_line:ramp_test_notebook',
'ramp_convert_notebook='
'rampwf.utils.command_line:ramp_convert_notebook',
'ramp_blend_submissions='
'rampwf.utils.command_line:ramp_blend_submissions',
'ramp_leaderboard='
'rampwf.utils.command_line:ramp_leaderboard',
]})
setup(
name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
version=VERSION,
download_url=DOWNLOAD_URL,
long_description=LONG_DESCRIPTION,
zip_safe=False, # the package can run out of an .egg file
classifiers=CLASSIFIERS,
packages=find_packages(),
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
entry_points={
'console_scripts': [
'ramp-test = rampwf.utils.cli.testing:start',
'ramp-show = rampwf.utils.cli.show:start',
'ramp-hyperopt = rampwf.hyperopt.cli.hyperopt:start',
'ramp_test_submission='
'rampwf.utils.command_line:ramp_test_submission',
'ramp_test_notebook='
'rampwf.utils.command_line:ramp_test_notebook',
'ramp_convert_notebook='
'rampwf.utils.command_line:ramp_convert_notebook',
'ramp_blend_submissions='
'rampwf.utils.command_line:ramp_blend_submissions',
'ramp_leaderboard='
'rampwf.utils.command_line:ramp_leaderboard',
]})

0 comments on commit c5915f5

Please sign in to comment.