Skip to content

Tracking changes in v0.4.0. #400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,22 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-[email protected]
- uses: mamba-org/setup-micromamba@v1
with:
auto-update-conda: false
python-version: ${{ matrix.python-version }}
channels: conda-forge,nodefaults
miniforge-variant: Mambaforge

- name: Install core dependencies.
shell: bash -l {0}
run: mamba install -c conda-forge tox-conda coverage
environment-name: gha-testing
condarc: |
channels:
- nodefaults
- conda-forge
create-args: >-
python=${{ matrix.python-version }}
mamba
tox-conda
cache-environment: true

# Unit, integration, and end-to-end tests.

Expand All @@ -49,7 +51,7 @@ jobs:
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=src --cov=tests --cov-report=xml -n auto

- name: Upload coverage report for unit tests and doctests.
if: runner.os == 'Linux' && matrix.python-version == '3.8'
if: runner.os == 'Linux' && matrix.python-version == '3.10'
shell: bash -l {0}
run: bash <(curl -s https://codecov.io/bash) -F unit -c

Expand All @@ -58,7 +60,7 @@ jobs:
run: tox -e pytest -- -m integration --cov=src --cov=tests --cov-report=xml -n auto

- name: Upload coverage reports of integration tests.
if: runner.os == 'Linux' && matrix.python-version == '3.8'
if: runner.os == 'Linux' && matrix.python-version == '3.10'
shell: bash -l {0}
run: bash <(curl -s https://codecov.io/bash) -F integration -c

Expand All @@ -67,6 +69,6 @@ jobs:
run: tox -e pytest -- -m end_to_end --cov=src --cov=tests --cov-report=xml -n auto

- name: Upload coverage reports of end-to-end tests.
if: runner.os == 'Linux' && matrix.python-version == '3.8'
if: runner.os == 'Linux' && matrix.python-version == '3.10'
shell: bash -l {0}
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ repos:
hooks:
- id: python-check-blanket-noqa
- id: python-check-mock-methods
- id: python-no-eval
exclude: expression.py
- id: python-no-log-warn
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
args: [--py38-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.3.0
hooks:
Expand All @@ -52,7 +49,7 @@ repos:
rev: 1.5.0
hooks:
- id: interrogate
args: [-v, --fail-under=75]
args: [-vv, --fail-under=75]
exclude: ^(tests/|docs/|scripts/)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.3.0'
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include CITATION
include LICENSE

recursive-include src *.pyi
recursive-include src py.typed

exclude .coveragerc
Expand Down
7 changes: 4 additions & 3 deletions docs/rtd_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- nodefaults

dependencies:
- python >=3.7
- python >=3.8
- pip
- setuptools_scm
- toml
Expand All @@ -25,11 +25,12 @@ dependencies:
- click-default-group
- networkx >=2.4
- pluggy
- pony >=0.7.15
- pybaum >=0.1.1
- optree >=0.9
- pexpect
- rich
- sqlalchemy >=1.4.36
- tomli >=1.0.0
- typing_extensions

- pip:
- ../
3 changes: 0 additions & 3 deletions docs/source/_static/images/markers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions docs/source/_static/md/markers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ $ pytask markers
│ │ tutorial for more information: │
│ │ <a href="https://bit.ly/3JlxylS">https://bit.ly/3JlxylS</a>. │
│ │ │
│ pytask.mark.parametrize │ The marker for pytest&#x27;s way of │
│ │ repeating tasks which is explained in │
│ │ this tutorial: <a href="https://bit.ly/3uqZqkk">https://bit.ly/3uqZqkk</a>. │
│ │ │
│ pytask.mark.persist │ Prevent execution of a task if all │
│ │ products exist and even ifsomething has │
│ │ changed (dependencies, source file, │
Expand Down
21 changes: 20 additions & 1 deletion docs/source/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
releases are available on [PyPI](https://pypi.org/project/pytask) and
[Anaconda.org](https://anaconda.org/conda-forge/pytask).

## 0.3.2 - 2023-xx-xx
## 0.4.0 - 2023-xx-xx

- {pull}`323` remove Python 3.7 support and use a new Github action to provide mamba.
- {pull}`384` allows to parse dependencies from every function argument if `depends_on`
is not present.
- {pull}`387` replaces pony with sqlalchemy.
- {pull}`391` removes `@pytask.mark.parametrize`.
- {pull}`394` allows to add products with {obj}`typing.Annotation` and
{obj}`~pytask.Product`.
- {pull}`395` refactors all occurrences of pybaum to {mod}`_pytask.tree_util`.
- {pull}`396` replaces pybaum with optree and adds paths to the name of
{class}`pytask.PythonNode`'s allowing for better hashing.
- {pull}`397` adds support for {class}`typing.NamedTuple` and attrs classes in
`@pytask.mark.task(kwargs=...)`.
- {pull}`398` deprecates the decorators `@pytask.mark.depends_on` and
`@pytask.mark.produces`.
- {pull}`402` replaces ABCs with protocols allowing for more flexibility for users
implementing their own nodes.

## 0.3.2 - 2023-06-07

- {pull}`345` updates the version numbers in animations.
- {pull}`352` publishes `db` that is required by pytask-environment.
Expand Down
1 change: 0 additions & 1 deletion docs/source/how_to_guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ maxdepth: 1
migrating_from_scripts_to_pytask
invoking_pytask_extended
capture_warnings
repeating_tasks_with_different_inputs_the_pytest_way
how_to_influence_build_order
how_to_write_a_plugin
```
Expand Down

This file was deleted.

Loading