Metadata-Version: 2.4
Name: pip2conda
Version: 0.9.0
Summary: Translate pip requirements into conda requirements
Author-email: Duncan Macleod <duncanmmacleod@gmail.com>
License: GPL-3.0-or-later
Project-URL: Bug Tracker, https://gitlab.com/gwpy/pip2conda/-/issues
Project-URL: Documentation, https://pip2conda.readthedocs.io
Project-URL: Homepage, https://gitlab.com/gwpy/pip2conda/
Project-URL: Source Code, https://gitlab.com/gwpy/pip2conda.git
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: build>=1.0.0
Requires-Dist: grayskull>=1.0.0
Requires-Dist: requests>=2.32.5
Requires-Dist: ruamel.yaml>=0.18.15
Requires-Dist: packaging>=25.0
Requires-Dist: tomli>=2.2.1; python_version < "3.11"
Requires-Dist: wheel>=0.45.1
Dynamic: license-file

# 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](https://badge.fury.io/py/pip2conda.svg)](http://badge.fury.io/py/pip2conda)
[![Conda version](https://img.shields.io/conda/vn/conda-forge/pip2conda.svg)](https://anaconda.org/conda-forge/pip2conda/)
[![License](https://img.shields.io/pypi/l/pip2conda.svg)](https://choosealicense.com/licenses/gpl-3.0/)
![Supported Python versions](https://img.shields.io/pypi/pyversions/pip2conda.svg)

## Installation

For best results, please install from [conda-forge](https://conda-forge.org/):

```shell
conda install -c conda-forge pip2conda
```

You can also install directly from PyPI:

```shell
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:

```console
$ 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:

```toml
# 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:

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