-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from georgw777/develop
v0.1.5
- Loading branch information
Showing
16 changed files
with
119 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.. mdinclude:: ../../README.md | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:maxdepth: 4 | ||
:caption: Contents: | ||
|
||
modules | ||
recap |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[tool.poetry] | ||
name = "recap" | ||
version = "0.1.4" | ||
version = "0.1.5" | ||
description = "Reproducible configurations for any project" | ||
authors = ["Georg Wölflein <[email protected]>"] | ||
license = "Apache-2.0" | ||
packages = [ | ||
{ include = "recap" } | ||
] | ||
readme = "README.md" | ||
homepage = "https://github.com/georgw777/recap" | ||
homepage = "http://recap.readthedocs.io" | ||
repository = "https://github.com/georgw777/recap" | ||
keywords = ["flake8", "markdown", "lint"] | ||
classifiers = [ | ||
|
@@ -29,6 +29,7 @@ pyyaml = "^5.3.1" | |
sphinx = { version = "^3.4.1", optional = true } | ||
sphinx-rtd-theme = { version = "^0.5.0", optional = true } | ||
m2r2 = { version = "^0.2.7", optional = true } | ||
wrapt = "^1.12.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
autopep8 = "^1.5.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
"""The recap package. The most important classes, :class:`~recap.config.CfgNode` and :class:`~recap.path_manager.URI` are available as top-level exports. | ||
""" | ||
|
||
from .__version__ import __version__ | ||
from .config import CfgNode | ||
from .path_manager import URI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.1.4" | ||
__version__ = "0.1.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_BASE_: ./data_type_override_base.yaml | ||
|
||
VALUE: my string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VALUE: 1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TEST: 1 | ||
XYZ: abc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_BASE_: inherit_base.yaml | ||
|
||
TEST: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pathlib import Path | ||
import pytest | ||
|
||
from recap import CfgNode as CN | ||
|
||
RESOURCES = Path(__file__).parent / "resources" | ||
|
||
|
||
def test_inherit_yaml(): | ||
cfg = CN.load_yaml_with_base(RESOURCES / "inherit_override.yaml") | ||
assert cfg.TEST == 2 | ||
assert cfg.XYZ == "abc" | ||
|
||
|
||
def test_data_type_override(): | ||
with pytest.raises(ValueError): | ||
cfg = CN.load_yaml_with_base(RESOURCES / "data_type_override.yaml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters