Support for multiple extras sets with the same library

Abierto
#19 3 comentarios 0 reacciones 0 asignados Ver en GitHub

@AtharvRG ya está trabajando en esto.

Desde el 31/10/2026.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

Comienza con el ejemplo de requirements.txt y rastrea cómo import_tracker asigna actualmente los módulos rastreados a extras_require. Determina si se pueden recuperar las dependencias completas para cada conjunto de módulo+extras; se considera terminado cuando set1 y set2 se asignan de forma independiente únicamente a los módulos que los necesitan.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

good first issue help wanted stage/010-actionable stage/stalled

Is your feature request related to a problem? Please describe.

When using import_tracker to manage a set of dependencies as optional in a large library, the problem of clean dependency management is deferred to the upstream library dependencies. Sometimes, those libraries also manage complex extras_require sets for various subsets of functionality. Currently, there is no way to subdivide the dependency on an upstream library across its extras_requires sets. For example:

requirements.txt

big_upstream[set1,set2]>=1.2.3

In this example, some modules in the library using import_tracker may require big_upstream, but may only use the parts of big_upstream from either set1 or set2. Currently, import_tracker will put big_upstream[set1,set2]>=1.2.3 into the extras_require set for all modules that require any functionality from big_upstream.

Describe the solution you'd like

The goal of this feature would be able to leverage the full set of dependency information for big_upstream[set1] and big_upstream[set2] independently such that individual modules within the import track'ed library can depend on these two extras sets independently.

Describe alternatives you've considered

Leave it as is and try to subdivide the upstream libs! Not terribly practical...

Additional context

The implementation of this would need to do the following:

  • Deduce the full set of modules required by each module+extras set listed in the requirements.txt (not sure if this is possible)
  • Use the full dependencies found when tracking a given module to cross-reference which module+extras set is needed for a given module, rather than using only the modules that appear in requirements.txt
Lenguaje dominante
Python
Estrellas
460
Forks
17
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de IBM/import-tracker

Todos los issues de IBM/import-tracker

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.