-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
52 lines (43 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
from os.path import dirname
from setuptools import setup
import os
try:
# for pip >= 10
from pip._internal.req import parse_requirements
except ImportError:
# for pip <= 9.0.3
from pip.req import parse_requirements
def load_requirements(fname):
reqs = parse_requirements(fname, session="test")
return [str(ir.req) for ir in reqs]
version_file = os.path.join(dirname(os.path.abspath(__file__)), 'src', 'RobotFrameworkElasticSearchLibrary', 'version.py')
with open(version_file) as file:
code = compile(file.read(), version_file, 'exec')
exec(code)
# The directory containing this file
with open(os.path.join(os.path.dirname(__file__), "README.md")) as r_file:
readme = r_file.read()
# This call to setup() does all the work
setup(
name="RobotFrameworkElasticSearchLibrary",
version=__version__,
description="Robot Framework ElasticSearch library.",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/gianpaolocaprara/robotframework-elasticsearch",
author="Gianpaolo Caprara",
author_email="[email protected]",
license="MIT",
keywords=['ROBOTFRAMEWORK', 'ELASTICSEARCH'],
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
packages=["RobotFrameworkElasticSearchLibrary"],
package_data={'RobotFrameworkElasticSearchLibrary': ['tests/*.txt']},
package_dir={'': 'src'},
include_package_data=True,
install_requires=load_requirements("requirements/install.txt"),
)