forked from CyberAgentAILab/cmaes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (51 loc) · 1.95 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
# type: ignore
import os
import types
from setuptools import setup, find_packages
from importlib.machinery import SourceFileLoader
BASE_PATH = os.path.abspath(os.path.dirname(__file__))
def get_version():
version_filepath = os.path.join(BASE_PATH, "cmaes", "version.py")
module_name = "version"
target_module = types.ModuleType(module_name)
loader = SourceFileLoader(module_name, version_filepath)
loader.exec_module(target_module)
return getattr(target_module, "__version__")
setup(
name="cmaes",
version=get_version(),
author="Masashi Shibata",
author_email="[email protected]",
url="https://github.com/CyberAgent/cmaes",
description="Lightweight Covariance Matrix Adaptation Evolution Strategy (CMA-ES) "
"implementation for Python 3.",
long_description=open(os.path.join(BASE_PATH, "README.md")).read(),
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"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 :: Only",
"Intended Audience :: Science/Research",
],
packages=find_packages(exclude=["test*", "benchmark*", "examples"]),
install_requires=["numpy"],
extras_require={
"benchmark": ["kurobako", "cma", "optuna"],
"visualization": ["matplotlib", "scipy"],
"lint": ["mypy", "flake8", "black", "optuna"],
"test": ["optuna"],
"release": ["wheel", "twine"],
},
tests_require=[],
keywords="cma-es evolution-strategy optuna",
license="MIT License",
include_package_data=True,
test_suite="tests",
)