-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
59 lines (51 loc) · 1.84 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
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
import codecs
import glob
import os
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
def get_data_files():
# To install data files here will require root privileges
base_dir = "/usr/local/fb-FioSynthFlash"
data_files = [
(base_dir, ["CODE_OF_CONDUCT.md"]),
(base_dir, ["CONTRIBUTING.md"]),
(base_dir, ["LICENSE"]),
(base_dir, ["README.md"]),
(base_dir, ["README-READHAMMER.txt"]),
(base_dir, ["Release_Notes.txt"]),
(os.path.join(base_dir, "jobfiles"), glob.glob("jobfiles/*")),
(os.path.join(base_dir, "wkldsuites"), glob.glob("wkldsuites/*")),
(os.path.join(base_dir, "fiosynth_lib"), glob.glob("fiosynth_lib/*")),
]
return data_files
setup(
name="fiosynth",
version="3.6.0",
description="FB fio Synthetic Benchmark Suite",
long_description=long_description,
author="Darryl Gardner",
author_email="[email protected]",
packages=find_packages(exclude=["jobfiles", "wkldsuites", "tests"]),
data_files=get_data_files(),
license="MIT",
scripts=["fiosynth.py"],
entry_points={
"console_scripts": [
"fiosynth=fiosynth_lib.fiosynth:main",
"FioFlashJsonParser=fiosynth_lib.fio_json_parser:cli_main",
"GetFlashConfig=fiosynth_lib.flash_config:main",
"healthTools=fiosynth_lib.health_tools:main",
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords="benchmark fio performance storage",
)