Skip to content

Commit 4e14a3a

Browse files
authored
Release v0.0.10. (#43)
1 parent 86c2c48 commit 4e14a3a

File tree

8 files changed

+30
-18
lines changed

8 files changed

+30
-18
lines changed

docs/changes.rst

+11-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ chronological order. Releases follow `semantic versioning <https://semver.org/>`
66
all releases are available on `Anaconda.org <https://anaconda.org/pytask/pytask>`_.
77

88

9+
0.0.10 - 2020-11-18
10+
-------------------
11+
12+
- :gh:`40` cleans up the capture manager and other parts of pytask.
13+
- :gh:`41` shortens the task ids in the error reports for better readability.
14+
- :gh:`42` ensures that lists with one element and dictionaries with only a zero key as
15+
input for ``@pytask.mark.depends_on`` and ``@pytask.mark.produces`` are preserved as a
16+
dictionary inside the function.
17+
- :gh:`43` releases v0.0.10
18+
19+
920
0.0.9 - 2020-10-28
1021
------------------
1122

@@ -19,11 +30,6 @@ all releases are available on `Anaconda.org <https://anaconda.org/pytask/pytask>
1930
- :gh:`38` allows to pass dictionaries as dependencies and products and inside the
2031
function ``depends_on`` and ``produces`` become dictionaries.
2132
- :gh:`39` releases v0.0.9.
22-
- :gh:`40` cleans up the capture manager and other parts of pytask.
23-
- :gh:`41` shortens the task ids in the error reports for better readability.
24-
- :gh:`42` ensures that lists with one element and dictionaries with only a zero key as
25-
input for ``@pytask.mark.depends_on`` and ``@pytask.mark.produces`` are preserved as a
26-
dictionary inside the function.
2733

2834

2935
0.0.8 - 2020-10-04

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
author = "Tobias Raabe"
2222

2323
# The full version, including alpha/beta/rc tags
24-
release = "0.0.9"
24+
release = "0.0.10"
2525

2626

2727
# -- General configuration -------------------------------------------------------------

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.9
2+
current_version = 0.0.10
33
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))(\-?((dev)?(?P<dev>\d+))?)
44
serialize =
55
{major}.{minor}.{patch}dev{dev}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="pytask",
18-
version="0.0.9",
18+
version="0.0.10",
1919
description=DESCRIPTION,
2020
long_description=DESCRIPTION + "\n\n" + README,
2121
long_description_content_type="text/x-rst",

src/_pytask/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.9"
1+
__version__ = "0.0.10"

src/pytask/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
from _pytask.mark import MARK_GEN as mark # noqa: N811
55

66
__all__ = ["cli", "hookimpl", "main", "mark"]
7-
__version__ = "0.0.9"
7+
__version__ = "0.0.10"

tests/test_nodes.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -222,33 +222,38 @@ class FalseNode:
222222
path = attr.ib()
223223

224224

225+
_ROOT = Path.cwd()
226+
227+
225228
@pytest.mark.integration
226229
@pytest.mark.parametrize(
227230
"node, paths, expectation, expected",
228231
[
229232
(
230-
FilePathNode.from_path(Path("src/module.py")),
231-
[Path("src")],
233+
FilePathNode.from_path(_ROOT.joinpath("src/module.py")),
234+
[_ROOT.joinpath("alternative_src")],
232235
pytest.raises(ValueError, match="A node must be"),
233236
None,
234237
),
235238
(
236-
FalseNode(Path("src/module.py")),
237-
[Path("src")],
239+
FalseNode(_ROOT.joinpath("src/module.py")),
240+
[_ROOT.joinpath("src")],
238241
pytest.raises(ValueError, match="Unknown node"),
239242
None,
240243
),
241244
(
242245
DummyTask(
243-
Path("top/src/module.py"), "top/src/module.py::task_func", "task_func"
246+
_ROOT.joinpath("top/src/module.py"),
247+
_ROOT.joinpath("top/src/module.py").as_posix() + "::task_func",
248+
"task_func",
244249
),
245-
[Path("top/src")],
250+
[_ROOT.joinpath("top/src")],
246251
does_not_raise(),
247252
"src/module.py::task_func",
248253
),
249254
(
250-
FilePathNode.from_path(Path("top/src/module.py").resolve()),
251-
[Path("top/src").resolve()],
255+
FilePathNode.from_path(_ROOT.joinpath("top/src/module.py")),
256+
[_ROOT.joinpath("top/src")],
252257
does_not_raise(),
253258
"src/module.py",
254259
),

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ addopts = --doctest-modules
8484
filterwarnings =
8585
ignore: the imp module is deprecated in favour of importlib
8686
ignore: Using or importing the ABCs from 'collections' instead of from
87+
ignore: The (parser|symbol) module is deprecated and will be removed in future
8788
markers =
8889
wip: Tests that are work-in-progress.
8990
unit: Flag for unit tests which target mainly a single function.

0 commit comments

Comments
 (0)