-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (63 loc) · 2.3 KB
/
setup.py
File metadata and controls
70 lines (63 loc) · 2.3 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
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
import logging
import os
import setuptools
PACKAGE_NAME = 'evopreprocess'
def read_package_variable(key, filename='__init__.py'):
"""Read the value of a variable from the package without importing."""
module_path = os.path.join(PACKAGE_NAME, filename)
with open(module_path) as module:
for line in module:
parts = line.strip().split(' ', 2)
if parts[:-1] == [key, '=']:
return parts[-1].strip("'")
logging.warning("'%s' not found in '%s'", key, module_path)
return None
with open('README.md', 'r') as fh:
long_description = fh.read()
setuptools.setup(
name=read_package_variable('__project__'),
version=read_package_variable('__version__'),
author='Sašo Karakatič',
author_email='karakatic@gmail.com',
description='Data Preprocessing with Evolutionary and Nature Inspired Algorithms.',
license='GPLv3',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/karakatic/EvoPreprocess',
packages=setuptools.find_packages(),
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Natural Language :: English',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Information Analysis'
],
install_requires=[
'numpy',
'scipy',
'scikit-learn',
'imbalanced-learn',
'NiaPy>=2.0.4'
],
keywords=[
'Evolutionary Algorithms',
'Nature Inspired Algorithms',
'Data Sampling',
'Instance Weighting',
'Feature Selection',
'Preprocessing',
'Machine Learning'
]
)