You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized our current use case for pigar may be of interest, since it displays some limitations experienced "in the wild". I hope our experiences may assist in making pigar even better!
Use Case
We want to keep a large python project's dependencies up-to-date. The project's sources are split into multiple directories, separating services and shared code. Most packages we want to upgrade to their latest version directly, others we want to keep locked to specific versions for various reasons.
Issues
Shared code is split into different directories. pigar currently only supports a single project PROJECT_PATH in the -P flag
Workaround: Run pigar once for each directory and manually merge the results.
Workaround: Use a separate tool to upgrade each package to their latest version or manually update via pigar -c
pigar currently does not support locking certain packages to specific versions
Workaround: Manually overwrite pigar's output with our specific version after each run
pigar may fail with e.g. django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
on django-enabled projects.
Workaround: Set DJANGO_SETTINGS_MODULE before calling pigar
We currently have most of this scripted but it would be nice to see such functionality built-in to pigar itself.
The text was updated successfully, but these errors were encountered:
I realized our current use case for
pigar
may be of interest, since it displays some limitations experienced "in the wild". I hope our experiences may assist in makingpigar
even better!Use Case
We want to keep a large python project's dependencies up-to-date. The project's sources are split into multiple directories, separating services and shared code. Most packages we want to upgrade to their latest version directly, others we want to keep locked to specific versions for various reasons.
Issues
pigar
currently only supports a single projectPROJECT_PATH
in the-P
flagpigar
once for each directory and manually merge the results.pigar
currently does not support automatically upgrading all packages to their latest versions (See Pigar generating requirements.txt with old version #80 )pigar -c
pigar
currently does not support locking certain packages to specific versionspigar
's output with our specific version after each runpigar
may fail with e.g.django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
on django-enabled projects.
DJANGO_SETTINGS_MODULE
before callingpigar
We currently have most of this scripted but it would be nice to see such functionality built-in to
pigar
itself.The text was updated successfully, but these errors were encountered: