microsoft / microsoft/component-detection

Python: add support for pyproject.toml (pep621) and perhaps setup.cfg specifications of dependencies

Open
#243 2 comments 8 reactions 0 assignees View on GitHub
status:requirements type:feature
Dominant language
C#
Stars
553
Forks
135
Avg merge
20h 58m
Merged PRs (30d)
6

Description

[pep621](https://peps.python.org/pep-0621/) specifies a standardized way of specifying dependencies in a declarative way. It would be nice if this could be directly supported. While in principle the current way of executing setup.py via distutils does pick this up there are several issues with it. See comment in #108 and #244

This is now officially supported in setuptools and is expected to be used in many more python packages going forward

It would also be nice to directly support dependencies in setup.cfg which is setuptools old but still widely used declarative config format

AB#2122796

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing Python dependency detection path that executes setup.py through distutils, then read PEP 621 and the references to issues #108 and #244. The work is done when dependencies declared in pyproject.toml using PEP 621, and in the widely used setup.cfg format, are detected directly with appropriate coverage for both specifications.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.