Check declared Python dependencies before running scripts
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start by locating repository-manifest handling for the [dependencies] section, then trace revision validation, activation, and the execution worker entry point. Use packaging for parsing and version comparisons and importlib.metadata for installed versions; done means each stage reports valid, missing, incompatible, or invalid declarations without invoking pip, and worker mismatches fail only the run.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Plugin Version
v0.0.1
Proposed functionality
Read Python requirements from the manifest's [dependencies] section and report whether each declaration is satisfied, missing, incompatible, or invalid.
Check during revision validation, before activation, and when the execution worker starts. Web and worker environments may differ.
Treat malformed requirements as source errors. Missing or incompatible installed packages should be retryable after an administrator fixes the environment, without changing source. A worker mismatch should fail that run with a useful message, not permanently invalidate the active revision.
Do not invoke pip, install packages, or shell out to inspect them. Package installation remains an administrator's responsibility.
Use case
A message naming the missing package and required version is easier to act on than an import traceback during production execution. Worker-side checks also catch differences between deployment images before the Script begins its work.
External dependencies
Use packaging for requirement parsing and version comparisons, and importlib.metadata for installed versions. Coordinate the declaration format with the repository-manifest feature. No additional service is needed.
- Lenguaje dominante
- Python
- Estrellas
- 8
- Forks
- 0
- Merge medio
- 11 h 22 min
- PR fusionados (30 d)
- 40
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de netbox-community/netbox-scripts
-
app: scripts Bucket: Improve status: backlog type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
netbox-community/netbox-scripts#80 ·
Los mantenedores suelen responder en 1 día
-
app: scripts Bucket: KTLO severity: low status: backlog type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
netbox-community/netbox-scripts#76 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Raise the minimum NetBox version to v4.7.5Posiblemente ocupada @pheus la tomó hace 1 día. Abiertoapp: scripts Bucket: KTLO status: backlog type: housekeeping
netbox-community/netbox-scripts#123 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
A committed run is reported as unfinished when its events cannot be queuedPosiblemente ocupada @pheus la tomó hace 1 día. Abiertoapp: scripts Bucket: KTLO severity: low status: accepted type: bug
netbox-community/netbox-scripts#122 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Failed post-commit callback reports committed changes as reverted and drops eventsPosiblemente ocupada @pheus la tomó hace 1 día. Abiertoapp: scripts Bucket: KTLO severity: low status: accepted type: bug
netbox-community/netbox-scripts#121 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de netbox-community/netbox-scripts
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
pylint-dev/pylint#11791 ·
Los mantenedores suelen responder en 1 día
-
Rasterio granule reads never retry, so one 503 (Service Unavailable) fails the whole requestPosiblemente ocupada @chuckwondo la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
developmentseed/titiler-cmr#305 ·
Los mantenedores suelen responder en 1 día
-
community enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día