robotcode-robot 1.8.0__py3-none-any.whl → 1.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robotcode/robot/__version__.py +1 -1
- robotcode/robot/config/model.py +7 -10
- robotcode/robot/diagnostics/document_cache_helper.py +5 -0
- robotcode/robot/diagnostics/imports_manager.py +63 -9
- robotcode/robot/diagnostics/workspace_config.py +3 -0
- {robotcode_robot-1.8.0.dist-info → robotcode_robot-1.9.0.dist-info}/METADATA +19 -4
- {robotcode_robot-1.8.0.dist-info → robotcode_robot-1.9.0.dist-info}/RECORD +8 -9
- robotcode_robot-1.8.0.dist-info/licenses/LICENSE.txt +0 -73
- {robotcode_robot-1.8.0.dist-info → robotcode_robot-1.9.0.dist-info}/WHEEL +0 -0
robotcode/robot/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "1.
|
1
|
+
__version__ = "1.9.0"
|
robotcode/robot/config/model.py
CHANGED
@@ -366,7 +366,7 @@ class RobotBaseOptions(BaseOptions):
|
|
366
366
|
)
|
367
367
|
|
368
368
|
def append_name(field: "dataclasses.Field[Any]", add_flag: Optional[str] = None) -> None:
|
369
|
-
if "robot_short_name" in field.metadata:
|
369
|
+
if "robot_short_name" in field.metadata and not add_flag:
|
370
370
|
result.append(f"-{field.metadata['robot_short_name']}")
|
371
371
|
elif "robot_name" in field.metadata:
|
372
372
|
result.append(f"--{'no' if add_flag else ''}{field.metadata['robot_name']}")
|
@@ -697,9 +697,9 @@ class CommonOptions(RobotBaseOptions):
|
|
697
697
|
**passed:** remove data only from keywords in passed
|
698
698
|
test cases and suites
|
699
699
|
|
700
|
-
**for:** remove passed iterations from
|
700
|
+
**for:** remove passed iterations from FOR loops
|
701
701
|
|
702
|
-
**while:** remove passed iterations from
|
702
|
+
**while:** remove passed iterations from WHILE loops
|
703
703
|
|
704
704
|
**wuks:** remove all but the last failing keyword
|
705
705
|
inside `BuiltIn.Wait Until Keyword Succeeds`
|
@@ -847,7 +847,6 @@ class CommonOptions(RobotBaseOptions):
|
|
847
847
|
pattern. Documentation is shown in `Test Details` and
|
848
848
|
also as a tooltip in `Statistics by Tag`. Pattern can
|
849
849
|
use `*`, `?` and `[]` as wildcards like --test.
|
850
|
-
Documentation can contain formatting like --doc.
|
851
850
|
|
852
851
|
Examples:
|
853
852
|
|
@@ -1130,9 +1129,9 @@ class CommonExtendOptions(RobotBaseOptions):
|
|
1130
1129
|
**passed:** remove data only from keywords in passed
|
1131
1130
|
test cases and suites
|
1132
1131
|
|
1133
|
-
**for:** remove passed iterations from
|
1132
|
+
**for:** remove passed iterations from FOR loops
|
1134
1133
|
|
1135
|
-
**while:** remove passed iterations from
|
1134
|
+
**while:** remove passed iterations from WHILE loops
|
1136
1135
|
|
1137
1136
|
**wuks:** remove all but the last failing keyword
|
1138
1137
|
inside `BuiltIn.Wait Until Keyword Succeeds`
|
@@ -1202,7 +1201,6 @@ class CommonExtendOptions(RobotBaseOptions):
|
|
1202
1201
|
pattern. Documentation is shown in `Test Details` and
|
1203
1202
|
also as a tooltip in `Statistics by Tag`. Pattern can
|
1204
1203
|
use `*`, `?` and `[]` as wildcards like --test.
|
1205
|
-
Documentation can contain formatting like --doc.
|
1206
1204
|
|
1207
1205
|
Examples:
|
1208
1206
|
|
@@ -1862,7 +1860,6 @@ class RebotOptions(RobotBaseOptions):
|
|
1862
1860
|
Processes output also if the top level suite is
|
1863
1861
|
empty. Useful e.g. with --include/--exclude when it
|
1864
1862
|
is not an error that there are no matches.
|
1865
|
-
Use --skiponfailure when starting execution instead.
|
1866
1863
|
|
1867
1864
|
corresponds to the `--processemptysuite` option of _rebot_
|
1868
1865
|
""",
|
@@ -1944,7 +1941,7 @@ class LibDocOptions(RobotBaseOptions):
|
|
1944
1941
|
quiet: Union[bool, Flag, None] = field(
|
1945
1942
|
description="""\
|
1946
1943
|
Do not print the path of the generated output file
|
1947
|
-
to the console.
|
1944
|
+
to the console.
|
1948
1945
|
|
1949
1946
|
corresponds to the `--quiet` option of _libdoc_
|
1950
1947
|
""",
|
@@ -1959,7 +1956,7 @@ class LibDocOptions(RobotBaseOptions):
|
|
1959
1956
|
documentation format and HTML means converting
|
1960
1957
|
documentation to HTML. The default is RAW with XML
|
1961
1958
|
spec files and HTML with JSON specs and when using
|
1962
|
-
the special LIBSPEC format.
|
1959
|
+
the special LIBSPEC format.
|
1963
1960
|
|
1964
1961
|
corresponds to the `-s --specdocformat RAW|HTML` option of _libdoc_
|
1965
1962
|
""",
|
@@ -532,6 +532,11 @@ class DocumentsCacheHelper:
|
|
532
532
|
self.analysis_config.cache.ignore_arguments_for_library + cache_config.ignore_arguments_for_library,
|
533
533
|
self.analysis_config.robot.global_library_search_order + analysis_config.global_library_search_order,
|
534
534
|
cache_base_path,
|
535
|
+
load_library_timeout=(
|
536
|
+
analysis_config.load_library_timeout
|
537
|
+
if analysis_config.load_library_timeout is not None
|
538
|
+
else self.analysis_config.robot.load_library_timeout
|
539
|
+
),
|
535
540
|
)
|
536
541
|
|
537
542
|
result.libraries_changed.add(self._on_libraries_changed)
|
@@ -96,8 +96,9 @@ RESOURCE_EXTENSIONS = (
|
|
96
96
|
REST_EXTENSIONS = (".rst", ".rest")
|
97
97
|
|
98
98
|
|
99
|
-
|
100
|
-
|
99
|
+
DEFAULT_LOAD_LIBRARY_TIMEOUT: int = 10
|
100
|
+
ENV_LOAD_LIBRARY_TIMEOUT_VAR = "ROBOTCODE_LOAD_LIBRARY_TIMEOUT"
|
101
|
+
COMPLETE_LIBRARY_IMPORT_TIMEOUT = COMPLETE_RESOURCE_IMPORT_TIMEOUT = COMPLETE_VARIABLES_IMPORT_TIMEOUT = 5
|
101
102
|
|
102
103
|
|
103
104
|
class _EntryKey:
|
@@ -514,6 +515,7 @@ class ImportsManager:
|
|
514
515
|
ignore_arguments_for_library: List[str],
|
515
516
|
global_library_search_order: List[str],
|
516
517
|
cache_base_path: Optional[Path],
|
518
|
+
load_library_timeout: Optional[int] = None,
|
517
519
|
) -> None:
|
518
520
|
super().__init__()
|
519
521
|
|
@@ -590,6 +592,45 @@ class ImportsManager:
|
|
590
592
|
|
591
593
|
self._diagnostics: List[Diagnostic] = []
|
592
594
|
|
595
|
+
# precedence: explicit config (arg) > environment variable > default
|
596
|
+
if load_library_timeout is None:
|
597
|
+
env_value = os.environ.get(ENV_LOAD_LIBRARY_TIMEOUT_VAR)
|
598
|
+
if env_value is not None:
|
599
|
+
try:
|
600
|
+
load_library_timeout = int(env_value)
|
601
|
+
except ValueError:
|
602
|
+
self._logger.warning(
|
603
|
+
lambda: (
|
604
|
+
"Invalid value for "
|
605
|
+
f"{ENV_LOAD_LIBRARY_TIMEOUT_VAR}={env_value!r}, using default "
|
606
|
+
f"{DEFAULT_LOAD_LIBRARY_TIMEOUT}"
|
607
|
+
),
|
608
|
+
context_name="imports",
|
609
|
+
)
|
610
|
+
load_library_timeout = DEFAULT_LOAD_LIBRARY_TIMEOUT
|
611
|
+
else:
|
612
|
+
load_library_timeout = DEFAULT_LOAD_LIBRARY_TIMEOUT
|
613
|
+
|
614
|
+
# enforce sane lower bound
|
615
|
+
if load_library_timeout <= 0:
|
616
|
+
self._logger.warning(
|
617
|
+
lambda: (
|
618
|
+
"Configured load_library_timeout "
|
619
|
+
f"{load_library_timeout} is not > 0, fallback to {DEFAULT_LOAD_LIBRARY_TIMEOUT}"
|
620
|
+
),
|
621
|
+
context_name="imports",
|
622
|
+
)
|
623
|
+
load_library_timeout = DEFAULT_LOAD_LIBRARY_TIMEOUT
|
624
|
+
|
625
|
+
self.load_library_timeout = load_library_timeout
|
626
|
+
|
627
|
+
self._logger.critical(lambda: f"Using LoadLibrary timeout of {self.load_library_timeout} seconds")
|
628
|
+
|
629
|
+
self._logger.trace(
|
630
|
+
lambda: f"Using load_library_timeout={self.load_library_timeout} (config/env/default)",
|
631
|
+
context_name="imports",
|
632
|
+
)
|
633
|
+
|
593
634
|
def __del__(self) -> None:
|
594
635
|
try:
|
595
636
|
if self._executor is not None:
|
@@ -1266,10 +1307,16 @@ class ImportsManager:
|
|
1266
1307
|
base_dir,
|
1267
1308
|
self.get_resolvable_command_line_variables(),
|
1268
1309
|
variables,
|
1269
|
-
).result(
|
1310
|
+
).result(self.load_library_timeout)
|
1270
1311
|
|
1271
1312
|
except TimeoutError as e:
|
1272
|
-
raise RuntimeError(
|
1313
|
+
raise RuntimeError(
|
1314
|
+
f"Loading library {name!r} with args {args!r} (working_dir={working_dir!r}, base_dir={base_dir!r}) "
|
1315
|
+
f"timed out after {self.load_library_timeout} seconds. "
|
1316
|
+
"The library may be slow or blocked during import. "
|
1317
|
+
"If required, increase the timeout by setting the ROBOTCODE_LOAD_LIBRARY_TIMEOUT "
|
1318
|
+
"environment variable."
|
1319
|
+
) from e
|
1273
1320
|
|
1274
1321
|
except (SystemExit, KeyboardInterrupt):
|
1275
1322
|
raise
|
@@ -1438,10 +1485,17 @@ class ImportsManager:
|
|
1438
1485
|
base_dir,
|
1439
1486
|
self.get_resolvable_command_line_variables() if resolve_command_line_vars else None,
|
1440
1487
|
variables,
|
1441
|
-
).result(
|
1488
|
+
).result(self.load_library_timeout)
|
1442
1489
|
|
1443
1490
|
except TimeoutError as e:
|
1444
|
-
raise RuntimeError(
|
1491
|
+
raise RuntimeError(
|
1492
|
+
f"Loading variables {name!r} with args {args!r} (working_dir={working_dir!r}, "
|
1493
|
+
f"base_dir={base_dir!r}) "
|
1494
|
+
f"timed out after {self.load_library_timeout} seconds. "
|
1495
|
+
"The variables may be slow or blocked during import. "
|
1496
|
+
"If required, increase the timeout by setting the ROBOTCODE_LOAD_LIBRARY_TIMEOUT "
|
1497
|
+
"environment variable."
|
1498
|
+
) from e
|
1445
1499
|
|
1446
1500
|
except (SystemExit, KeyboardInterrupt):
|
1447
1501
|
raise
|
@@ -1608,7 +1662,7 @@ class ImportsManager:
|
|
1608
1662
|
base_dir,
|
1609
1663
|
self.get_resolvable_command_line_variables(),
|
1610
1664
|
variables,
|
1611
|
-
).result(
|
1665
|
+
).result(COMPLETE_LIBRARY_IMPORT_TIMEOUT)
|
1612
1666
|
|
1613
1667
|
def complete_resource_import(
|
1614
1668
|
self,
|
@@ -1623,7 +1677,7 @@ class ImportsManager:
|
|
1623
1677
|
base_dir,
|
1624
1678
|
self.get_resolvable_command_line_variables(),
|
1625
1679
|
variables,
|
1626
|
-
).result(
|
1680
|
+
).result(COMPLETE_RESOURCE_IMPORT_TIMEOUT)
|
1627
1681
|
|
1628
1682
|
def complete_variables_import(
|
1629
1683
|
self,
|
@@ -1638,7 +1692,7 @@ class ImportsManager:
|
|
1638
1692
|
base_dir,
|
1639
1693
|
self.get_resolvable_command_line_variables(),
|
1640
1694
|
variables,
|
1641
|
-
).result(
|
1695
|
+
).result(COMPLETE_VARIABLES_IMPORT_TIMEOUT)
|
1642
1696
|
|
1643
1697
|
def resolve_variable(
|
1644
1698
|
self,
|
@@ -55,6 +55,9 @@ class CacheConfig(ConfigBase):
|
|
55
55
|
@dataclass
|
56
56
|
class AnalysisRobotConfig(ConfigBase):
|
57
57
|
global_library_search_order: List[str] = field(default_factory=list)
|
58
|
+
# Timeout in seconds for loading libraries and variable files during analysis. If None, fallback to env var
|
59
|
+
# ROBOTCODE_LOAD_LIBRARY_TIMEOUT or default (10).
|
60
|
+
load_library_timeout: Optional[int] = None
|
58
61
|
|
59
62
|
|
60
63
|
@config_section("robotcode.analysis.diagnosticModifiers")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: robotcode-robot
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.9.0
|
4
4
|
Summary: Support classes for RobotCode for handling Robot Framework projects.
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
6
6
|
Project-URL: Donate, https://opencollective.com/robotcode
|
@@ -10,7 +10,6 @@ Project-URL: Issues, https://github.com/robotcodedev/robotcode/issues
|
|
10
10
|
Project-URL: Source, https://github.com/robotcodedev/robotcode
|
11
11
|
Author-email: Daniel Biehl <dbiehl@live.de>
|
12
12
|
License: Apache-2.0
|
13
|
-
License-File: LICENSE.txt
|
14
13
|
Classifier: Development Status :: 5 - Production/Stable
|
15
14
|
Classifier: Framework :: Robot Framework
|
16
15
|
Classifier: Framework :: Robot Framework :: Tool
|
@@ -26,7 +25,7 @@ Classifier: Topic :: Utilities
|
|
26
25
|
Classifier: Typing :: Typed
|
27
26
|
Requires-Python: >=3.8
|
28
27
|
Requires-Dist: platformdirs<4.4.0,>=3.2.0
|
29
|
-
Requires-Dist: robotcode-core==1.
|
28
|
+
Requires-Dist: robotcode-core==1.9.0
|
30
29
|
Requires-Dist: robotframework>=4.1.0
|
31
30
|
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
|
32
31
|
Description-Content-Type: text/markdown
|
@@ -41,7 +40,9 @@ Description-Content-Type: text/markdown
|
|
41
40
|
|
42
41
|
## Introduction
|
43
42
|
|
44
|
-
|
43
|
+
Robot Framework project handling and integration utilities for [RobotCode](https://robotcode.io).
|
44
|
+
|
45
|
+
This package is part of the [RobotCode](https://robotcode.io) project. The complete source code is available at [github.com/robotcodedev/robotcode](https://github.com/robotcodedev/robotcode).
|
45
46
|
|
46
47
|
## Installation
|
47
48
|
|
@@ -49,6 +50,20 @@ Support classes for [RobotCode](https://robotcode.io) for handling Robot Framewo
|
|
49
50
|
pip install robotcode-robot
|
50
51
|
```
|
51
52
|
|
53
|
+
## Documentation
|
54
|
+
|
55
|
+
For comprehensive documentation, please visit [robotcode.io](https://robotcode.io).
|
56
|
+
|
57
|
+
## Security
|
58
|
+
|
59
|
+
For security concerns, please refer to our [Security Policy](https://github.com/robotcodedev/robotcode/security/policy).
|
60
|
+
|
52
61
|
## License
|
53
62
|
|
54
63
|
`robotcode-robot` is distributed under the terms of the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) license.
|
64
|
+
|
65
|
+
## Support
|
66
|
+
|
67
|
+
- 📖 [Documentation](https://robotcode.io)
|
68
|
+
- 💬 [Discussions](https://github.com/robotcodedev/robotcode/discussions)
|
69
|
+
- 🐛 [Issues](https://github.com/robotcodedev/robotcode/issues)
|
@@ -1,23 +1,23 @@
|
|
1
1
|
robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
robotcode/robot/__version__.py,sha256=
|
2
|
+
robotcode/robot/__version__.py,sha256=ljy9wwnU6FSzJrHgJSWUcZ_nIboERJauUm7HTpNQfNg,22
|
3
3
|
robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
4
4
|
robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
robotcode/robot/config/loader.py,sha256=qrP810HNMDpqhXopWa0dOa0Wq_zQfVctsNYKY6sLKGI,8654
|
6
|
-
robotcode/robot/config/model.py,sha256=
|
6
|
+
robotcode/robot/config/model.py,sha256=3Qdk6-ugxFzjLhkFLkLSDa7lUPwU7TVvHNToL6bd6L8,88906
|
7
7
|
robotcode/robot/config/utils.py,sha256=xY-LH31BidWzonpvSrle-4HvKrp02I7IRqU2JwlL4Ls,2931
|
8
8
|
robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
robotcode/robot/diagnostics/data_cache.py,sha256=duLbcKzwqlCC1tBvJY8ASYh2LcIoCSs8_NgQ8NUQ7VU,3186
|
10
10
|
robotcode/robot/diagnostics/diagnostics_modifier.py,sha256=6zJdXBd6g1QM12XJbsHd8gNNysECMnWlne3q8XNgBDo,9797
|
11
|
-
robotcode/robot/diagnostics/document_cache_helper.py,sha256=
|
11
|
+
robotcode/robot/diagnostics/document_cache_helper.py,sha256=2Ekm4KEF4bwmM0TIxU-5sEtn2LyR14hb_fyVxriXJ58,24008
|
12
12
|
robotcode/robot/diagnostics/entities.py,sha256=8EM9IwJtgUD68PvmM5PjVwVWMF_tow2GYvMFebJgJM0,12514
|
13
13
|
robotcode/robot/diagnostics/errors.py,sha256=bUreFflbNYKWccbaq6T84VmYozJhsCTOBoMq3xNAIkY,2122
|
14
|
-
robotcode/robot/diagnostics/imports_manager.py,sha256=
|
14
|
+
robotcode/robot/diagnostics/imports_manager.py,sha256=5o3ChdbrjIUG5aRrWEvR8GdPYVoTMa9rBp75-M4SpDQ,63751
|
15
15
|
robotcode/robot/diagnostics/keyword_finder.py,sha256=FHPxstUl_0gN5EmmCF0oEjqgxcRNzCDTbxZnmIIrqL8,18730
|
16
16
|
robotcode/robot/diagnostics/library_doc.py,sha256=4Eio6ujJydBFnjJwiNKvw-0FM1LqBlFckclE7bzW6BQ,100764
|
17
17
|
robotcode/robot/diagnostics/model_helper.py,sha256=RmKg1t5qsbSbW5uiehpFzJt157gDSQ1ayzXlur26AGI,31000
|
18
18
|
robotcode/robot/diagnostics/namespace.py,sha256=NQseG4eG6gzBxEy2by3HbQd6DHAqflIovz0WooQHyAI,80960
|
19
19
|
robotcode/robot/diagnostics/namespace_analyzer.py,sha256=arj0PWUyqJj0y1iVD4ty_5FIZAeqkMqgPClmstgSxuE,79634
|
20
|
-
robotcode/robot/diagnostics/workspace_config.py,sha256=
|
20
|
+
robotcode/robot/diagnostics/workspace_config.py,sha256=_iJ3PiFfH3zp8zALvugWhcFQO_znvDq1_2NydqSg4eE,2902
|
21
21
|
robotcode/robot/utils/__init__.py,sha256=HETwRb7y8SJSehSxygixKwkUGdiTKNgS4NjXVOUrUzE,361
|
22
22
|
robotcode/robot/utils/ast.py,sha256=IdihPbvY2ERwm763mwPcDUZlS-si6AgNdF3ROqX48Pk,11417
|
23
23
|
robotcode/robot/utils/markdownformatter.py,sha256=v2p4T-d0wc0SuUJ4iLJJg1pHjgIA6dZX4l_XnZIXjXM,11690
|
@@ -26,7 +26,6 @@ robotcode/robot/utils/robot_path.py,sha256=Z-GVBOPA_xeD20bCJi4_AWaU0eQWvCym-YFty
|
|
26
26
|
robotcode/robot/utils/stubs.py,sha256=umugZYAyneFNgqRJBRMJPzm0u0B_TH8Sx_y-ykXnxpw,351
|
27
27
|
robotcode/robot/utils/variables.py,sha256=RCmBdVWtwVkB058QCBE_Bj3_28H1sXmYs0lJF9bVc0w,7644
|
28
28
|
robotcode/robot/utils/visitor.py,sha256=nP3O0qh3YYuxR6S8wYJRBFfNwIVgsgohURBlrnFkRYQ,2299
|
29
|
-
robotcode_robot-1.
|
30
|
-
robotcode_robot-1.
|
31
|
-
robotcode_robot-1.
|
32
|
-
robotcode_robot-1.8.0.dist-info/RECORD,,
|
29
|
+
robotcode_robot-1.9.0.dist-info/METADATA,sha256=D8jed6EIZRznzNDPVmzhhkbwaDoQyo5T3DLOGiWPWeY,2848
|
30
|
+
robotcode_robot-1.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
31
|
+
robotcode_robot-1.9.0.dist-info/RECORD,,
|
@@ -1,73 +0,0 @@
|
|
1
|
-
Apache License
|
2
|
-
Version 2.0, January 2004
|
3
|
-
http://www.apache.org/licenses/
|
4
|
-
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
-
|
7
|
-
1. Definitions.
|
8
|
-
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
10
|
-
|
11
|
-
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
12
|
-
|
13
|
-
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
14
|
-
|
15
|
-
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
16
|
-
|
17
|
-
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
18
|
-
|
19
|
-
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
20
|
-
|
21
|
-
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
22
|
-
|
23
|
-
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
24
|
-
|
25
|
-
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
26
|
-
|
27
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
28
|
-
|
29
|
-
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
30
|
-
|
31
|
-
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
32
|
-
|
33
|
-
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
34
|
-
|
35
|
-
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
36
|
-
|
37
|
-
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
38
|
-
|
39
|
-
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
40
|
-
|
41
|
-
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
42
|
-
|
43
|
-
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
44
|
-
|
45
|
-
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
46
|
-
|
47
|
-
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
48
|
-
|
49
|
-
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
50
|
-
|
51
|
-
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
52
|
-
|
53
|
-
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
54
|
-
|
55
|
-
END OF TERMS AND CONDITIONS
|
56
|
-
|
57
|
-
APPENDIX: How to apply the Apache License to your work.
|
58
|
-
|
59
|
-
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
60
|
-
|
61
|
-
Copyright [yyyy] [name of copyright owner]
|
62
|
-
|
63
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
64
|
-
you may not use this file except in compliance with the License.
|
65
|
-
You may obtain a copy of the License at
|
66
|
-
|
67
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
68
|
-
|
69
|
-
Unless required by applicable law or agreed to in writing, software
|
70
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
71
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
72
|
-
See the License for the specific language governing permissions and
|
73
|
-
limitations under the License.
|
File without changes
|