Skip to content

Bug/#25 fix transitive dependencies required by generated api client #26

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

Conversation

ckunki
Copy link
Collaborator

@ckunki ckunki commented Apr 30, 2024

Closes #25

@kaklakariada kaklakariada merged commit 9ba088e into main Apr 30, 2024
7 checks passed
@kaklakariada kaklakariada deleted the bug/#25-Fix-transitive-dependencies-required-by-generated-API-client branch April 30, 2024 13:06

In order to create file `pyproject.toml`
* In file `noxfile.py` you need to replace mode `update` by `generate`
* Additionally in file `openapi_config.yml` you need to specify a non-existing top-level directory as `name` and a package that does not contain slashes, e.g.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"... a non-existing top-level directory as name ..." That refers to the project_name_override: "generate" in the yaml below. Could you make this more explicit?

The easiest way is to make openapi-python-client create a dedicated file `pyproject.toml` and copy the transitive dependencies from there to SAPIPY's file `pyproject.toml`.

In order to create file `pyproject.toml`
* In file `noxfile.py` you need to replace mode `update` by `generate`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That must refer to the this call

    session.run(
        "openapi-python-client",
        "update",
        "--url", f"{SAAS_HOST}/openapi.json",
        "--config", "openapi_config.yml",
        silent=silent,
    )

in the generate_api function. Should we be specific?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix transitive dependencies required by generated API client
3 participants