-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
69 lines (55 loc) · 1.65 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
60
61
62
63
64
65
66
67
68
69
#
# Copyright (c) 2019-2022 Triad National Security, LLC
# All rights reserved.
#
# This file is part of the bueno project. See the LICENSE file at the
# top-level directory of this distribution for more information.
#
# type: ignore
'''
The setup script for the bueno project.
'''
import os
import sys
from setuptools import setup, find_packages
__min_py_version__ = (3, 7)
# Before we perform the package setup, we need to check the minimum Python
# version manually because some versions of pip don't respect python_requires.
if sys.version_info < __min_py_version__:
sys.exit('!!! bueno Requires Python >= {} !!!'.format(__min_py_version__))
def package_setup(package_name, package_vers):
'''
Package setup routine.
'''
setup(
name=package_name,
version=package_vers,
description='bueno: Well-Provenanced Benchmarking',
author='Samuel K. Gutierrez',
author_email='samuel@lanl.gov',
license='BSD 3-Clause',
packages=find_packages(),
package_data={package_name: ['py.typed']},
include_package_data=True,
# Package Requirements
install_requires=[
'pyyaml',
'pika==1.2.0',
'lark==1.0.0'
],
scripts=[
'bin/bueno'
]
)
def main():
'''
The main entry point for this program.
'''
package_name = 'bueno'
# IMPORTANT: Never change manually, always use bumpversion.
package_vers = '0.0.2-rc1'
package_setup(package_name, package_vers)
return os.EX_OK
if __name__ == '__main__':
sys.exit(main())
# vim: ft=python ts=4 sts=4 sw=4 expandtab