Deploy nlohmann-json package to platform-independent package repository #4157
mgovers
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
nlohmann-json
package to PyPI as an independent repackaging of thenlohmann-json
package in HomeBrew our organization created in this repo.nlohmann-json
package 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-json
package in automation and scripts via the GitHub API. However, the GitHub API has a rate limit that is very regularly exceeded, resulting in403
errors (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-json
header-only package to multiple package managers for platform- and environment-independent usage.Describe alternatives you have considered
nlohmann-json
package in HomeBrew is not platform independentnlohmann_json
package in conda-forge may not be available everywhere by design (e.g.: when building Python bindings for non-conda environments)nlohmann-json
package in PyPI is an independent repackaging of thenlohmann-json
package in HomeBrew our organization created in this repo. See also the top of this discussion.nlohmann-json
package in PyPI to the nlohmann organizationBeta Was this translation helpful? Give feedback.
All reactions