-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
34 lines (30 loc) · 1.06 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
from setuptools.command.build_ext import build_ext
from setuptools import dist, setup, Extension, find_packages
descr = 'Fetcher for datasets'
version = None
with open(os.path.join('libsvmdata', '__init__.py'), 'r') as fid:
for line in (line.strip() for line in fid):
if line.startswith('__version__'):
version = line.split('=')[1].strip().strip('\'')
break
if version is None:
raise RuntimeError('Could not determine version')
DISTNAME = 'libsvmdata'
DESCRIPTION = descr
MAINTAINER = 'Mathurin Massias'
MAINTAINER_EMAIL = '[email protected]'
LICENSE = 'BSD (3-clause)'
DOWNLOAD_URL = 'https://github.com/mathurinm/libsvmdata.git'
VERSION = version
setup(name='libsvmdata',
version=VERSION,
description=DESCRIPTION,
long_description=open('README.rst').read(),
license=LICENSE,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
download_url=DOWNLOAD_URL,
install_requires=['download', 'numpy>=1.12', 'scikit-learn', 'scipy'],
packages=find_packages(),
)