Skip to content

uv pip compile pyproject.toml ignores dependencies declared in setup.cfg #1624

@SnoopJ

Description

@SnoopJ

Platform: Ubuntu 20.04
uv version: fef1956

Reproduction

Project files

# pyproject.toml
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
# setup.cfg
[options]
packages = find:
install_requires=
    numpy
# setup.py
from setuptools import setup


setup(
    name="dummypkg",
    description="A dummy package",
)

uv invocation

NOTE: this invocation points directly to the uv entrypoint to work around #1623.

$ ~/.pyenv/versions/3.9.16/bin/uv pip compile pyproject.toml  # numpy dependency is ignored
Resolved 0 packages in 4ms
# This file was autogenerated by uv v0.1.4 via the following command:
#    uv pip compile pyproject.toml

Reference pip-compile (7.3.0) invocation

$ pip-compile pyproject.toml
WARNING: --strip-extras is becoming the default in version 8.0.0. To silence this warning, either use --strip-extras to opt into the new default or use --no-strip-extras to retain the existing behavior.
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
#    pip-compile pyproject.toml
#
numpy==1.26.4
    # via dummypkg (pyproject.toml)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcompatibilityCompatibility with a specification or another tool

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions