omegaconf 2.3.0.dev2__tar.gz → 2.4.0__tar.gz
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.
- omegaconf-2.4.0/ATTRIBUTION/LICENSE-antlr4 +28 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/MANIFEST.in +3 -0
- omegaconf-2.4.0/PKG-INFO +97 -0
- omegaconf-2.4.0/README.md +46 -0
- omegaconf-2.4.0/build_helpers/__init__.py +5 -0
- omegaconf-2.4.0/build_helpers/bin/antlr-4.11.1-complete.jar +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/build_helpers/build_helpers.py +40 -8
- omegaconf-2.4.0/build_helpers/get_vendored.py +137 -0
- omegaconf-2.4.0/build_helpers/release_workflow.py +455 -0
- omegaconf-2.4.0/build_helpers/test_verify_distribution_licenses.py +125 -0
- omegaconf-2.4.0/build_helpers/verify_distribution_licenses.py +64 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/__init__.py +10 -1
- omegaconf-2.4.0/omegaconf/_conversion_warnings.py +75 -0
- omegaconf-2.4.0/omegaconf/_impl.py +222 -0
- omegaconf-2.4.0/omegaconf/_key_path.py +122 -0
- omegaconf-2.4.0/omegaconf/_missing.py +19 -0
- omegaconf-2.4.0/omegaconf/_utils.py +1494 -0
- omegaconf-2.4.0/omegaconf/_yaml.py +310 -0
- omegaconf-2.4.0/omegaconf/base.py +1473 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/basecontainer.py +406 -88
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/dictconfig.py +114 -60
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/errors.py +10 -11
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar/OmegaConfGrammarLexer.g4 +3 -1
- omegaconf-2.4.0/omegaconf/grammar/gen/OmegaConfGrammarLexer.py +288 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar/gen/OmegaConfGrammarParser.py +120 -132
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar/gen/OmegaConfGrammarParserListener.py +2 -2
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar/gen/OmegaConfGrammarParserVisitor.py +2 -2
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar_parser.py +15 -11
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar_visitor.py +119 -58
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/listconfig.py +119 -104
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/nodes.py +157 -44
- omegaconf-2.4.0/omegaconf/omegaconf.py +2141 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/resolvers/oc/__init__.py +71 -5
- omegaconf-2.4.0/omegaconf/tupleconfig.py +530 -0
- omegaconf-2.4.0/omegaconf/typing.py +13 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/BufferedTokenStream.py +302 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/CommonTokenFactory.py +61 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/CommonTokenStream.py +87 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/FileStream.py +27 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/InputStream.py +87 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/IntervalSet.py +180 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/LL1Analyzer.py +173 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/Lexer.py +329 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/ListTokenSource.py +144 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/Parser.py +580 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/ParserInterpreter.py +170 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/ParserRuleContext.py +186 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/PredictionContext.py +623 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/Recognizer.py +147 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/RuleContext.py +227 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/StdinStream.py +11 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/Token.py +155 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/TokenStreamRewriter.py +255 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/Utils.py +33 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/__init__.py +21 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/_pygrun.py +171 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATN.py +132 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATNConfig.py +159 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATNConfigSet.py +212 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATNDeserializationOptions.py +24 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATNDeserializer.py +446 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATNSimulator.py +47 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATNState.py +264 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ATNType.py +17 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/LexerATNSimulator.py +570 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/LexerAction.py +298 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/LexerActionExecutor.py +143 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/ParserATNSimulator.py +1649 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/PredictionMode.py +499 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/SemanticContext.py +326 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/Transition.py +268 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/atn/__init__.py +1 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/dfa/DFA.py +133 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/dfa/DFASerializer.py +73 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/dfa/DFAState.py +126 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/dfa/__init__.py +1 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/error/DiagnosticErrorListener.py +107 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/error/ErrorListener.py +72 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/error/ErrorStrategy.py +709 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/error/Errors.py +172 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/error/__init__.py +1 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/Chunk.py +30 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/ParseTreeMatch.py +118 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/ParseTreePattern.py +72 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/ParseTreePatternMatcher.py +374 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/RuleTagToken.py +50 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/TokenTagToken.py +47 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/Tree.py +191 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/tree/Trees.py +111 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/xpath/XPath.py +269 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/xpath/XPathLexer.py +95 -0
- omegaconf-2.4.0/omegaconf/vendor/antlr4/xpath/__init__.py +1 -0
- omegaconf-2.4.0/omegaconf/version.py +15 -0
- omegaconf-2.4.0/omegaconf.egg-info/PKG-INFO +97 -0
- omegaconf-2.4.0/omegaconf.egg-info/SOURCES.txt +183 -0
- omegaconf-2.4.0/omegaconf.egg-info/requires.txt +20 -0
- omegaconf-2.4.0/omegaconf.egg-info/top_level.txt +1 -0
- omegaconf-2.4.0/pyproject.toml +134 -0
- omegaconf-2.4.0/requirements/base.txt +1 -0
- omegaconf-2.4.0/requirements/dev.txt +16 -0
- omegaconf-2.4.0/requirements/docs.txt +2 -0
- omegaconf-2.4.0/setup.cfg +7 -0
- omegaconf-2.4.0/setup.py +90 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/__init__.py +3 -8
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/conftest.py +2 -2
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/examples/dataclass_postponed_annotations.py +1 -1
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/examples/test_dataclass_example.py +3 -1
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/examples/test_postponed_annotations.py +1 -4
- omegaconf-2.4.0/tests/interpolation/built_in_resolvers/test_oc_coerce.py +112 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/built_in_resolvers/test_oc_create.py +4 -4
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/built_in_resolvers/test_oc_decode.py +2 -2
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/built_in_resolvers/test_oc_deprecated.py +1 -1
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/built_in_resolvers/test_oc_dict.py +3 -4
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/built_in_resolvers/test_oc_select.py +32 -2
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/test_custom_resolvers.py +73 -49
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/test_interpolation.py +158 -30
- omegaconf-2.4.0/tests/interpolation/test_resolve_materialization.py +396 -0
- omegaconf-2.4.0/tests/interpolation/test_resolver_annotation_validation.py +522 -0
- omegaconf-2.4.0/tests/interpolation/test_typed_container_interpolation.py +442 -0
- omegaconf-2.4.0/tests/structured_conf/__init__.py +0 -0
- omegaconf-2.4.0/tests/structured_conf/data/__init__.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/structured_conf/data/attr_classes.py +88 -51
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/structured_conf/data/dataclasses.py +95 -52
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/structured_conf/data/dataclasses_pre_311.py +102 -57
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/structured_conf/test_structured_basic.py +401 -3
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/structured_conf/test_structured_config.py +304 -30
- omegaconf-2.4.0/tests/test_assignment_conversion_deprecation.py +210 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_base_config.py +7 -6
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_basic_ops_dict.py +171 -16
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_basic_ops_list.py +201 -21
- omegaconf-2.4.0/tests/test_basic_ops_tuple.py +411 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_compare_dictconfig_vs_dict.py +3 -2
- omegaconf-2.4.0/tests/test_config_eq.py +429 -0
- omegaconf-2.4.0/tests/test_container_unions.py +567 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_create.py +328 -23
- omegaconf-2.4.0/tests/test_dependency_audit.py +546 -0
- omegaconf-2.4.0/tests/test_dependency_audit_invariants.py +665 -0
- omegaconf-2.4.0/tests/test_dependency_audit_pnpm.py +473 -0
- omegaconf-2.4.0/tests/test_dependency_audit_repairs.py +459 -0
- omegaconf-2.4.0/tests/test_dependency_audit_workflow.py +322 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_errors.py +248 -27
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_grammar.py +26 -19
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_matrix.py +11 -3
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_merge.py +449 -27
- omegaconf-2.4.0/tests/test_missing_escape.py +586 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_nested_containers.py +20 -8
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_nodes.py +148 -9
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_omegaconf.py +177 -39
- omegaconf-2.4.0/tests/test_release_workflow.py +897 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_select.py +100 -8
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_serialization.py +50 -27
- omegaconf-2.4.0/tests/test_structured_config_unions.py +617 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_to_container.py +73 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_to_yaml.py +64 -10
- omegaconf-2.4.0/tests/test_tuple_integration.py +186 -0
- omegaconf-2.4.0/tests/test_tuple_merge.py +163 -0
- omegaconf-2.4.0/tests/test_tuple_structured.py +211 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_unions.py +96 -4
- omegaconf-2.4.0/tests/test_update.py +555 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_utils.py +290 -95
- omegaconf-2.4.0/tests/test_website_api_deprecations.py +58 -0
- omegaconf-2.4.0/tests/test_website_examples.py +94 -0
- omegaconf-2.3.0.dev2/PKG-INFO +0 -61
- omegaconf-2.3.0.dev2/README.md +0 -41
- omegaconf-2.3.0.dev2/build_helpers/__init__.py +0 -3
- omegaconf-2.3.0.dev2/build_helpers/bin/antlr-4.9.3-complete.jar +0 -0
- omegaconf-2.3.0.dev2/omegaconf/_impl.py +0 -101
- omegaconf-2.3.0.dev2/omegaconf/_utils.py +0 -1039
- omegaconf-2.3.0.dev2/omegaconf/base.py +0 -962
- omegaconf-2.3.0.dev2/omegaconf/grammar/gen/OmegaConfGrammarLexer.py +0 -337
- omegaconf-2.3.0.dev2/omegaconf/omegaconf.py +0 -1157
- omegaconf-2.3.0.dev2/omegaconf/version.py +0 -13
- omegaconf-2.3.0.dev2/omegaconf.egg-info/PKG-INFO +0 -61
- omegaconf-2.3.0.dev2/omegaconf.egg-info/SOURCES.txt +0 -95
- omegaconf-2.3.0.dev2/omegaconf.egg-info/requires.txt +0 -5
- omegaconf-2.3.0.dev2/omegaconf.egg-info/top_level.txt +0 -2
- omegaconf-2.3.0.dev2/pydevd_plugins/__init__.py +0 -6
- omegaconf-2.3.0.dev2/pydevd_plugins/extensions/__init__.py +0 -6
- omegaconf-2.3.0.dev2/pydevd_plugins/extensions/pydevd_plugin_omegaconf.py +0 -126
- omegaconf-2.3.0.dev2/pyproject.toml +0 -53
- omegaconf-2.3.0.dev2/requirements/base.txt +0 -4
- omegaconf-2.3.0.dev2/setup.cfg +0 -18
- omegaconf-2.3.0.dev2/setup.py +0 -73
- omegaconf-2.3.0.dev2/tests/test_config_eq.py +0 -170
- omegaconf-2.3.0.dev2/tests/test_pydev_resolver_plugin.py +0 -278
- omegaconf-2.3.0.dev2/tests/test_update.py +0 -206
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/LICENSE +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/build_helpers/test_helpers.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar/OmegaConfGrammarParser.g4 +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar/__init__.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/grammar/gen/__init__.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/py.typed +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/resolvers/__init__.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf/resolvers/oc/dict.py +0 -0
- {omegaconf-2.3.0.dev2/tests/examples → omegaconf-2.4.0/omegaconf/vendor}/__init__.py +0 -0
- {omegaconf-2.3.0.dev2/tests/interpolation/built_in_resolvers → omegaconf-2.4.0/omegaconf/vendor/antlr4/tree}/__init__.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/omegaconf.egg-info/dependency_links.txt +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/data/2.0.6.pickle +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/data/2.1.0.rc1.pickle +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/data/load.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/data/save.py +0 -0
- {omegaconf-2.3.0.dev2/tests/structured_conf → omegaconf-2.4.0/tests/examples}/__init__.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/__init__.py +0 -0
- {omegaconf-2.3.0.dev2/tests/structured_conf/data → omegaconf-2.4.0/tests/interpolation/built_in_resolvers}/__init__.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/interpolation/built_in_resolvers/test_oc_env.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_get_full_key.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_readonly.py +0 -0
- {omegaconf-2.3.0.dev2 → omegaconf-2.4.0}/tests/test_struct.py +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions
|
|
5
|
+
are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither name of copyright holders nor the names of its contributors
|
|
15
|
+
may be used to endorse or promote products derived from this software
|
|
16
|
+
without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
19
|
+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
20
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
21
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
|
|
22
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
23
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
24
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
25
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
26
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
27
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
28
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
include LICENSE
|
|
2
|
+
include ATTRIBUTION/LICENSE-antlr4
|
|
2
3
|
include requirements/base.txt
|
|
4
|
+
include requirements/dev.txt
|
|
5
|
+
include requirements/docs.txt
|
|
3
6
|
recursive-include tests *.py *.pickle
|
|
4
7
|
recursive-include build_helpers *.py *.jar
|
|
5
8
|
recursive-include omegaconf *.g4
|
omegaconf-2.4.0/PKG-INFO
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: omegaconf
|
|
3
|
+
Version: 2.4.0
|
|
4
|
+
Summary: A flexible configuration library
|
|
5
|
+
Home-page: https://github.com/hydra-ecosystem/omegaconf
|
|
6
|
+
Author: Omry Yadan
|
|
7
|
+
Author-email: omry@yadan.net
|
|
8
|
+
Keywords: yaml configuration config
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
License-File: ATTRIBUTION/LICENSE-antlr4
|
|
20
|
+
Requires-Dist: PyYAML>=5.1.0
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: PyYAML>=5.1.0; extra == "dev"
|
|
23
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
24
|
+
Requires-Dist: sphinx-tabs; extra == "dev"
|
|
25
|
+
Requires-Dist: attrs; extra == "dev"
|
|
26
|
+
Requires-Dist: build; extra == "dev"
|
|
27
|
+
Requires-Dist: bump-my-version; extra == "dev"
|
|
28
|
+
Requires-Dist: coveralls; extra == "dev"
|
|
29
|
+
Requires-Dist: nox[pbs]; extra == "dev"
|
|
30
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
31
|
+
Requires-Dist: pyrefly==1.2.0; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest-benchmark; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-mock; extra == "dev"
|
|
35
|
+
Requires-Dist: ruff==0.15.22; extra == "dev"
|
|
36
|
+
Requires-Dist: towncrier; extra == "dev"
|
|
37
|
+
Requires-Dist: twine; extra == "dev"
|
|
38
|
+
Requires-Dist: pydevd; extra == "dev"
|
|
39
|
+
Dynamic: author
|
|
40
|
+
Dynamic: author-email
|
|
41
|
+
Dynamic: classifier
|
|
42
|
+
Dynamic: description
|
|
43
|
+
Dynamic: description-content-type
|
|
44
|
+
Dynamic: home-page
|
|
45
|
+
Dynamic: keywords
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
Dynamic: provides-extra
|
|
48
|
+
Dynamic: requires-dist
|
|
49
|
+
Dynamic: requires-python
|
|
50
|
+
Dynamic: summary
|
|
51
|
+
|
|
52
|
+
# OmegaConf
|
|
53
|
+
|
|
54
|
+
> [!IMPORTANT]
|
|
55
|
+
> **OmegaConf project transition:** OmegaConf moved from the `omry` GitHub account
|
|
56
|
+
> to [`hydra-ecosystem`](https://github.com/hydra-ecosystem). The repository moved
|
|
57
|
+
> with its history, issues, and pull requests intact. OmegaConf remains BSD
|
|
58
|
+
> 3-Clause licensed. No action is required from OmegaConf users. Contributors
|
|
59
|
+
> should use the [new repository](https://github.com/hydra-ecosystem/omegaconf)
|
|
60
|
+
> for issues and pull requests.
|
|
61
|
+
|
|
62
|
+
| | Description |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| Project | [](https://badge.fury.io/py/omegaconf)[](https://pepy.tech/project/omegaconf) |
|
|
65
|
+
| Code quality| [](https://app.circleci.com/pipelines/github/hydra-ecosystem/omegaconf?branch=main)[](https://coveralls.io/github/hydra-ecosystem/omegaconf)|
|
|
66
|
+
| Docs, support, and ecosystem |[](https://omegaconf.cli.dev/)[](https://mybinder.org/v2/gh/hydra-ecosystem/omegaconf/main?filepath=legacy%2Frtd%2Fnotebook%2FTutorial.ipynb)[](https://hydra-framework.zulipchat.com/)[](https://cli.dev)|
|
|
67
|
+
| Backlog | [](https://omry.github.io/backlog-atlas/) |
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
OmegaConf is a hierarchical configuration system, with support for merging configurations from multiple sources (YAML config files, dataclasses/objects and CLI arguments)
|
|
71
|
+
providing a consistent API regardless of how the configuration was created.
|
|
72
|
+
|
|
73
|
+
Legacy documentation is retained on [Read the Docs](https://omegaconf.readthedocs.io/),
|
|
74
|
+
with its sources under [`legacy/rtd/`](legacy/rtd/).
|
|
75
|
+
|
|
76
|
+
## Optional subprojects
|
|
77
|
+
|
|
78
|
+
- [`omegaconf-pydevd`](./subprojects/omegaconf-pydevd/README.md): optional `pydevd` debugger plugin for inspecting OmegaConf objects in supported debuggers.
|
|
79
|
+
|
|
80
|
+
## Releases
|
|
81
|
+
|
|
82
|
+
### Stable (2.4)
|
|
83
|
+
OmegaConf 2.4.0 is the current stable version and requires Python 3.10 or newer.
|
|
84
|
+
* [What's new](https://github.com/hydra-ecosystem/omegaconf/releases/tag/v2.4.0)
|
|
85
|
+
* [Documentation](https://omegaconf.cli.dev/docs/)
|
|
86
|
+
* [Upgrade guide](https://omegaconf.cli.dev/docs/migration/2.4)
|
|
87
|
+
* [Source code](https://github.com/hydra-ecosystem/omegaconf/tree/2.4_branch)
|
|
88
|
+
|
|
89
|
+
Install with `pip install --upgrade omegaconf`
|
|
90
|
+
|
|
91
|
+
### Previous stable (2.3)
|
|
92
|
+
OmegaConf 2.3 is retained for projects that require the earlier release.
|
|
93
|
+
* [What's new](https://github.com/hydra-ecosystem/omegaconf/releases/tag/v2.3.0)
|
|
94
|
+
* [Documentation](https://omegaconf.cli.dev/docs/2.3/)
|
|
95
|
+
* [Source code](https://github.com/hydra-ecosystem/omegaconf/tree/2.3_branch)
|
|
96
|
+
|
|
97
|
+
Install with `pip install 'omegaconf<2.4'`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# OmegaConf
|
|
2
|
+
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> **OmegaConf project transition:** OmegaConf moved from the `omry` GitHub account
|
|
5
|
+
> to [`hydra-ecosystem`](https://github.com/hydra-ecosystem). The repository moved
|
|
6
|
+
> with its history, issues, and pull requests intact. OmegaConf remains BSD
|
|
7
|
+
> 3-Clause licensed. No action is required from OmegaConf users. Contributors
|
|
8
|
+
> should use the [new repository](https://github.com/hydra-ecosystem/omegaconf)
|
|
9
|
+
> for issues and pull requests.
|
|
10
|
+
|
|
11
|
+
| | Description |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| Project | [](https://badge.fury.io/py/omegaconf)[](https://pepy.tech/project/omegaconf) |
|
|
14
|
+
| Code quality| [](https://app.circleci.com/pipelines/github/hydra-ecosystem/omegaconf?branch=main)[](https://coveralls.io/github/hydra-ecosystem/omegaconf)|
|
|
15
|
+
| Docs, support, and ecosystem |[](https://omegaconf.cli.dev/)[](https://mybinder.org/v2/gh/hydra-ecosystem/omegaconf/main?filepath=legacy%2Frtd%2Fnotebook%2FTutorial.ipynb)[](https://hydra-framework.zulipchat.com/)[](https://cli.dev)|
|
|
16
|
+
| Backlog | [](https://omry.github.io/backlog-atlas/) |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
OmegaConf is a hierarchical configuration system, with support for merging configurations from multiple sources (YAML config files, dataclasses/objects and CLI arguments)
|
|
20
|
+
providing a consistent API regardless of how the configuration was created.
|
|
21
|
+
|
|
22
|
+
Legacy documentation is retained on [Read the Docs](https://omegaconf.readthedocs.io/),
|
|
23
|
+
with its sources under [`legacy/rtd/`](legacy/rtd/).
|
|
24
|
+
|
|
25
|
+
## Optional subprojects
|
|
26
|
+
|
|
27
|
+
- [`omegaconf-pydevd`](./subprojects/omegaconf-pydevd/README.md): optional `pydevd` debugger plugin for inspecting OmegaConf objects in supported debuggers.
|
|
28
|
+
|
|
29
|
+
## Releases
|
|
30
|
+
|
|
31
|
+
### Stable (2.4)
|
|
32
|
+
OmegaConf 2.4.0 is the current stable version and requires Python 3.10 or newer.
|
|
33
|
+
* [What's new](https://github.com/hydra-ecosystem/omegaconf/releases/tag/v2.4.0)
|
|
34
|
+
* [Documentation](https://omegaconf.cli.dev/docs/)
|
|
35
|
+
* [Upgrade guide](https://omegaconf.cli.dev/docs/migration/2.4)
|
|
36
|
+
* [Source code](https://github.com/hydra-ecosystem/omegaconf/tree/2.4_branch)
|
|
37
|
+
|
|
38
|
+
Install with `pip install --upgrade omegaconf`
|
|
39
|
+
|
|
40
|
+
### Previous stable (2.3)
|
|
41
|
+
OmegaConf 2.3 is retained for projects that require the earlier release.
|
|
42
|
+
* [What's new](https://github.com/hydra-ecosystem/omegaconf/releases/tag/v2.3.0)
|
|
43
|
+
* [Documentation](https://omegaconf.cli.dev/docs/2.3/)
|
|
44
|
+
* [Source code](https://github.com/hydra-ecosystem/omegaconf/tree/2.3_branch)
|
|
45
|
+
|
|
46
|
+
Install with `pip install 'omegaconf<2.4'`
|
|
Binary file
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import codecs
|
|
2
1
|
import distutils.log
|
|
3
2
|
import errno
|
|
4
3
|
import os
|
|
@@ -6,8 +5,9 @@ import re
|
|
|
6
5
|
import shutil
|
|
7
6
|
import subprocess
|
|
8
7
|
import sys
|
|
8
|
+
from functools import partial
|
|
9
9
|
from pathlib import Path
|
|
10
|
-
from typing import List, Optional
|
|
10
|
+
from typing import Any, ClassVar, List, Optional
|
|
11
11
|
|
|
12
12
|
from setuptools import Command
|
|
13
13
|
from setuptools.command import build_py, develop, sdist
|
|
@@ -17,7 +17,7 @@ class ANTLRCommand(Command): # type: ignore # pragma: no cover
|
|
|
17
17
|
"""Generate parsers using ANTLR."""
|
|
18
18
|
|
|
19
19
|
description = "Run ANTLR"
|
|
20
|
-
user_options:
|
|
20
|
+
user_options: ClassVar[Any] = []
|
|
21
21
|
|
|
22
22
|
def run(self) -> None:
|
|
23
23
|
"""Run command."""
|
|
@@ -30,7 +30,7 @@ class ANTLRCommand(Command): # type: ignore # pragma: no cover
|
|
|
30
30
|
command = [
|
|
31
31
|
"java",
|
|
32
32
|
"-jar",
|
|
33
|
-
str(build_dir / "bin" / "antlr-4.
|
|
33
|
+
str(build_dir / "bin" / "antlr-4.11.1-complete.jar"),
|
|
34
34
|
"-Dlanguage=Python3",
|
|
35
35
|
"-o",
|
|
36
36
|
str(project_root / "omegaconf" / "grammar" / "gen"),
|
|
@@ -46,12 +46,44 @@ class ANTLRCommand(Command): # type: ignore # pragma: no cover
|
|
|
46
46
|
|
|
47
47
|
subprocess.check_call(command)
|
|
48
48
|
|
|
49
|
+
self.announce(
|
|
50
|
+
"Fixing imports for generated parsers",
|
|
51
|
+
level=distutils.log.INFO,
|
|
52
|
+
)
|
|
53
|
+
self._fix_imports()
|
|
54
|
+
|
|
49
55
|
def initialize_options(self) -> None:
|
|
50
56
|
pass
|
|
51
57
|
|
|
52
58
|
def finalize_options(self) -> None:
|
|
53
59
|
pass
|
|
54
60
|
|
|
61
|
+
def _fix_imports(self) -> None:
|
|
62
|
+
"""Fix imports from the generated parsers to use the vendored antlr4 instead"""
|
|
63
|
+
build_dir = Path(__file__).parent.absolute()
|
|
64
|
+
project_root = build_dir.parent
|
|
65
|
+
lib = "antlr4"
|
|
66
|
+
pkgname = "omegaconf.vendor"
|
|
67
|
+
|
|
68
|
+
replacements = [
|
|
69
|
+
partial( # import antlr4 -> import omegaconf.vendor.antlr4
|
|
70
|
+
re.compile(r"(^\s*)import {}\n".format(lib), flags=re.M).sub,
|
|
71
|
+
r"\1from {} import {}\n".format(pkgname, lib),
|
|
72
|
+
),
|
|
73
|
+
partial( # from antlr4 -> from fomegaconf.vendor.antlr4
|
|
74
|
+
re.compile(r"(^\s*)from {}(\.|\s+)".format(lib), flags=re.M).sub,
|
|
75
|
+
r"\1from {}.{}\2".format(pkgname, lib),
|
|
76
|
+
),
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
path = project_root / "omegaconf" / "grammar" / "gen"
|
|
80
|
+
for item in path.iterdir():
|
|
81
|
+
if item.is_file() and item.name.endswith(".py"):
|
|
82
|
+
text = item.read_text("utf8")
|
|
83
|
+
for replacement in replacements:
|
|
84
|
+
text = replacement(text)
|
|
85
|
+
item.write_text(text, "utf8")
|
|
86
|
+
|
|
55
87
|
|
|
56
88
|
class BuildPyCommand(build_py.build_py): # pragma: no cover
|
|
57
89
|
def run(self) -> None:
|
|
@@ -68,7 +100,7 @@ class CleanCommand(Command): # type: ignore # pragma: no cover
|
|
|
68
100
|
|
|
69
101
|
description = "Cleans out generated and junk files we don't want in the repo"
|
|
70
102
|
dry_run: bool
|
|
71
|
-
user_options:
|
|
103
|
+
user_options: ClassVar[Any] = []
|
|
72
104
|
|
|
73
105
|
def run(self) -> None:
|
|
74
106
|
root = Path(__file__).parent.parent.absolute()
|
|
@@ -115,7 +147,7 @@ class DevelopCommand(develop.develop): # pragma: no cover
|
|
|
115
147
|
|
|
116
148
|
class SDistCommand(sdist.sdist): # pragma: no cover
|
|
117
149
|
def run(self) -> None:
|
|
118
|
-
if not self.dry_run: # type: ignore
|
|
150
|
+
if not self.dry_run: # type: ignore[attr-defined]
|
|
119
151
|
self.run_command("clean")
|
|
120
152
|
run_antlr(self)
|
|
121
153
|
sdist.sdist.run(self)
|
|
@@ -163,7 +195,7 @@ def find(
|
|
|
163
195
|
|
|
164
196
|
def find_version(*file_paths: str) -> str:
|
|
165
197
|
root = Path(__file__).parent.parent.absolute()
|
|
166
|
-
with
|
|
198
|
+
with open(root / Path(*file_paths), "r", encoding="utf-8") as fp:
|
|
167
199
|
version_file = fp.read()
|
|
168
200
|
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
|
|
169
201
|
if version_match:
|
|
@@ -179,7 +211,7 @@ def matches(patterns: List[str], path: Path) -> bool:
|
|
|
179
211
|
return False
|
|
180
212
|
|
|
181
213
|
|
|
182
|
-
def run_antlr(cmd:
|
|
214
|
+
def run_antlr(cmd: Any) -> None: # pragma: no cover
|
|
183
215
|
try:
|
|
184
216
|
cmd.announce("Generating parsers with antlr4", level=distutils.log.INFO)
|
|
185
217
|
cmd.run_command("antlr")
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import re
|
|
2
|
+
import shutil
|
|
3
|
+
import subprocess
|
|
4
|
+
from functools import partial
|
|
5
|
+
from itertools import chain
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import Callable, FrozenSet, Generator, List, Set, Tuple, Union
|
|
8
|
+
|
|
9
|
+
WHITELIST = {"README.txt", "__init__.py", "vendor.txt"}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def delete_all(
|
|
13
|
+
*paths: Path, whitelist: Union[Set[str], FrozenSet[str]] = frozenset()
|
|
14
|
+
) -> None:
|
|
15
|
+
"""Clear all the items in each of the indicated paths, except for elements listed
|
|
16
|
+
in the whitelist"""
|
|
17
|
+
for item in paths:
|
|
18
|
+
if item.is_dir():
|
|
19
|
+
shutil.rmtree(item, ignore_errors=True)
|
|
20
|
+
elif item.is_file() and item.name not in whitelist:
|
|
21
|
+
item.unlink()
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def iter_subtree(path: Path, depth: int = 0) -> Generator[Tuple[Path, int], None, None]:
|
|
25
|
+
"""Recursively yield all files in a subtree, depth-first"""
|
|
26
|
+
if not path.is_dir():
|
|
27
|
+
if path.is_file():
|
|
28
|
+
yield path, depth
|
|
29
|
+
return
|
|
30
|
+
for item in path.iterdir():
|
|
31
|
+
if item.is_dir():
|
|
32
|
+
yield from iter_subtree(item, depth + 1)
|
|
33
|
+
elif item.is_file():
|
|
34
|
+
yield item, depth + 1
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def patch_vendor_imports(file: Path, replacements: List[Callable[[str], str]]) -> None:
|
|
38
|
+
"""Apply a list of replacements/patches to a given file"""
|
|
39
|
+
text = file.read_text("utf8")
|
|
40
|
+
for replacement in replacements:
|
|
41
|
+
text = replacement(text)
|
|
42
|
+
file.write_text(text, "utf8")
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def find_vendored_libs(
|
|
46
|
+
vendor_dir: Path, whitelist: Set[str]
|
|
47
|
+
) -> Tuple[List[str], List[Path]]:
|
|
48
|
+
vendored_libs = []
|
|
49
|
+
paths = []
|
|
50
|
+
for item in vendor_dir.iterdir():
|
|
51
|
+
if item.is_dir():
|
|
52
|
+
vendored_libs.append(item.name)
|
|
53
|
+
elif item.is_file() and item.name not in whitelist:
|
|
54
|
+
vendored_libs.append(item.stem) # without extension
|
|
55
|
+
else: # not a dir or a file not in the whilelist
|
|
56
|
+
continue
|
|
57
|
+
paths.append(item)
|
|
58
|
+
return vendored_libs, paths
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def vendor(vendor_dir: Path, relative_imports: bool = False) -> None:
|
|
62
|
+
# target package is <parent>.<vendor_dir>; foo/vendor -> foo.vendor
|
|
63
|
+
pkgname = f"{vendor_dir.parent.name}.{vendor_dir.name}"
|
|
64
|
+
|
|
65
|
+
# remove everything
|
|
66
|
+
delete_all(*vendor_dir.iterdir(), whitelist=WHITELIST)
|
|
67
|
+
|
|
68
|
+
# install with pip
|
|
69
|
+
subprocess.run(
|
|
70
|
+
[
|
|
71
|
+
"pip",
|
|
72
|
+
"install",
|
|
73
|
+
"-t",
|
|
74
|
+
str(vendor_dir),
|
|
75
|
+
"-r",
|
|
76
|
+
str(vendor_dir / "vendor.txt"),
|
|
77
|
+
"--no-compile",
|
|
78
|
+
"--no-deps",
|
|
79
|
+
]
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
# delete stuff that's not needed
|
|
83
|
+
delete_all(
|
|
84
|
+
*vendor_dir.glob("*.dist-info"),
|
|
85
|
+
*vendor_dir.glob("*.egg-info"),
|
|
86
|
+
vendor_dir / "bin",
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
vendored_libs, paths = find_vendored_libs(vendor_dir, WHITELIST)
|
|
90
|
+
|
|
91
|
+
replacements: List[Callable[[str], str]] = []
|
|
92
|
+
if not relative_imports:
|
|
93
|
+
for lib in vendored_libs:
|
|
94
|
+
replacements += (
|
|
95
|
+
partial( # import bar -> import foo.vendor.bar
|
|
96
|
+
re.compile(r"(^\s*)import {}\n".format(lib), flags=re.M).sub,
|
|
97
|
+
r"\1from {} import {}\n".format(pkgname, lib),
|
|
98
|
+
),
|
|
99
|
+
partial( # from bar -> from foo.vendor.bar
|
|
100
|
+
re.compile(r"(^\s*)from {}(\.|\s+)".format(lib), flags=re.M).sub,
|
|
101
|
+
r"\1from {}.{}\2".format(pkgname, lib),
|
|
102
|
+
),
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
for file, depth in chain.from_iterable(map(iter_subtree, paths)):
|
|
106
|
+
if relative_imports:
|
|
107
|
+
pkgname = "." * (depth - 1)
|
|
108
|
+
replacements = []
|
|
109
|
+
for lib in vendored_libs:
|
|
110
|
+
replacements += (
|
|
111
|
+
partial(
|
|
112
|
+
re.compile(r"(^\s*)import {}\n".format(lib), flags=re.M).sub,
|
|
113
|
+
r"\1from {} import {}\n".format(pkgname, ""),
|
|
114
|
+
),
|
|
115
|
+
partial(
|
|
116
|
+
re.compile(r"^from {}(\s+)".format(lib), flags=re.M).sub,
|
|
117
|
+
r"from .{}\1".format(pkgname),
|
|
118
|
+
),
|
|
119
|
+
partial(
|
|
120
|
+
re.compile(r"(^\s*)from {}(\.+)".format(lib), flags=re.M).sub,
|
|
121
|
+
r"\1from {}\2".format(pkgname),
|
|
122
|
+
),
|
|
123
|
+
)
|
|
124
|
+
patch_vendor_imports(file, replacements)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
if __name__ == "__main__":
|
|
128
|
+
# this assumes this is a script in `build_helpers`
|
|
129
|
+
repo_root = Path(__file__).resolve().parent.parent
|
|
130
|
+
vendor_dir = repo_root / "omegaconf" / "vendor"
|
|
131
|
+
assert (vendor_dir / "vendor.txt").exists(), (
|
|
132
|
+
"omegaconf/vendor/vendor.txt file not found"
|
|
133
|
+
)
|
|
134
|
+
assert (vendor_dir / "__init__.py").exists(), (
|
|
135
|
+
"omegaconf/vendor/__init__.py file not found"
|
|
136
|
+
)
|
|
137
|
+
vendor(vendor_dir, relative_imports=True)
|