Closed forsberg closed 1 year ago
Thank you for reporting an issue!
Pinging @jsenko, @EricWittmann to respond or triage.
Hi @forsberg , thanks for this report!
I'm on PTO till Mon, but I'm a bit surprised by the error you see, as the kiota-gen
script should copy locally the OpenApi.json before packaging the distribution.
Anyhow, either I'll have a look on Mon or, if you already see where the error is, I'll review your PR. The logic should be to copy the OpenApi.json locally if not already present and include it in the distribution.(maybe an inclusion/exclusion issue with poetry?)
Agree it's a bit mysterious, as when I try to repeat it locally, the .tar.gz
built has all the generated code + openapi.json
.
Yet, if you download the .tar.gz
listed under https://pypi.org/project/apicurioregistrysdk/#files, it's very small and only contains the 5 files listed above.
I would suspect some kind of difference in how a local checkout looks vs. how it looks when run in the CI/CD system.
Note: I get a proper .tar.gz when I run poetry build
, but CI seems to run poetry install
. Not sure it matters.
I just checked, and quite a few things are off in the package automatically published 😢 . Thanks for reporting, I'm on it.
@forsberg this published release is good to go: https://pypi.org/project/apicurioregistrysdk/2.4.5/#files
would you mind confirming?
Tried installing it in a python 3.10 virtualenv, works as a charm.
Thanks for the feedback as always @forsberg 👍
Description
Registry Version: 2.4.4
Environment
Linux, Python 3.10
Steps to Reproduce
pip install
apicurioregistrysdk`Inspecting the
.tar.gz
downloaded by pip:..the likely cause is that there simply is no openapi.json included.
Suggested solutions:
@andreaTP