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
Refactor ~200 package from python-packages.nix -> python-modules #48471
Refactor ~200 package from python-packages.nix -> python-modules #48471
Conversation
56fd984
to
86c673c
Compare
I was creating these commits starting from |
You also want to rebase this. |
Thanks a lot! I've rebased and pushed this to staging. |
Ohh, the merge conflicts after this change 😢 |
@FRidh yes I was very worried about that. Could I do something that would make it easier to merge? I still have about 90 commits to add as well (I am testing them now). I was hoping to check all the |
Done! I don't think there is really anything that can be done. It seems like it is more an issue of timing; there are already quite some package changes in Don't let it stop you, go ahead. |
Awesome! I will rebase the next 90 commits on the new |
Regarding alphabetical order some tooling to maintain the order would be nice. Humans are not good at that for large files and then we have merges that can mess up the order. |
@Mic92 I've thought about this a bit and I'm thinking that in order to do proper alphabetical sorting we would need the AST representation of the file. This could also be helpful in enforcing a style to files and many other things. I really liked your project pythoninx and have played with it. Does nix/libexpr expose the AST that could somehow be exposed in python? Also in regards to sorting I think that normalized sorting would be helpful. For example |
Once upon a time we had a Stratego program for sorting |
Things done
Strictly moving package to
python-modules
. Did not attempt to upgrade package unless it added python 3 support or was broken. Also convertedfetch...
tofetchPypi
to make future upgrades easier. All packages have been tested in sandbox mode to build properly.As of the last edit there are ~456 remaining packages.
General steps taken:
fetch...
->fetchPypi
name = "something-1.0.1";
->version="1.0.1"; pname="something";
pkgs
reference (would have taken a lot of time to refactor out)!isPy27
->isPy3k
platforms.all
letbuildPythonPackage
determinesandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)