forked from devicetree-org/dt-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·56 lines (47 loc) · 1.38 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
#!/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="robh@kernel.org",
description="DeviceTree validation schema and tools",
long_description=long_description,
url="https://github.com/devicetree-org/dt-schema",
packages=['dtschema'],
package_data={'dtschema': data_files},
scripts=[
'tools/dt-validate',
'tools/dt-doc-validate',
'tools/dt-mk-schema',
'tools/dt-extract-example'
],
python_requires='>=3.5',
install_requires=[
'ruamel.yaml>0.15.69',
'jsonschema>=3.0.1',
'rfc3987',
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
)