forked from songlei00/bbo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (27 loc) · 907 Bytes
/
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
from setuptools import setup, find_namespace_packages
def _get_version():
with open('bbo/__init__.py') as f:
for line in f:
if line.startswith('__version__'):
g = {}
exec(line, g)
return g['__version__']
with open('README.md', 'r') as f:
long_description = f.read()
with open('requirements.txt', 'r') as f:
required = f.read().splitlines()
setup(
name='bbo',
version=_get_version(),
description='Black-box optimization library',
long_description=long_description,
long_description_content_type='text/markdown',
author='songl',
author_email='[email protected]',
url='https://github.com/songlei00/bbo',
packages=find_namespace_packages(include=['bbo*']),
include_package_data=True,
install_requires=required,
python_requires='>=3.10',
license='Apache License 2.0',
)