-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy pathsetup.py
More file actions
90 lines (81 loc) · 3.84 KB
/
setup.py
File metadata and controls
90 lines (81 loc) · 3.84 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
# Created by "Thieu" at 13:24, 27/02/2022 ----------%
# Email: nguyenthieu2102@gmail.com %
# Github: https://github.com/thieu1995 %
# --------------------------------------------------%
import setuptools
import os
import re
with open("requirements.txt", encoding='utf-8') as f:
REQUIREMENTS = f.read().splitlines()
def get_version():
init_path = os.path.join(os.path.dirname(__file__), 'mealpy', '__init__.py')
with open(init_path, 'r', encoding='utf-8') as f:
init_content = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]+)['\"]", init_content, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
def readme():
with open('README.md', encoding='utf-8') as f:
res = f.read()
return res
setuptools.setup(
name="mealpy",
version=get_version(),
author="Thieu",
author_email="nguyenthieu2102@gmail.com",
description="MEALPY: An Open-source Library for Latest Meta-heuristic Algorithms in Python",
long_description=readme(),
long_description_content_type="text/markdown",
keywords=["optimization", "metaheuristics", "MHA", "mathematical optimization", "nature-inspired algorithms",
"evolutionary computation", "soft computing", "population-based algorithms",
"Stochastic optimization", "Global optimization", "Convergence analysis", "Search space exploration",
"Local search", "Computational intelligence", "Black-box optimization", "Robust optimization",
"Hybrid algorithms", "Benchmark functions", "Metaheuristic design", "Performance analysis",
"Exploration versus exploitation", "Self-adaptation", "Constrained optimization",
"Intelligent optimization", "Adaptive search", "Simulations", "Algorithm selection"],
url="https://github.com/thieu1995/mealpy",
project_urls={
'Documentation': 'https://mealpy.readthedocs.io/',
'Source Code': 'https://github.com/thieu1995/mealpy',
'Bug Tracker': 'https://github.com/thieu1995/mealpy/issues',
'Change Log': 'https://github.com/thieu1995/mealpy/blob/master/ChangeLog.md',
'Forum': 'https://t.me/+fRVCJGuGJg1mNDg1',
},
packages=setuptools.find_packages(exclude=['tests*', 'examples*']),
include_package_data=True,
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Benchmark",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
install_requires=REQUIREMENTS,
extras_require={
"dev": ["pytest>=7.0", "twine>=4.0.1", "pytest-cov==4.0.0", "flake8>=4.0.1"],
},
python_requires='>=3.8',
)