forked from jasperroebroek/sklearn-quantile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (35 loc) · 1.33 KB
/
setup.py
File metadata and controls
40 lines (35 loc) · 1.33 KB
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
35
36
37
38
39
40
from setuptools import setup, find_packages
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy
import os
def read_file(filename):
with open(os.path.join(os.path.dirname(__file__), filename)) as file:
return file.read()
extensions = [
Extension("sklearn_quantile.utils.weighted_quantile",
["sklearn_quantile/utils/weighted_quantile.pyx"]),
Extension("sklearn_quantile.ensemble.quantile",
["sklearn_quantile/ensemble/quantile.pyx"]),
Extension("sklearn_quantile.ensemble.maximum",
["sklearn_quantile/ensemble/maximum.pyx"])
]
setup(
name='sklearn_quantile',
version='0.0.21',
packages=find_packages(),
url='https://github.com/jasperroebroek/sklearn-quantile',
license='BSD 3 clause',
author='Jasper Roebroek',
author_email='roebroek.jasper@gmail.com',
ext_modules=cythonize(extensions),
include_dirs=[numpy.get_include()],
setup_requires=['cython', 'numpy', 'setuptools'],
install_requires=['scikit-learn>=1.0', 'cython'],
extras_require={
'develop': ['cython', 'scikit-learn>=1.0', 'sphinx', 'sphinx_rtd_theme', 'numpydoc', 'jupyter', 'matplotlib',
'pandas', 'packaging']
},
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
)