forked from devicetree-org/dt-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·62 lines (53 loc) · 1.56 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
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-2-Clause
# Copyright 2018 Linaro Ltd.
import setuptools
import glob
import os
with open("README.md", "r") as fh:
long_description = fh.read()
data_files = []
os.chdir('dtschema')
for filename in glob.iglob("schemas/**/*.yaml", recursive=True):
data_files.append(filename)
for filename in glob.iglob("meta-schemas/**/*.yaml", recursive=True):
data_files.append(filename)
os.chdir('..')
setuptools.setup(
name="dtschema",
use_scm_version={
'write_to': 'dtschema/version.py',
'write_to_template': '__version__ = "{version}"',
},
setup_requires = ['setuptools_scm'],
author="Rob Herring",
author_email="[email protected]",
description="DeviceTree validation schema and tools",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/devicetree-org/dt-schema",
license="BSD",
license_files=["LICENSE.txt"],
packages=['dtschema'],
package_data={'dtschema': data_files},
scripts=[
'tools/dt-validate',
'tools/dt-doc-validate',
'tools/dt-mk-schema',
'tools/dt-extract-example',
'tools/dt-extract-props',
'tools/dtb2py'
],
python_requires='>=3.5',
install_requires=[
'ruamel.yaml>0.15.69',
'jsonschema>=4.1.2',
'rfc3987',
'pylibfdt',
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
)