Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Repository files navigation

pytask-environment

PyPI PyPI - Python Version image image PyPI - License image image pre-commit.ci status image


pytask-environment allows you to detect changes in your pytask environment and abort a project build.

Installation

pytask-environment is available on PyPI and Anaconda.org. Install it with

$ pip install pytask-environment

# or

$ conda install -c conda-forge pytask-environment

Usage

If the user attempts to build the project with pytask build and the Python version has been cached in the database in a previous run, an invocation with a different environment will produce the following command line output.

image

Running

$ pytask --update-environment

will update the information on the environment.

To disable either checking the path or the version, set the following configuration to a falsy value.

[tool.pytask.ini_options]
check_python_version = false  # true by default

check_environment = false  # true by default

Future development

The plugin might be further extended to compare the current environment against an environment.yml or a list of packages and versions to ensure that the environment is not altered.

Changes

Consult the release notes to find out about what is new.

About

Detect changes in your pytask environment and abort a project build.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages