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.11
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.10.0.tar.gz (43.4 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.10.0-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pip2conda-0.10.0.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pip2conda-0.10.0.tar.gz
Algorithm Hash digest
SHA256 ab15e3c8c075e480bb327089ff72a69d15802d2195c608d4a646d0b17166e6e1
MD5 375dcc7664bba14a558b70a383b907de
BLAKE2b-256 70e7234576876499676a8303381d7d0e7a9a9e484c7d334f637530a471437d8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pip2conda-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pip2conda-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e3dc0313119cd7652fe9ccad8f32c4d201593a1551c07c105bf9f56a5bf487c
MD5 dcaeaf70e0012bf44470e95797b082ca
BLAKE2b-256 0a28d322646f7ebf6ce3184a7114b26a04e4bb7d136ebe34b5fa7367149dac97

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