Skip to main content

Translate pip requirements into conda requirements

Project description

pip2conda

pip2conda is a tool to translate pip-style requirements into conda requirements.

pip2conda reads or generates the metadata for a project, evaluating the build (if possible) and runtime requirements - including unpacking extras, dependency groups, and evaluating environment markers - before translating each requirement into a conda-forge requirement suitable for installation with conda/mamba.

PyPI version Conda version License Supported Python versions

Installation

For best results, please install from conda-forge:

conda install -c conda-forge pip2conda

You can also install directly from PyPI:

python -m pip install pip2conda

Basic Usage

Just execute pip2conda from the base of your project directory, or point it at a wheel file for any project. For example, running pip2conda in the base directory for its own project repository does this:

$ pip2conda
build
grayskull>=1.0.0
packaging
python>=3.10
requests
ruamel.yaml
setuptools-scm>=3.4.3
setuptools>=61.0
wheel

For more details, see the online documentation at

https://pip2conda.readthedocs.io

Dependency group configuration

pip2conda supports both standard PEP 735 dependency groups and custom pip2conda-specific dependency groups:

# Standard dependency groups
[dependency-groups]
test = ["pytest", "coverage"]

# Custom pip2conda dependency groups (for conda-only packages)
[tool.pip2conda.dependency-groups]
conda = ["my-conda-only-package"]

Use them with the -g/--dependency-group flag:

$ pip2conda -g test
$ pip2conda -g conda
$ pip2conda --all-groups  # Include all groups

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

pip2conda-0.9.0.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pip2conda-0.9.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file pip2conda-0.9.0.tar.gz.

File metadata

  • Download URL: pip2conda-0.9.0.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for pip2conda-0.9.0.tar.gz
Algorithm Hash digest
SHA256 09f690e5ca3c8c3c304c8c32cd5ebd0dc888e535971017da53dc02b1f41211ed
MD5 f107b15b2ccfe4b28cedac4ff83a00c0
BLAKE2b-256 1d7619e890890ea3f3836ca0d6bd2dd4ccf5a6990232e1d2f2b8e974febbdd33

See more details on using hashes here.

File details

Details for the file pip2conda-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: pip2conda-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.1

File hashes

Hashes for pip2conda-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f2e2d052fd3eb71dca7f534a6eb071b26cc69416fa7fadef2519ed7c7114474
MD5 0fc6dd07dcc07ca718982bbefeac079e
BLAKE2b-256 62d2f40cee8449004095ef0312f5b2d5e2bab0ea291e5f1e141f88dc80fc2392

See more details on using hashes here.

Supported by

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