-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
azure-cli: init at 2.0.76 #71797
azure-cli: init at 2.0.76 #71797
Conversation
fyi i'm getting page not found on https://github.com/Azure/azure-cli |
yea, that happened to me suddenly as well. It's back up, and now looks like a fork. I think someone accidentally deleted it.... lol |
I'm able to get the |
also, i need to clean up my git history a bit |
6d01609
to
e5bbcd4
Compare
@FRidh other than making the shell completion work (which isn't mandatory), I think this is ready to go. |
e5bbcd4
to
c1ebc5d
Compare
Please get rid of removing those |
It's to help enforce PEP420 on our end for python>=3.5, personally, I think this is the right thing to do. The azure-mgmt-* packages are meant to be composed as a user needs. Their packaging essentially needs you to have wheel==0.30 so that it the interaction between the wheel package, their custom build_azure-wheel.py, and azure-{mgmt-}nspkg package can create the correct wheels for python2 and python3. In the azure-mgmt* packages, I removed the init.py's only if it's python3, and in the azure-cli, I'm under the assumption that it is python3 (but I guess i could make this optional) |
I want to avoid the case where another package has |
1acf282
to
e4d2a4d
Compare
updated the package to 2.0.76 |
e4d2a4d
to
013da19
Compare
@FRidh does this look good to you? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/what-are-your-goals-for-20-03/4773/2 |
.../development/python-modules/azure-mgmt-appconfiguration/azure-mgmt-apimanagement/default.nix
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the duplicate file this looks good to me. I am still a bit skeptical though to adding such huge package to Nixpkgs and think it would be easier to keep it running in a separate project.
013da19
to
acbf802
Compare
removed duplicate file and rebased on master |
I was going to wait for 2.0.77 to release, but I'm assuming they won't do a release before black friday, so going to merge. |
Was the node version removed as well? |
It was completely removed from unstable when I added it, and for 19.09, it was just a broken build, so i replaced it. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nixos-weekly-01-nixos-weekly/5422/1 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nixops-travis-ci-test-failure-on-azure-private-ip-pr/2441/13 |
azure-graphrbac = super.azure-graphrbac.overrideAttrs(oldAttrs: rec { | ||
version = "0.60.0"; | ||
|
||
src = super.fetchPypi { | ||
inherit (oldAttrs) pname; | ||
inherit version; | ||
sha256 = "1zna5vb887clvpyfp5439vhlz3j4z95blw9r7y86n6cfpzc65fyh"; | ||
extension = "zip"; | ||
}; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why it doesn't use overrideAzureMgmtPackage
will you accept a PR where I convert those snippet in the more short form ? same remark for azure-storage-blob
, azure-storage-common
new packages where added and this pattern is more used instead of overrideAzureMgmtPackage
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overrideAzureMgmtPackage
is for `azure-mgmt-* packages. it will create the incorrect python namespaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In master this snippet is removed
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
So I don't see why it has such requirement now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because they had some weird non pep420 logic to get namespaces to work prior to python2 becoming EOL, so it was necessary for a bit to remove the package as it didn't work with nix store paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most of it is irrelevant now that python2 has been deprecated which is why it has been removed
Motivation for this change
Add proper azure cli support back into nix after the node "v1.0" was deprecated.
Still have some clean up to do, definitely not in a final state. Just wanted people to comment while still a draft PR.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @