pip-api icon indicating copy to clipboard operation
pip-api copied to clipboard

An unofficial, importable pip API

Results 19 pip-api issues
Sort by recently updated
recently updated
newest added

Bumps the actions group with 2 updates: [softprops/action-gh-release](https://github.com/softprops/action-gh-release) and [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `softprops/action-gh-release` from 1 to 2 Release notes Sourced from softprops/action-gh-release's releases. v2.0.0 update actions.yml declaration to node20 to address...

dependencies

**Reproduction** ``` python3.11 -Wall -c "import pip_api" /lib/python3.11/site-packages/pip_api/_vendor/pyparsing.py:108: DeprecationWarning: module 'sre_constants' is deprecated import sre_constants ``` **Root cause** `sre_constants` is imported by the vendored `pyparsing` module: https://github.com/di/pip-api/blob/5ac3ec840dd4eb0fd20ea69d5d2362472e0d4daf/pip_api/_vendor/pyparsing.py#L108 see: https://github.com/python/cpython/issues/91308

As of version 22.2, `pip` supports two new flags on `pip install`: `--dry-run` to perform a "dry run" of the installation steps, and `--report` to generate a JSON-formatted installation report....

Given @di 's [comment](https://github.com/reynoldsnlp/pipster/issues/45#issuecomment-1553010062), would it be useful to add a link to `pipster` in `pip-api`'s README so that people looking for this functionality can easily find it?

Right now, almost all of `pip-api`'s state revolves around calls to `pip`, which in turn is located by `pip-api` by invoking it relative to the current interpreter (in effect `{sys.executable}...

WIP. Signed-off-by: William Woodruff

`pip-api` is a pure Python package, so switching it fully over to `pyproject.toml` (the way we've done for `pip-audit` and `sigstore-python`) should be pretty straightforward.

The current requirements parser allows a requirement to specify both `--hash ...` and `-e`, despite the two being incompatible and rejected by `pip` itself (https://github.com/pypa/pip/issues/4995). IMO, we should probably reject...

bug

`pip-api` currently (and very reasonably) strips these as part of its `parse_requirements` API, removing all comments and any requirement lines whose environment markers are not satisfied. This is the correct...

enhancement