Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin django-minio-storage #1597

Merged
merged 1 commit into from
May 22, 2023
Merged

Pin django-minio-storage #1597

merged 1 commit into from
May 22, 2023

Conversation

mvandenburgh
Copy link
Member

@mvandenburgh mvandenburgh commented May 22, 2023

Deploys are currently failing https://github.com/dandi/dandi-archive/actions/runs/5047436699, due to a breaking change in the minio python library (this commit, for reference)

I explained the issue behind this in the code comment, but to summarize:

  • django_s3_file_field[minio] does not pin django-minio-storage, but does pin minio to <7. https://github.com/girder/django-s3-file-field/blob/master/setup.py#L72
  • dandi does not pin either of these dependencies, but we do list django-minio-storage (unpinned) in our production dependencies.
  • Because django_s3_file_field[minio] is a dev dependency, it's not installed in the Heroku environment, thus the pip resolver does not take into account the minio<7 requirement, and thus it ends up installing the latest version of minio.
  • This results in diverging behavior in development where the older version of minio is installed because we do install django_s3_file_field[minio] there.

This PR fixes the immediate issue by simply pinning django-minio-storage to the latest version that doesn't require minio<7. The long term fix will require updating django_s3_file_field to use the latest django-minio-storage/minio.

@danlamanna
Copy link
Contributor

cc @brianhelba

@mvandenburgh mvandenburgh merged commit 9ad2bfe into master May 22, 2023
@mvandenburgh mvandenburgh deleted the update-minio-import branch May 22, 2023 17:28
@mvandenburgh
Copy link
Member Author

@dandibot
Copy link
Member

🚀 PR was released in v0.3.36 🚀

@dandibot dandibot added the released This issue/pull request has been released. label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants