diff --git a/docs/source/_static/images/capture.svg b/docs/source/_static/images/capture.svg deleted file mode 100644 index cca2f187..00000000 --- a/docs/source/_static/images/capture.svg +++ /dev/null @@ -1,167 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\pytask-examples
-
Collected 2 tasks.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_capture.py::task_func1.
-
task_capture.py::task_func2F
-
└─────────────────────────────┴─────────┘
-
-
────────────────────────────────────────────── Failures ──────────────────────────────────────────────
-
-
────────────────────────────── Task task_capture.py::task_func2 failed ───────────────────────────────
-
-
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
-
-
C:\Users\pytask-dev\git\pytask-examples\task_capture.py:13 in task_func2
-
-
10
-
11 def task_func2():
-
12 │ print("Debug statement")
-
13 assert False
-
14
-
15
-
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
-
AssertionError
-
-
──────────────────────────────────── Captured stdout during call ─────────────────────────────────────
-
Debug statement
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ───────────╮
-
2 Collected tasks
-
1 Succeeded (50.0%)
-
1 Failed (50.0%)
-
╰───────────────────────────────╯
-
─────────────────────────────────────── Failed in 0.03 seconds ───────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/clean-dry-run-directories.svg b/docs/source/_static/images/clean-dry-run-directories.svg deleted file mode 100644 index b1284915..00000000 --- a/docs/source/_static/images/clean-dry-run-directories.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - pytask - - - - - - - ──────────────────────────────────────── Start pytask session ──────────────────────────────────────── -Platform: win32 -- Python 3.10.2, pytask 0.2.2, pluggy 0.12.0                                          -Root: C:\Users\TobiasR\git\pytask                                                                      -Collected 25 tasks.                                                                                    -                                                                                                       -Files and directories which can be removed:                                                            -                                                                                                       -Would remove svgs\obsolete_file_1.md                                                                   -Would remove svgs\obsolete_folder                                                                      -                                                                                                       -────────────────────────────────────────────────────────────────────────────────────────────────────── - - - diff --git a/docs/source/_static/images/clean-dry-run.svg b/docs/source/_static/images/clean-dry-run.svg deleted file mode 100644 index 77b508ae..00000000 --- a/docs/source/_static/images/clean-dry-run.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - pytask - - - - - - - ──────────────────────────────────────── Start pytask session ──────────────────────────────────────── -Platform: win32 -- Python 3.10.2, pytask 0.2.2, pluggy 0.12.0                                          -Root: C:\Users\TobiasR\git\pytask                                                                      -Collected 25 tasks.                                                                                    -                                                                                                       -Files which can be removed:                                                                            -                                                                                                       -Would remove svgs\obsolete_file_1.md                                                                   -Would remove svgs\obsolete_folder\obsolete_file_2.md                                                   -Would remove svgs\obsolete_folder\obsolete_file_3.md                                                   -                                                                                                       -────────────────────────────────────────────────────────────────────────────────────────────────────── - - - diff --git a/docs/source/_static/images/collect-nodes.svg b/docs/source/_static/images/collect-nodes.svg deleted file mode 100644 index 06ab1965..00000000 --- a/docs/source/_static/images/collect-nodes.svg +++ /dev/null @@ -1,123 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask collect --nodes
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\pytask-examples
-
Collected 1 task.
-
-
Collected tasks:
-
└── 🐍 <Module task_module.py>
-
└── 📝 <Function task_module.py::task_write_file>
-
├── 📄 <Dependency pytask-examples\in.txt>
-
└── 📄 <Product pytask-examples/out.txt>
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/collect.svg b/docs/source/_static/images/collect.svg deleted file mode 100644 index 3939a24f..00000000 --- a/docs/source/_static/images/collect.svg +++ /dev/null @@ -1,121 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask collect
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\TobiasR\git\pytask-examples
-
Collected 1 task.
-
-
Collected tasks:
-
└── 🐍 <Module task_module.py>
-
└── 📝 <Function task_module.py::task_write_file>
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/dry-run.svg b/docs/source/_static/images/dry-run.svg deleted file mode 100644 index cb909827..00000000 --- a/docs/source/_static/images/dry-run.svg +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pytask - - - - - - - - - - ───────────────────────────────────────────────── Start pytask session ───────────────────────────────────────────────── -Platform: win32 -- Python 3.10.4, pytask 0.2.5., pluggy 1.0.0 -Root: C:\Users\TobiasR\git\pytask -Collected 1 task. - - -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓ -Task                         Outcome -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩ -task_dry_run.py::task_dry_runw       -└───────────────────────────────┴─────────┘ - -──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -╭──────────── Summary ─────────────╮ -1Collected tasks   -1Would be executed(100.0%) -╰──────────────────────────────────╯ -──────────────────────────────────────────────── Succeeded in 0 seconds ──────────────────────────────────────────────── - - - - diff --git a/docs/source/_static/images/help_page.svg b/docs/source/_static/images/help_page.svg deleted file mode 100644 index 9e339c60..00000000 --- a/docs/source/_static/images/help_page.svg +++ /dev/null @@ -1,139 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask --help
-
pytask v0.2.0
-
-
Usage: pytask [OPTIONS] [COMMAND] [PATHS]
-
-
Manage your tasks with pytask.
-
-
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────╮
-
build * Collect tasks, execute them and report the results.
-
-
This is pytask's default command. pytask collects tasks from the given paths or the
-
current working directory, executes them and reports the results.
-
clean Clean the provided paths by removing files unknown to pytask.
-
collect Collect tasks and report information about them.
-
dag Create a visualization of the project's directed acyclic graph.
-
markers Show all registered markers.
-
profile Show information about tasks like runtime and memory consumption of products.
-
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯
-
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────╮
-
--version Show the version and exit.
-
-h --help Show this message and exit.
-
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯
-
https://pytask-dev.readthedocs.io
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/markers.svg b/docs/source/_static/images/markers.svg deleted file mode 100644 index 5febd4cd..00000000 --- a/docs/source/_static/images/markers.svg +++ /dev/null @@ -1,144 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask markers
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
-
Marker Description
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
-
pytask.mark.depends_on │ Add dependencies to a task. See this tutorial for more │
-
│ │ information: https://bit.ly/3JlxylS. │
-
│ │ │
-
pytask.mark.persist Prevent execution of a task if all products exist and even if
-
│ │ something has changed (dependencies, source file, products).
-
│ │ This decorator might be useful for expensive tasks where only
-
│ │ the formatting of the file has changed. The state of the files
-
│ │ which have changed will also be remembered and another run will
-
│ │ skip the task with success.
-
│ │ │
-
pytask.mark.produces │ Add products to a task. See this tutorial for more information: │
- -
│ │ │
-
pytask.mark.skip Skip a task and all its dependent tasks.
-
│ │ │
-
pytask.mark.skip_ancestor_failedInternal decorator applied to tasks if any of its preceding
-
│ │ tasks failed.
-
│ │ │
-
pytask.mark.skip_unchanged Internal decorator applied to tasks which have already been
-
│ │ executed and have not been changed.
-
│ │ │
-
pytask.mark.skipif Skip a task and all its dependent tasks if a condition is met.
-
│ │ │
-
pytask.mark.task │ Mark a function as a task regardless of its name. Or mark tasks │
-
│ │ which are repeated in a loop. See this tutorial for more │
-
│ │ information: https://bit.ly/3DWrXS3. │
-
│ │ │
-
pytask.mark.try_first Try to execute a task a early as possible.
-
│ │ │
-
pytask.mark.try_last Try to execute a task a late as possible.
-
└──────────────────────────────────┴─────────────────────────────────────────────────────────────────┘
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/pdb.svg b/docs/source/_static/images/pdb.svg deleted file mode 100644 index cb7576a4..00000000 --- a/docs/source/_static/images/pdb.svg +++ /dev/null @@ -1,143 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask --pdb
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\my_project
-
Collected 1 task.
-
-
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
-
-
C:\Users\pytask-dev\git\my_project\task_data_preparation.py:23 in task_create_random_data
-
-
20 │
-
21 │ df = pd.DataFrame({"x": x, "y": y})
-
22 │
-
23 raise Exception
-
24 │
-
25 │ df.to_pickle(produces)
-
26
-
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
-
Exception
-
-
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB post_mortem (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-
> c:\users\pytask-dev\git\my_project\task_data_preparation.py(23)task_create_random_data()
-
-> raise Exception
-
(Pdb) |
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/persist-executed.svg b/docs/source/_static/images/persist-executed.svg deleted file mode 100644 index cde5d16f..00000000 --- a/docs/source/_static/images/persist-executed.svg +++ /dev/null @@ -1,133 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\pytask-examples
-
Collected 1 task.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_module.py::task_make_input_bold .
-
└────────────────────────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ────────────╮
-
1 Collected tasks
-
1 Succeeded (100.0%)
-
╰────────────────────────────────╯
-
───────────────────────────────────── Succeeded in 0.07 seconds ──────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/persist-skipped.svg b/docs/source/_static/images/persist-skipped.svg deleted file mode 100644 index 39889332..00000000 --- a/docs/source/_static/images/persist-skipped.svg +++ /dev/null @@ -1,133 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask --verbose 2
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\pytask-examples
-
Collected 1 task.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_module.py::task_make_input_bold s
-
└───────────────────────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭──────────────── Summary ─────────────────╮
-
1 Collected tasks
-
1 Skipped because unchanged (100.0%)
-
╰──────────────────────────────────────────╯
-
────────────────────────────────────── Succeeded in 0.0 seconds ──────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/profile.svg b/docs/source/_static/images/profile.svg deleted file mode 100644 index e6212614..00000000 --- a/docs/source/_static/images/profile.svg +++ /dev/null @@ -1,141 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\software_patents
-
Configuration: C:\Users\pytask-dev\git\software_patents\pyproject.toml
-
Plugins: latex-0.2.0, parallel-0.2.0
-
Collected 18 tasks.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
-
Task Duration (in s) Size of Products
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
-
task_apply_bh_to_indicators.py::task_apply_bh_to_indicators[… 3.93 123 MB
-
task_apply_bh_to_indicators.py::task_apply_bh_to_indicators[… 0.09 13 MB
-
task_replicate_results_of_bh2007.py::task_replicate_results_… 0.09 13 MB
-
task_replicate_results_of_bh2007.py::task_replicate_results_… 8.99 8 MB
-
task_merge_indicators.py::task_merge_indicators 74.44 499 MB
-
task_prepare_bessen_hunt_2007.py::task_prepare_bessen_hunt_2… 80.15 15 MB
-
task_prepare_datasets.py::task_copy_files[depends_on0-produc… 0.11 35 MB
-
task_prepare_datasets.py::task_copy_files[depends_on1-produc… 0.92 35 MB
-
task_prepare_datasets.py::task_copy_files[depends_on2-produc… 0.11 34 MB
-
task_prepare_datasets.py::task_copy_files[depends_on3-produc… 0.12 35 MB
-
task_prepare_datasets.py::task_copy_files[depends_on4-produc… 0.12 35 MB
-
task_prepare_datasets.py::task_copy_files[depends_on5-produc… 0.44 143 MB
-
task_prepare_datasets.py::task_copy_files[depends_on6-produc… 0.73 143 MB
-
task_prepare_datasets.py::task_copy_files[depends_on7-produc… 0.37 114 MB
-
task_prepare_datasets.py::task_copy_files[depends_on8-produc… 0.62 170 MB
-
task_visualize_distribution_of_patents.py::task_visualize_di… 17.3 42 KB
-
task_compile_document.py::task_compile_thesis 7.08 539 KB
-
task_table_bessen_hunt_2007_and_replication.py::task_table_b… 0.09 784 bytes
-
└───────────────────────────────────────────────────────────────┴─────────────────┴──────────────────┘
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/pytask-profile.png b/docs/source/_static/images/pytask-profile.png deleted file mode 100644 index 72508fad..00000000 Binary files a/docs/source/_static/images/pytask-profile.png and /dev/null differ diff --git a/docs/source/_static/images/readme.svg b/docs/source/_static/images/readme.svg deleted file mode 100644 index 009cdabb..00000000 --- a/docs/source/_static/images/readme.svg +++ /dev/null @@ -1,134 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\pytask-examples
-
Collected 1 task.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_hello.py::task_hello_earth.
-
└─────────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ────────────╮
-
1 Collected tasks
-
1 Succeeded (100.0%)
-
╰────────────────────────────────╯
-
───────────────────────────────────── Succeeded in 0.07 seconds ──────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/repeating-tasks.svg b/docs/source/_static/images/repeating-tasks.svg deleted file mode 100644 index 3b59c6e2..00000000 --- a/docs/source/_static/images/repeating-tasks.svg +++ /dev/null @@ -1,142 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\pytask-examples
-
Collected 10 tasks.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_repeating.py::task_create_random_data[data_0.pkl-0].
-
task_repeating.py::task_create_random_data[data_1.pkl-1].
-
task_repeating.py::task_create_random_data[data_2.pkl-2].
-
task_repeating.py::task_create_random_data[data_3.pkl-3].
-
task_repeating.py::task_create_random_data[data_4.pkl-4].
-
task_repeating.py::task_create_random_data[data_5.pkl-5].
-
task_repeating.py::task_create_random_data[data_6.pkl-6].
-
task_repeating.py::task_create_random_data[data_7.pkl-7].
-
task_repeating.py::task_create_random_data[data_8.pkl-8].
-
task_repeating.py::task_create_random_data[data_9.pkl-9].
-
└──────────────────────────────────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭──────────── Summary ────────────╮
-
10 Collected tasks
-
10 Succeeded (100.0%)
-
╰─────────────────────────────────╯
-
───────────────────────────────────── Succeeded in 0.43 seconds ──────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/show-locals.svg b/docs/source/_static/images/show-locals.svg deleted file mode 100644 index 90ae923c..00000000 --- a/docs/source/_static/images/show-locals.svg +++ /dev/null @@ -1,176 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask --show-locals
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\my_project
-
Collected 1 task.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_create_random_data.py::task_create_random_dataF
-
└─────────────────────────────────────────────────────┴─────────┘
-
-
────────────────────────────────────────────── Failures ──────────────────────────────────────────────
-
-
─────────────────── Task task_create_random_data.py::task_create_random_data failed ──────────────────
-
-
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
-
-
C:\Users\pytask-dev\git\my_project\task_create_random_data.py:23 in task_create_random_data
-
-
20 │
-
21 │ df = pd.DataFrame({"x": x, "y": y})
-
22 │
-
23 raise Exception
-
24 │
-
25 │ df.to_pickle(produces)
-
26
-
-
╭────────────────────────────────────── locals ───────────────────────────────────────╮
-
beta = 2
-
df = │ │ x y
-
0 6.257302 12.876199
-
1 3.678951 8.661903
-
2 11.404227 23.755534
-
3 6.049001 11.394267
-
4 -0.356694 -1.978809
-
epsilon = array([ 0.36159505, 1.30400005, 0.94708096, -0.70373524, -1.26542147])
-
produces = WindowsPath('C:/Users/pytask-dev/git/my_project/data.pkl')
-
rng = Generator(PCG64) at 0x20987EC6340
-
x = array([ 6.25730221, 3.67895137, 11.4042265 , 6.04900117, -0.35669373])
-
y = array([12.87619948, 8.66190278, 23.75553397, 11.39426711, -1.97880893])
-
╰─────────────────────────────────────────────────────────────────────────────────────╯
-
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
-
Exception
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ────────────╮
-
1 Collected tasks
-
1 Failed (100.0%)
-
╰────────────────────────────────╯
-
─────────────────────────────────────── Failed in 0.01 seconds ───────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/trace.svg b/docs/source/_static/images/trace.svg deleted file mode 100644 index 9ca0fdd0..00000000 --- a/docs/source/_static/images/trace.svg +++ /dev/null @@ -1,119 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\my_project
-
Collected 1 task.
-
-
-
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB runcall (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-
-
> c:\users\pytask-dev\git\my_project\task_create_random_data.py(13)task_create_random_data()
-
-> rng = np.random.default_rng(0)
-
(Pdb) |
-
-
-
- -
-
diff --git a/docs/source/_static/images/try-first.svg b/docs/source/_static/images/try-first.svg deleted file mode 100644 index e0149ca3..00000000 --- a/docs/source/_static/images/try-first.svg +++ /dev/null @@ -1,136 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask -s
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\pytask-examples
-
Collected 2 tasks.
-
-
I'm first.
-
I'm second.
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_example.py::task_first.
-
task_example.py::task_second.
-
└────────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ────────────╮
-
2 Collected tasks
-
2 Succeeded (100.0%)
-
╰────────────────────────────────╯
-
───────────────────────────────────── Succeeded in 0.11 seconds ──────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/try-last.svg b/docs/source/_static/images/try-last.svg deleted file mode 100644 index c3a70804..00000000 --- a/docs/source/_static/images/try-last.svg +++ /dev/null @@ -1,136 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask -s
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\pytask-examples
-
Collected 2 tasks.
-
-
I'm second.
-
I'm first.
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_example.py::task_first.
-
task_example.py::task_second.
-
└────────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ────────────╮
-
2 Collected tasks
-
2 Succeeded (100.0%)
-
╰────────────────────────────────╯
-
───────────────────────────────────── Succeeded in 0.11 seconds ──────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/warning.svg b/docs/source/_static/images/warning.svg deleted file mode 100644 index e7f1533b..00000000 --- a/docs/source/_static/images/warning.svg +++ /dev/null @@ -1,146 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.1, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\pytask-examples
-
Collected 1 task.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_warning.py::task_warning.
-
└───────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ────────────╮
-
1 Collected tasks
-
1 Succeeded (100.0%)
-
╰────────────────────────────────╯
-
───────────────────────────────────── Succeeded in 0.24 seconds ──────────────────────────────────────
-
╭───────────────────────────────────────────── Warnings ─────────────────────────────────────────────╮
-
│ task_warning.py::task_warning │
-
│ C:\Users\pytask-dev\git\pytask-examples\task_warning.py:8: SettingWithCopyWarning: │
-
│ A value is trying to be set on a copy of a slice from a DataFrame. │
-
│ Try using .loc = value instead │
-
│ │
-
│ See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/ │
-
│ indexing.html#returning-a-view-versus-a-copy │
-
│ df[df["a"] < 5]["b"] = 1 │
-
│ │
-
https://pytask-dev.rtfd.io/en/stable/how_to_guides/capture_warnings.html │
-
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
-
-
-
-
- -
-
diff --git a/docs/source/_static/images/write-a-task.svg b/docs/source/_static/images/write-a-task.svg deleted file mode 100644 index 7554a703..00000000 --- a/docs/source/_static/images/write-a-task.svg +++ /dev/null @@ -1,134 +0,0 @@ - - - - -
-
-
- - - - - -
pytask
-
-
-
$ pytask
-
──────────────────────────────────────── Start pytask session ────────────────────────────────────────
-
Platform: win32 -- Python 3.10.0, pytask 0.2.0, pluggy 1.0.0
-
Root: C:\Users\pytask-dev\git\my_project
-
Collected 1 task.
-
-
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓
-
Task Outcome
-
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩
-
task_data_preparation.py::task_create_random_data.
-
└───────────────────────────────────────────────────┴─────────┘
-
-
──────────────────────────────────────────────────────────────────────────────────────────────────────
-
╭─────────── Summary ────────────╮
-
1 Collected tasks
-
1 Succeeded (100.0%)
-
╰────────────────────────────────╯
-
───────────────────────────────────── Succeeded in 0.06 seconds ──────────────────────────────────────
-
-
-
-
- -
-
diff --git a/docs/source/_static/md/capture.md b/docs/source/_static/md/capture.md index 25cfc5f1..4d65089c 100644 --- a/docs/source/_static/md/capture.md +++ b/docs/source/_static/md/capture.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 2 tasks. diff --git a/docs/source/_static/md/clean-dry-run-directories.md b/docs/source/_static/md/clean-dry-run-directories.md index 7afe0f57..c73ed9ee 100644 --- a/docs/source/_static/md/clean-dry-run-directories.md +++ b/docs/source/_static/md/clean-dry-run-directories.md @@ -4,7 +4,7 @@ $ pytask clean --directories ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/clean-dry-run.md b/docs/source/_static/md/clean-dry-run.md index 0f0dfb4e..a128bfc4 100644 --- a/docs/source/_static/md/clean-dry-run.md +++ b/docs/source/_static/md/clean-dry-run.md @@ -4,7 +4,7 @@ $ pytask clean ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/collect-nodes.md b/docs/source/_static/md/collect-nodes.md index 5d144598..d5659f78 100644 --- a/docs/source/_static/md/collect-nodes.md +++ b/docs/source/_static/md/collect-nodes.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/collect.md b/docs/source/_static/md/collect.md index d6876c52..0683a6b8 100644 --- a/docs/source/_static/md/collect.md +++ b/docs/source/_static/md/collect.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/dry-run.md b/docs/source/_static/md/dry-run.md index 7d9b768d..2483e83b 100644 --- a/docs/source/_static/md/dry-run.md +++ b/docs/source/_static/md/dry-run.md @@ -4,7 +4,7 @@ $ pytask --dry-run ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/help-page.md b/docs/source/_static/md/help-page.md index 14e6fc96..2d9081e5 100644 --- a/docs/source/_static/md/help-page.md +++ b/docs/source/_static/md/help-page.md @@ -3,7 +3,7 @@ ```console $ pytask --help -
pytask v0.3.0
+
pytask v0.4.0
Usage: pytask [OPTIONS] [COMMAND] [PATHS] Manage your tasks with pytask. diff --git a/docs/source/_static/md/migrating-from-scripts-to-pytask.md b/docs/source/_static/md/migrating-from-scripts-to-pytask.md index 98f87f9c..7137b27e 100644 --- a/docs/source/_static/md/migrating-from-scripts-to-pytask.md +++ b/docs/source/_static/md/migrating-from-scripts-to-pytask.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/pdb.md b/docs/source/_static/md/pdb.md index 4f4dbc93..b606a6a3 100644 --- a/docs/source/_static/md/pdb.md +++ b/docs/source/_static/md/pdb.md @@ -4,7 +4,7 @@ $ pytask --pdb ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/persist-executed.md b/docs/source/_static/md/persist-executed.md index 2d8327ff..3cfd5494 100644 --- a/docs/source/_static/md/persist-executed.md +++ b/docs/source/_static/md/persist-executed.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/persist-persisted.md b/docs/source/_static/md/persist-persisted.md index 3ed7c0a6..0ddc7ec3 100644 --- a/docs/source/_static/md/persist-persisted.md +++ b/docs/source/_static/md/persist-persisted.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/persist-skipped.md b/docs/source/_static/md/persist-skipped.md index bd95a93e..827682bb 100644 --- a/docs/source/_static/md/persist-skipped.md +++ b/docs/source/_static/md/persist-skipped.md @@ -4,7 +4,7 @@ $ pytask --verbose 2 ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/profiling-tasks.md b/docs/source/_static/md/profiling-tasks.md new file mode 100644 index 00000000..d86e4a6e --- /dev/null +++ b/docs/source/_static/md/profiling-tasks.md @@ -0,0 +1,34 @@ +
+ +```console + +$ pytask profile +──────────────────────────── Start pytask session ──────────────────────────── +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 +Root: C:\Users\pytask-dev\git\my_project +Collected 18 task. + +┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓ +┃ Task ┃ Duration (in s) ┃ Size ┃ +┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩ +│ task_apply_bh_to_indicators.py::task_apply_… │ 3.93 │ 123 MB │ +│ task_apply_bh_to_indicators.py::task_apply_… │ 0.09 │ 13 MB │ +│ task_replicate_results_of_bh2007.py::task_r… │ 0.09 │ 13 MB │ +│ task_replicate_results_of_bh2007.py::task_r… │ 8.99 │ 8 MB │ +│ task_merge_indicators.py::task_merge_indica… │ 74.44 │ 499 MB │ +│ task_prepare_bessen_hunt_2007.py::task_prep… │ 80.15 │ 15 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.11 │ 35 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.92 │ 35 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.11 │ 34 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.12 │ 35 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.12 │ 35 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.44 │ 143 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.73 │ 143 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.37 │ 114 MB │ +│ task_prepare_datasets.py::task_copy_files[d… │ 0.62 │ 170 MB │ +│ task_visualize_distribution_of_patents.py::… │ 17.3 │ 42 KB │ +│ task_compile_document.py::task_compile_thes… │ 7.08 │ 539 KB │ +│ task_table_bessen_hunt_2007_and_replication… │ 0.09 │ 784 bytes │ +└──────────────────────────────────────────────┴─────────────────┴───────────┘ +────────────────────────────────────────────────────────────────────────────── +``` diff --git a/docs/source/_static/md/readme.md b/docs/source/_static/md/readme.md index 61c40181..f309eb1f 100644 --- a/docs/source/_static/md/readme.md +++ b/docs/source/_static/md/readme.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/repeating-tasks.md b/docs/source/_static/md/repeating-tasks.md index 81716ed2..967eb094 100644 --- a/docs/source/_static/md/repeating-tasks.md +++ b/docs/source/_static/md/repeating-tasks.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 10 task. diff --git a/docs/source/_static/md/show-locals.md b/docs/source/_static/md/show-locals.md index 71abfe9e..0c681d8f 100644 --- a/docs/source/_static/md/show-locals.md +++ b/docs/source/_static/md/show-locals.md @@ -4,7 +4,7 @@ $ pytask --show-locals ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/trace.md b/docs/source/_static/md/trace.md index 56607dac..3a99c1e5 100644 --- a/docs/source/_static/md/trace.md +++ b/docs/source/_static/md/trace.md @@ -4,7 +4,7 @@ $ pytask --trace ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/try-first.md b/docs/source/_static/md/try-first.md index f61d7bf6..e25b31a1 100644 --- a/docs/source/_static/md/try-first.md +++ b/docs/source/_static/md/try-first.md @@ -4,7 +4,7 @@ $ pytask -s ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 2 task. diff --git a/docs/source/_static/md/try-last.md b/docs/source/_static/md/try-last.md index b902ff84..1e8f1fc4 100644 --- a/docs/source/_static/md/try-last.md +++ b/docs/source/_static/md/try-last.md @@ -4,7 +4,7 @@ $ pytask -s ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 2 task. diff --git a/docs/source/_static/md/warning.md b/docs/source/_static/md/warning.md index b3f60b7f..987cdfc0 100644 --- a/docs/source/_static/md/warning.md +++ b/docs/source/_static/md/warning.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/_static/md/write-a-task.md b/docs/source/_static/md/write-a-task.md index f384fbbb..817149c3 100644 --- a/docs/source/_static/md/write-a-task.md +++ b/docs/source/_static/md/write-a-task.md @@ -4,7 +4,7 @@ $ pytask ──────────────────────────── Start pytask session ──────────────────────────── -Platform: win32 -- Python 3.10.0, pytask 0.3.0, pluggy 1.0.0 +Platform: win32 -- Python 3.10.0, pytask 0.4.0, pluggy 1.0.0 Root: C:\Users\pytask-dev\git\my_project Collected 1 task. diff --git a/docs/source/changes.md b/docs/source/changes.md index 4ea568aa..ead3bbad 100644 --- a/docs/source/changes.md +++ b/docs/source/changes.md @@ -9,6 +9,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and - {pull}`449` simplifies the code building the plugin manager. - {pull}`451` improves `collect_command.py` and renames `graph.py` to `dag_command.py`. +- {pull}`454` removes more `.svg`s and replaces them with animations. ## 0.4.1 - 2023-10-11 diff --git a/docs/source/tutorials/profiling_tasks.md b/docs/source/tutorials/profiling_tasks.md index 4f5681ab..e5f337ae 100644 --- a/docs/source/tutorials/profiling_tasks.md +++ b/docs/source/tutorials/profiling_tasks.md @@ -8,5 +8,5 @@ $ pytask profile Here is an example -```{image} /_static/images/profile.svg +```{include} ../_static/md/profiling-tasks.md ```