Skip to content

Change pip default cache path to **/pyproject.toml #529

@flying-sheep

Description

@flying-sheep

Description:
requirements.txt is a convention. The only existing standard for where to specify Python dependencies is PEP 621

Related to #502, but not following standards is IMHO a bug, not a missing feature.

Action version:
v4

Platform, Runner type, Tools version:
N/A

Repro steps:
Create a standard Python project, e.g. via hatch new or by following the official tutorial: https://packaging.python.org/en/latest/tutorials/packaging-projects/

Expected behavior:
The default path(s) should end with pyproject.toml.

An option would be to be smart about it and only consider pyproject.toml if it contains a project.dependencies array.

Actual behavior:
The default cache path is **/requirements.txt.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeature requestNew feature or request to improve the current logic

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions