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.2.tar.gz (41.5 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.2-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pip2conda-0.9.2.tar.gz
  • Upload date:
  • Size: 41.5 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.9.2.tar.gz
Algorithm Hash digest
SHA256 1ded75fc46a3b6a74e1cdbae17c6942137821fd7dda1291549eceec765ccafa7
MD5 63c699319580b3c4bf146d9ce953780a
BLAKE2b-256 630a9ffc05c48fc1d67af64b6863ff2dd2242e8be186387f7420d802efc5eda8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pip2conda-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 32.4 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.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d0832e236b1299c2e2d6bfe717a8322f427cbc69e6f0aab38622b4d6e00880c
MD5 b1f4951a1884e1709a4fd92efc077698
BLAKE2b-256 37704582b3ed45e933ccc5e1db4d53cd908a764cd4980675def18f9ee5179b31

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