diff --git a/docs/changes.rst b/docs/changes.rst index d17bcad0..ac231ded 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -6,6 +6,17 @@ chronological order. Releases follow `semantic versioning ` all releases are available on `Anaconda.org `_. +0.0.10 - 2020-11-18 +------------------- + +- :gh:`40` cleans up the capture manager and other parts of pytask. +- :gh:`41` shortens the task ids in the error reports for better readability. +- :gh:`42` ensures that lists with one element and dictionaries with only a zero key as + input for ``@pytask.mark.depends_on`` and ``@pytask.mark.produces`` are preserved as a + dictionary inside the function. +- :gh:`43` releases v0.0.10 + + 0.0.9 - 2020-10-28 ------------------ @@ -19,11 +30,6 @@ all releases are available on `Anaconda.org - :gh:`38` allows to pass dictionaries as dependencies and products and inside the function ``depends_on`` and ``produces`` become dictionaries. - :gh:`39` releases v0.0.9. -- :gh:`40` cleans up the capture manager and other parts of pytask. -- :gh:`41` shortens the task ids in the error reports for better readability. -- :gh:`42` ensures that lists with one element and dictionaries with only a zero key as - input for ``@pytask.mark.depends_on`` and ``@pytask.mark.produces`` are preserved as a - dictionary inside the function. 0.0.8 - 2020-10-04 diff --git a/docs/conf.py b/docs/conf.py index 7fee0cb0..c07dc359 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,7 +21,7 @@ author = "Tobias Raabe" # The full version, including alpha/beta/rc tags -release = "0.0.9" +release = "0.0.10" # -- General configuration ------------------------------------------------------------- diff --git a/setup.cfg b/setup.cfg index a77e8883..ff86cb39 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.0.9 +current_version = 0.0.10 parse = (?P\d+)\.(?P\d+)(\.(?P\d+))(\-?((dev)?(?P\d+))?) serialize = {major}.{minor}.{patch}dev{dev} diff --git a/setup.py b/setup.py index a1082bbf..f3a2ea52 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( name="pytask", - version="0.0.9", + version="0.0.10", description=DESCRIPTION, long_description=DESCRIPTION + "\n\n" + README, long_description_content_type="text/x-rst", diff --git a/src/_pytask/__init__.py b/src/_pytask/__init__.py index 00ec2dcd..9b36b86c 100644 --- a/src/_pytask/__init__.py +++ b/src/_pytask/__init__.py @@ -1 +1 @@ -__version__ = "0.0.9" +__version__ = "0.0.10" diff --git a/src/pytask/__init__.py b/src/pytask/__init__.py index 189311bc..0afee8c3 100644 --- a/src/pytask/__init__.py +++ b/src/pytask/__init__.py @@ -4,4 +4,4 @@ from _pytask.mark import MARK_GEN as mark # noqa: N811 __all__ = ["cli", "hookimpl", "main", "mark"] -__version__ = "0.0.9" +__version__ = "0.0.10" diff --git a/tests/test_nodes.py b/tests/test_nodes.py index 99abc857..60e7192c 100644 --- a/tests/test_nodes.py +++ b/tests/test_nodes.py @@ -222,33 +222,38 @@ class FalseNode: path = attr.ib() +_ROOT = Path.cwd() + + @pytest.mark.integration @pytest.mark.parametrize( "node, paths, expectation, expected", [ ( - FilePathNode.from_path(Path("src/module.py")), - [Path("src")], + FilePathNode.from_path(_ROOT.joinpath("src/module.py")), + [_ROOT.joinpath("alternative_src")], pytest.raises(ValueError, match="A node must be"), None, ), ( - FalseNode(Path("src/module.py")), - [Path("src")], + FalseNode(_ROOT.joinpath("src/module.py")), + [_ROOT.joinpath("src")], pytest.raises(ValueError, match="Unknown node"), None, ), ( DummyTask( - Path("top/src/module.py"), "top/src/module.py::task_func", "task_func" + _ROOT.joinpath("top/src/module.py"), + _ROOT.joinpath("top/src/module.py").as_posix() + "::task_func", + "task_func", ), - [Path("top/src")], + [_ROOT.joinpath("top/src")], does_not_raise(), "src/module.py::task_func", ), ( - FilePathNode.from_path(Path("top/src/module.py").resolve()), - [Path("top/src").resolve()], + FilePathNode.from_path(_ROOT.joinpath("top/src/module.py")), + [_ROOT.joinpath("top/src")], does_not_raise(), "src/module.py", ), diff --git a/tox.ini b/tox.ini index 5927ac10..edd2c48a 100644 --- a/tox.ini +++ b/tox.ini @@ -84,6 +84,7 @@ addopts = --doctest-modules filterwarnings = ignore: the imp module is deprecated in favour of importlib ignore: Using or importing the ABCs from 'collections' instead of from + ignore: The (parser|symbol) module is deprecated and will be removed in future markers = wip: Tests that are work-in-progress. unit: Flag for unit tests which target mainly a single function.