-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
47 lines (41 loc) · 1.26 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
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /usr/bin/env python
# Copyright (C) 2022 Pedro Ilídio <[email protected]>
# License: 3-clause BSD
from setuptools import setup, Extension, find_packages
from pathlib import Path
from Cython.Build import cythonize
import numpy
PATH_ROOT = Path(__file__).parent
README = (PATH_ROOT/"README.md").read_text()
# Get __version__ from _version.py
exec((PATH_ROOT/"bipartite_learn/_version.py").read_text())
VERSION = __version__
extensions = [Extension("bipartite_learn.tree.*", ["bipartite_learn/tree/*.pyx"])]
setup(
name='bipartite_learn',
version=VERSION,
description='Machine learning estimators for bipartite data.',
include_dirs=[numpy.get_include()],
long_description=README,
long_description_content_type="text/markdown",
url='http://github.com/pedroilidio/bipartite_learn',
author='Pedro Ilídio',
author_email='[email protected]',
license='new BSD',
packages=find_packages(),
zip_safe=False,
install_requires=[
'cython==0.29.33',
'scikit-learn==1.3.0',
'numpy>=1.22.2',
'imbalanced-learn==0.9.1',
],
extras_require={
'docs': ['sphinx', 'pydata-sphinx-theme'],
},
ext_modules=cythonize(
extensions,
language_level="3",
gdb_debug=True,
),
)