Metadata-Version: 2.5
Name: pipenv-uv
Version: 0.0.8
Summary: Patch pipenv to use uv for lock and sync operations.
Project-URL: Documentation, https://github.com/FlavioAmurrioCS/pipenv-uv#readme
Project-URL: Issues, https://github.com/FlavioAmurrioCS/pipenv-uv/issues
Project-URL: Source, https://github.com/FlavioAmurrioCS/pipenv-uv
Author-email: Flavio Amurrio <25621374+FlavioAmurrioCS@users.noreply.github.com>
License-Expression: MIT
License-File: LICENSE.txt
Keywords: pipenv,uv
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
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: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: pipenv<2026.7.0
Requires-Dist: uv>=0.9.17
Description-Content-Type: text/markdown

# pipenv-uv

[![PyPI - Version](https://img.shields.io/pypi/v/pipenv-uv.svg)](https://pypi.org/project/pipenv-uv)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pipenv-uv.svg)](https://pypi.org/project/pipenv-uv)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/FlavioAmurrioCS/pipenv-uv/main.svg)](https://results.pre-commit.ci/latest/github/FlavioAmurrioCS/pipenv-uv/main)

Patch pipenv to use uv for lock and sync operations.

> [!WARNING]
> **pipenv-uv is deprecated.** pipenv 2026.11.0 and later include a built-in
> [uv resolver backend](https://pipenv.pypa.io/en/latest/resolver_backends.html), so this
> package is no longer needed for locking with uv. See
> [#27](https://github.com/FlavioAmurrioCS/pipenv-uv/issues/27) for the details and the plan.
>
> pipenv-uv pins `pipenv<2026.7.0`, so it can't be used alongside the built-in backend. To migrate:
>
> 1. Remove pipenv-uv, e.g. `pipx uninject pipenv pipenv-uv` or
>    `uv tool install pipenv --force-reinstall`.
> 2. Upgrade pipenv to 2026.11.0 or later.
> 3. Install [uv](https://docs.astral.sh/uv/getting-started/installation/) so it is on your `$PATH`.
> 4. Add this to your `Pipfile` (or pass `pipenv lock --backend uv`):
>
>    ```toml
>    [pipenv]
>    resolver_backend = "uv"
>    ```
>
> The built-in backend only uses uv for locking. `pipenv install` and `pipenv sync` still use pip.
>
> Every `pipenv` command prints a deprecation notice to stderr while pipenv-uv is installed. Set
> `PIPENV_UV_NO_DEPRECATION_WARNING=1` to hide it.

-----

## Table of Contents

- [pipenv-uv](#pipenv-uv)
  - [Table of Contents](#table-of-contents)
  - [Installation](#installation)
  - [Usage](#usage)
  - [Environmental Variables](#environmental-variables)
  - [TODO](#todo)
  - [License](#license)

## Installation

With pipx:

```bash
pipx install pipenv
pipx inject pipenv pipenv-uv
```

With uv:

```bash
uv tool install pipenv --with pipenv-uv --force-reinstall
```

Inject directly into pipenv(in case you install pipenv with something like brew):

```bash
"$(head -n1 "$(which pipenv)" | sed 's|#!||g')" -m pip install pipenv-uv
```

## Usage

Just use pipenv as normal :D

## Environmental Variables
- `PIPENV_UV_DISABLE_RESOLVE_PATCH` - Disable the patch for the resolve/lock command
- `PIPENV_UV_DISABLE_INSTALL_PATCH` - Disable the patch for install command
- `PIPENV_UV_DISABLE_ALL_PATCHES` - Disable all patches
- `PIPENV_UV_VERBOSE` - Enable verbose output
- `PIPENV_UV_NO_DEPRECATION_WARNING` - Hide the deprecation notice

## TODO
- [ ] Handle conflicts for main packages and dev packages
- [x] Use uv for sync/install as well
- [ ] Add test

## License

`pipenv-uv` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
