-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
58 lines (53 loc) · 1.68 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
"""
Setup module of OSI Validation Software
"""
import glob
import sys
import os
import setuptools
AUTHOR = "BMW AG"
if __name__ == "__main__":
with open("README.md", "r") as fh:
README = fh.read()
python_version = f"{sys.version_info.major}.{sys.version_info.minor}"
data_files_path = os.path.join(
"lib", f"python{python_version}", "site-packages", "rules"
)
setuptools.setup(
name="OSI Validation",
version="1.1.0",
author=AUTHOR,
description="Validator for OSI messages",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/OpenSimulationInterface/osi-validation",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3.8",
"License :: MPL-2.0",
"Operating System :: OS Independent",
],
data_files=[
(
"open-simulation-interface",
glob.glob("open-simulation-interface/*.proto"),
),
(
data_files_path,
glob.glob("rules/*.yml"),
),
],
include_package_data=True,
install_requires=[
"tqdm>=4.66.1",
"tabulate>=0.9.0",
"ruamel.yaml>=0.18.5",
"defusedxml>=0.7.1",
"iso3166>=2.1.1",
"protobuf==4.24.4",
"open-simulation-interface @ git+https://github.com/OpenSimulationInterface/[email protected]",
],
entry_points={
"console_scripts": ["osivalidator=osivalidator.osi_general_validator:main"],
},
)