-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
update-python-resources
should support non-PyPI indexes
#18282
Comments
I wrote a sort of brute-force patch of this just to see what was necessary and if this made any sense. Seems to work, however this prevents running it a 2nd time (unless you delete the "other" resources). |
Given this, it seems more generally useful if:
The latter has been on our nice-to-have-list for a while now. There is some support for the former, but I'm not sure it's complete. |
Agree that I think this is what should be built here. |
in my exact case, simply supporting non-JSON-api repos would solve the problem. should I look at doing this instead? It just means pulling in another dep (REXML?) and then having two implementations of pypi_info i believe |
I'm not sure I understand this. Could you elaborate?
I don't think we should expand the scope of |
bump-formula-pr
should update resource
blocks
This part is a dupe of #17401 |
Closing as a duplicate of #17401. |
@carlocab – let me explain. In this example, I have a CLI that is published privately as a Python package. The CLI depends on another private package and that private package depends on another. Let's call the CLI
the repository is what Artifactory calls a "virtual repository". It just means that it presents itself as a single repository and will resolve libraries first from the included local repositories (where The problem with If |
Thanks for the explanation! In that case, this should be covered by the more general solution proposed at #17401 (but you may need to add |
well, not really because a private libraries dependencies could change, such that resource blocks could be added or subtracted. Just to say that you'd want to update the entire dep tree and resolve all private package deps. I'm not sure I see the value of |
bump-formula-pr
should update resource
blocksupdate-python-resources
should support non-PyPI indexes
Got it; thanks for explaining. This seems like a relatively niche use-case, so I don't think any maintainers are likely to work on this. Still, we'd be willing to review PRs, but I suspect the barrier for merging them will be a bit high (given that it's a feature that isn't relevant to very many users). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Verification
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.Provide a detailed description of the proposed feature
I'd like to have
--update-python-resources
support--extra-pacakges
where the package is a URL, not a name. A call would look like:What is the motivation for the feature?
my main motivation is to make minimal changes to allow
--update-python-resource
work when some of the main package dependencies are not in PyPi. In my case, I have a main package (let's call it package A) which depends on a private package B and that package B depends on another private package C. A, B and C all also depend on packages in PyPi.How will the feature be relevant to at least 90% of Homebrew users?
It's unlikely that this would be useful to 90% of Homebrew users but it will be relevant to users who are using private packages.
What alternatives to the feature have been considered?
An alternative is to adjust
--update-python-resources
support non-PyPi sources for the pypi_info call – by e.g. taking a parameter or usingPIP_INDEX_URL
. While this sounds easy, the core problem with supporting this is that package sources are not required to support the JSON API, so one of the most popular private package sources (Artifactory) does not support the JSON api. This means an alternative is to:--update-python-resources
to accept a simple api endpoint as a parameter (or similar)--update-python-resources
to be ale to use the JSON API or the simple apithe work to support
--extra-packages
which are URLs simple seems a little easier and potentially more flexible.The text was updated successfully, but these errors were encountered: