-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (47 loc) · 1.43 KB
/
setup.py
File metadata and controls
57 lines (47 loc) · 1.43 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
import os
import sys
import setuptools
REQUIRED_MAJOR = 3
REQUIRED_MINOR = 8
# Check for python version
if sys.version_info < (REQUIRED_MAJOR, REQUIRED_MINOR):
error = (
"Your version of python ({major}.{minor}) is too old. You need "
"python >= {required_major}.{required_minor}."
).format(
major=sys.version_info.major,
minor=sys.version_info.minor,
required_minor=REQUIRED_MINOR,
required_major=REQUIRED_MAJOR,
)
sys.exit(error)
TEST_REQUIRES = ["pytest", "pytest-cov"]
DEV_REQUIRES = TEST_REQUIRES + ["black", "flake8", "isort"]
root_dir = os.path.dirname(__file__)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setuptools.setup(
name="autosbo",
version="0.0.1",
author="Sami Alabed",
author_email="sa894@cam.ac.uk",
description="A package for structured optimising of computer system",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
long_description=read("README.md"),
test_suite="setup.my_test_suite",
keywords=[
"Bayesian optimization",
"Structured optimization",
"Computer System optimization",
],
packages=setuptools.find_packages(),
extras_require={
"dev": DEV_REQUIRES,
"test": TEST_REQUIRES,
},
)