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

mailman-web: use default Nixpkgs Django #84896

Closed
wants to merge 1 commit into from

Conversation

alyssais
Copy link
Member

Motivation for this change

The upstream version bound of <2.2 is overly pessimistic, and
mailman-web works just fine on Nixpkgs' default Django 2.2. I've
applied a patch to relax the bound, which I have also sent
upstream1 (which is why I included the patch rather than just doing
another sed).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

The upstream version bound of <2.2 is overly pessimistic, and
mailman-web works just fine on Nixpkgs' default Django 2.2.  I've
applied a patch to relax the bound, which I have also sent
upstream[1] (which is why I included the patch rather than just doing
another sed).

[1]: https://gitlab.com/mailman/mailman-web/-/merge_requests/2
@lsix
Copy link
Member

lsix commented Apr 10, 2020

This looks good to me, but I have not tested mailman-web with django-2.2.

@peti do you have a setup where you could give this a try?

@Mic92
Copy link
Member

Mic92 commented Apr 10, 2020

I think @benley has one.

@alyssais
Copy link
Member Author

FWIW mine is running happily at https://spectrum-os.org/lists/archives with this PR.

I did have some trouble where it failed to migrate the database to the new Django version, but I think this was due to an unrelated issue that had resulted in me having a corrupted database in the first place. It would be nice for somebody to verify that the update works for them.

Comment on lines +18 to +19
patches = [
(fetchpatch {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mind adding a comment about what the intent of the patch is doing, and when the patch is likely not to be needed

Suggested change
patches = [
(fetchpatch {
patches = [
# does x, y, z. Should be able to be removed after >=X.Y.Z
(fetchpatch {

@benley
Copy link
Member

benley commented Apr 13, 2020

I think @benley has one.

Yes, but I haven't had time to work on that project for a bit. If I can get back into it soon I'll test this.

@alyssais
Copy link
Member Author

@lheckemann are you able to test this?

@lheckemann
Copy link
Member

I have some general rework on the module in progress, this is part of it so I'm definitely for this change — though as I mentioned upstream maybe we should remove the django dependency (since it's a transitive dependency) rather than loosening the version bounds? That said, I'm fine with merging this with an explanatory comment as @jonringer suggested (and I'm already using this effectively)

@lheckemann
Copy link
Member

mayflower@477ebb7 I'd include this in the module PR and we could supersede this one with it?

@lheckemann lheckemann mentioned this pull request Apr 28, 2020
10 tasks
@FRidh FRidh added this to the 20.09 milestone Aug 29, 2020
@FRidh
Copy link
Member

FRidh commented Aug 29, 2020

@lheckemann if I am correct, now that #86177 is in, this can be closed?

@lheckemann
Copy link
Member

Yes.

@lheckemann lheckemann closed this Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants