Skip to main content

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

Project description

PyPI PyPI - Python Version https://img.shields.io/conda/vn/conda-forge/pytask-environment.svg https://img.shields.io/conda/pn/conda-forge/pytask-environment.svg PyPI - License https://img.shields.io/github/workflow/status/pytask-dev/pytask-environment/Continuous%20Integration%20Workflow/main https://codecov.io/gh/pytask-dev/pytask-environment/branch/main/graph/badge.svg pre-commit.ci status https://img.shields.io/badge/code%20style-black-000000.svg

pytask-environment

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.

_static/error.png

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.

# Content of pytask.ini, setup.cfg, or tox.ini

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytask_environment-0.1.0.tar.gz (52.5 kB view hashes)

Uploaded Source

Built Distribution

pytask_environment-0.1.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page