/
setup.py
48 lines (43 loc) · 1.42 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
48
import os
from setuptools import setup
from setuptools import find_packages
import numpy as np
from Cython.Build import cythonize
with open("README.md", "r") as fh:
long_description = fh.read()
ext_modules = ['ibug/parsers/_tree32.pyx',
'ibug/parsers/_tree64.pyx']
libraries = []
if os.name == 'posix':
libraries.append('m')
setup(name="ibug",
version="0.0.9",
description="Instance-Based Uncertainty Estimation for Gradient-Boosted Regression Trees",
author="Jonathan Brophy",
author_email="jonathanbrophy47@gmail.com",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jjbrophy47/ibug",
packages=find_packages(),
include_package_data=True,
package_dir={"ibug": "ibug"},
classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent"],
python_requires='>=3.9',
install_requires=[
"numpy>=1.22",
"uncertainty-toolbox>=0.1.0",
"joblib>=1.1.0",
"scikit-learn>=1.1.1",
"scipy>=1.8.1",
"pandas>=1.4.3",
"Cython>=0.29.23",
"xgboost>=1.6.1"
],
ext_modules=cythonize(ext_modules, compiler_directives={'language_level': 3}, annotate=True),
include_dirs=np.get_include(),
zip_safe=False
)