Skip to main content

Conda plugin to maintain environments and projects reproducibly.

Project description

conda-ops

Installation

Please make sure that you install conda-ops into your base conda environment for the plugin for work properly. (If you install it into a conda environment, you will have to use that environment's conda installation to pick up the plugin, so installing conda into that envrionment and running path/to/environment/conda/bin ops instead of conda ops).

conda-ops is still under significant development and is changing rapidly. We recommend updating it regularly no matter how you choose to install.

For the latest development version:

conda run -n base pip install git+https://github.com/acwooding/conda-ops

For the latest alpha release available via PyPI:

conda run -n base pip install conda-ops

To install the plugin locally in development mode, clone the repo and then run pip install -e . from your base conda install (e.g. conda run -n base pip install -e ..

Note that conda-ops requires modern conda with plugin support (and likely python/pip). e.g.

>>> conda install -n base -c defaults conda==23.5.0
>>> conda install -n base -c defaults python=3.11

To uninstall, pip uninstall conda-ops from your base conda environment.

Basic Usage

The interface for conda ops is still experimental and may change between commits. The best way to see what can be done at a given moment is to use the help menu:

conda ops --help

or to check the status of your conda ops project via

conda ops

and follow the prompts from there.

Testing and Linting

To set up testing or linting, you'll need the depedencies specified under [project.optional-dependencies] in the pyproject.toml installed into your environment.

Running tests

Once dependencies are set up, run pytest or coverage run -m pytest. After running coverage, coverage report will display the basic coverage information and coverage html will generate an html interactive coverage report.

Linting

For now, keep a line length of 200

Always run black for auto-formatting.

  • black . -l 200: specify a larger max line length with black

Take a look at flake8 or pylint reports for linting. flake8 is a more lightweight.

  • flake8 --max-line-length=200 --exclude conda_ops_later.py
  • pylint src --max-line-length=200 --ignore=conda_ops_later.py

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

conda-ops-0.1.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

conda_ops-0.1-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file conda-ops-0.1.tar.gz.

File metadata

  • Download URL: conda-ops-0.1.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for conda-ops-0.1.tar.gz
Algorithm Hash digest
SHA256 2eccdc9b682ee91a2c419f952f405c1d5161725c6d88b9161b6bca824e6068c9
MD5 a54e7efe0242dddb157fe2a5e736839e
BLAKE2b-256 d8cfcc40e5ecbd972b26d6c186cbe8cc3ffb5a9338759d29c2cee017831db6ce

See more details on using hashes here.

File details

Details for the file conda_ops-0.1-py3-none-any.whl.

File metadata

  • Download URL: conda_ops-0.1-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for conda_ops-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c62b19a9f4e15cadead1732f75807f470029bdc72f2bb47c06c1c35f244fd0d
MD5 7fca206560a465ff3d8c2369ddf23080
BLAKE2b-256 5fd4543fa8911ee9f7a8e25075364e891b252b4aadc6f7dd49b58e9017a421ff

See more details on using hashes here.

Supported by

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