Deploy nlohmann-json package to platform-independent package repository #4157
mgovers
started this conversation in
Show and tell
Replies: 1 comment
|
Thanks for flagging the GitHub API rate-limit pain and for offering to transfer the PyPI repackaging over - broader, more reliable package availability benefits everyone pulling the library into automated builds. Also worth noting: discussion #4844 hit exactly the gap this addresses -- a third-party This reply was drafted by Claude Code on behalf of @nlohmann, as part of a review of open discussions. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
nlohmann-jsonpackage to PyPI as an independent repackaging of thenlohmann-jsonpackage in HomeBrew our organization created in this repo.nlohmann-jsonpackage in PyPI to the nlohmann organizationIssue
Platform- and environment-independently downloading the latest release in automation software is flaky.
Background
In our workflow, we would like to build a Python wrapper around a C library. If possible, we would like to do so within the Python package builder without having to care about any C++ package manager. The user should be able to install the Wheel of the Python package while only depending on other Python packages.
In our ecosystem, we enable the above, by downloading the latest released version of the
nlohmann-jsonpackage in automation and scripts via the GitHub API. However, the GitHub API has a rate limit that is very regularly exceeded, resulting in403errors (see for example this pipeline run). A workaround could be to use the direct HTTPS URL instead of the API, but that also has a rate limit, albeit a bit higher. It would be no more than a temporary fix.Proposed solution
Push the
nlohmann-jsonheader-only package to multiple package managers for platform- and environment-independent usage.Describe alternatives you have considered
nlohmann-jsonpackage in HomeBrew is not platform independentnlohmann_jsonpackage in conda-forge may not be available everywhere by design (e.g.: when building Python bindings for non-conda environments)nlohmann-jsonpackage in PyPI is an independent repackaging of thenlohmann-jsonpackage in HomeBrew our organization created in this repo. See also the top of this discussion.nlohmann-jsonpackage in PyPI to the nlohmann organizationAll reactions