-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
72 lines (68 loc) · 2.4 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"""
Setup script for XeroGraph.
XeroGraph - Drawing from the Greek root "xero" for dry or void, and "graph" for writing or recording,
the name conveys the idea of filling in or examining the 'dry' spots (missing values) in data.
"""
import sys
# Check if setuptools is installed
try:
from setuptools import setup, find_packages
except ImportError:
print("setuptools is required to install XeroGraph. Please install it first.")
sys.exit(1)
# Check Python version
if not (sys.version_info[0] == 3 and sys.version_info[1] >= 9):
sys.exit(
f'XeroGraph requires Python 3.9 or higher. '
f'You are using Python {sys.version_info[0]}.{sys.version_info[1]}.'
)
# Read long description from README.md
try:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError:
long_description = ("XeroGraph is developed for research purposes only to analyze data with missing values.")
# Main setup configuration
setup(
name='XeroGraph',
version='0.0.11',
author='Julhash Kazi',
author_email='XeroGraph@kazilab.se',
url='https://www.kazilab.se',
description="A Python implementation of Little's MCAR test, MAR vs MNAR analysis, missing value visualization and imputation",
long_description=long_description,
long_description_content_type='text/markdown',
license='Apache-2.0',
install_requires=[
'pandas==2.2.2',
'numpy==1.26.4',
'scipy==1.13.0',
'matplotlib==3.8.2',
'statsmodels==0.14.0',
'scikit-learn==1.4.2',
'xgboost==1.7.6',
'seaborn==0.13.1',
'torch==2.1.2',
'nimfa==1.4.0',
'optuna==3.3.0',
'ipywidgets==8.0.4',
'joblib==1.2.0',
'tqdm==4.65.0',
'pingouin==0.5.5'
],
platforms='any',
packages=find_packages(),
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering :: Mathematics',
],
python_requires='>=3.9', # Ensure this matches your compatibility checks
)