Skip to content

v2.4.0

Compare
Choose a tag to compare
@maresb maresb released this 19 Oct 09:02
· 566 commits to main since this release
f760313

What's Changed

Overview of new features

This release showcases new features by @pep-sanwer and @jacksmith15, as well as infrastructural improvements by @mfisher87, @mariusvniekerk, and @pep-sanwer.

New feature: Credentials for private PyPI repositories

We introduce the pip-repositories key for environment.yml which works for pip dependencies similarly to how channels works for Conda dependencies:

channels:
  - conda-forge
pip-repositories:
  - http://$PIP_USER:$PIP_PASSWORD@private-pypi.org/api/pypi/simple
dependencies:
  - python=3.11
  - requests=2.26
  - pip:
    - private-package==1.0.0

Credentials are substituted via environment variables.

Thanks @jacksmith15!

New feature: Parsing Python version from Poetry-style pyproject.toml files

Conda-lock now parses:

[tool.poetry.dependencies]
python = "^3.7"

Thanks @pep-sanwer!

New feature: skip-non-conda-lock flag

We introduce a new pyproject.toml flag for those who wish to manage Python project dependencies with another tool:

[tool.conda-lock]
skip-non-conda-lock = true

This causes the pyproject.toml's project dependencies to be ignored by conda-lock so that only the dependencies declared under [tool.conda-lock.dependencies] are considered.

[project]
dependencies = [
  "now-ignored-by-conda-lock"
]

[tool.conda-lock.dependencies]
still-managed-by-conda-lock = ">=1.0"

Thanks @pep-sanwer!

New features

  • Parse python version for poetry's pyproject.toml, always managed by conda by @pep-sanwer in #526
  • Lock only conda-lock dependencies in pyproject.toml by @pep-sanwer in #527
  • Configure private pip repositories in the environment file by @jacksmith15 in #529

Infrastructure

Refactor

Full Changelog: v2.3.0...v2.4.0