Skip to content

Commit 18a7ff5

Browse files
authored
Release 0.0.5 and better tasks ids and selection of tasks. (#15)
1 parent 5de64e3 commit 18a7ff5

31 files changed

+226
-120
lines changed

.conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build:
1313
noarch: python
1414
number: 0
1515
entry_points:
16-
- pytask = pytask.cli:pytask
16+
- pytask = _pytask.cli:pytask
1717

1818
requirements:
1919
host:

docs/api.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
API Reference
2+
=============
3+
4+
This page contains auto-generated API reference documentation [#f1]_.
5+
6+
.. toctree::
7+
:titlesonly:
8+
9+
/autoapi/pytask/index
10+
/autoapi/_pytask/index
11+
12+
.. [#f1] Created with `sphinx-autoapi <https://github.com/readthedocs/sphinx-autoapi>`_

docs/changes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ 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.5 - 2020-xx-xx
9+
0.0.5 - 2020-08-12
1010
------------------
1111

1212
- :gh:`10` turns parametrization into a plugin.
1313
- :gh:`11` extends the documentation.
1414
- :gh:`12` replaces ``pytest.mark`` with ``pytask.mark``.
1515
- :gh:`13` implements selecting tasks via expressions or marker expressions.
16+
- :gh:`14` separates the namespace of pytask to ``pytask`` and ``_pytask``.
17+
- :gh:`15` implements better tasks ids which allow and releases 0.0.5.
1618

1719

1820
0.0.4 - 2020-07-22

docs/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
author = "Tobias Raabe"
2020

2121
# The full version, including alpha/beta/rc tags
22-
release = "0.0.4"
22+
release = "0.0.5"
2323

2424

2525
# -- General configuration -------------------------------------------------------------
@@ -51,6 +51,8 @@
5151
# html_extra_path.
5252
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5353

54+
suppress_warnings = ["ref.python"]
55+
5456
# -- Extensions configuration ----------------------------------------------------------
5557

5658
# Configuration for autodoc
@@ -74,8 +76,9 @@
7476

7577
# Configuration for autoapi
7678
autoapi_type = "python"
77-
autoapi_dirs = ["../src/pytask"]
79+
autoapi_dirs = ["../src"]
7880
autoapi_keep_files = False
81+
autoapi_add_toctree_entry = False
7982

8083

8184
# -- Options for HTML output -----------------------------------------------------------

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,4 @@ The documentation has currently one of four planned parts.
119119

120120
glossary
121121
changes
122+
api

docs/reference_guides/hookspecs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Hook Specifications
22
===================
33

4-
.. currentmodule:: pytask.hookspecs
4+
.. currentmodule:: _pytask.hookspecs
55

66
Hook specifications are the :term:`entry-points <entry-point>` provided by pytask to
77
change the behavior of the program.

docs/reference_guides/marks.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ in the host or in plugins. The following marks are available by default.
88
pytask.mark.depends_on
99
----------------------
1010

11-
.. autofunction:: pytask.nodes.depends_on
11+
.. autofunction:: _pytask.nodes.depends_on
1212
:noindex:
1313

1414

1515
pytask.mark.produces
1616
--------------------
1717

18-
.. autofunction:: pytask.nodes.produces
18+
.. autofunction:: _pytask.nodes.produces
1919
:noindex:
2020

2121

2222
pytask.mark.parametrize
2323
-----------------------
2424

25-
.. autofunction:: pytask.parametrize.parametrize
25+
.. autofunction:: _pytask.parametrize.parametrize
2626
:noindex:

docs/tutorials/how_to_configure_pytask.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,29 @@ configuration file.
4747
4848
markers =
4949
wip: Work-in-progress. These are tasks which I am currently working on.
50+
51+
52+
ignore
53+
------
54+
55+
pytask can ignore files and directories and exclude some tasks or reduce the duration of
56+
the collection.
57+
58+
To ignore some file/folder via the command line, use the ``--ignore`` flag multiple
59+
times.
60+
61+
.. code-block:: bash
62+
63+
$ pytask --ignore */some_file.py --ignore */some_directory/*
64+
65+
Or, use the configuration file:
66+
67+
.. code-block:: ini
68+
69+
# For single entries only.
70+
ignore = */some_file.py
71+
72+
# Or single and multiple entries.
73+
ignore =
74+
*/some_directory/*
75+
*/some_file.py

docs/tutorials/how_to_select_tasks.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@ will execute the first and third task and
7979
$ pytask -k "1 and not 2"
8080
8181
executes only the first task.
82+
83+
To execute a single task, say ``task_run_this_one``, in ``task_example.py``, use
84+
85+
.. code-block:: bash
86+
87+
$ pytask -k task_example.py::task_run_this_one

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
2-
current_version = 0.0.4
2+
current_version = 0.0.5
33
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))(\-?((dev)?(?P<dev>\d+))?)
4-
serialize =
4+
serialize =
55
{major}.{minor}.{patch}dev{dev}
66
{major}.{minor}.{patch}
77

0 commit comments

Comments
 (0)