-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
62 lines (51 loc) · 1.91 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
import os
import importlib
from setuptools import setup, find_packages
__copyright__ = 'Copyright (C) 2019-2024, Nokia'
VERSIONFILE = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'src', 'crl', 'rfcli', '_version.py')
def import_module(name, path):
spec = importlib.util.spec_from_file_location(name, path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module
def get_version():
return import_module("_version", VERSIONFILE).get_version()
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='crl.rfcli',
version=get_version(),
author='Krisztina Ylinen',
author_email='krisztina.ylinen@nokia.com',
description='Robot Framework commands library',
install_requires=['pyyaml',
'robotframework>=3.1',
'crl.threadverify'],
long_description=read('README.rst'),
license='BSD-3-Clause',
python_requires='>=3.7,<3.13',
classifiers=['Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Framework :: Robot Framework :: Tool',
'Topic :: Software Development'],
keywords='robotframework',
url='https://github.com/nokia/crl-rfcli',
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=['crl'],
entry_points={
'console_scripts': [
'rfcli = crl.rfcli.rfcli:main'
]
}
)