Skip to content
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

Implement api.json generation in pulp-docs #59

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

pedro-psb
Copy link
Member

@pedro-psb pedro-psb commented Jun 21, 2024

About this PR:

  • Implement a module to generate all or a subset of {plugin}-api.json using pulpcore-manager openapi command.
  • Add basic test to this module
  • Add a workflow to run the pytest suite on CI

@pedro-psb pedro-psb force-pushed the gen-and-store-api-json-in-pulp-docs branch 11 times, most recently from e46a59e to 0f32b6d Compare June 27, 2024 22:45
* Add openapi generation module + tests
* Add pytest suite to CI. Only build sanity test was being run.
@pedro-psb pedro-psb force-pushed the gen-and-store-api-json-in-pulp-docs branch from 0f32b6d to 2be5c96 Compare June 27, 2024 23:20
@pedro-psb pedro-psb marked this pull request as ready for review June 28, 2024 13:41
@pedro-psb pedro-psb merged commit 9e8436d into pulp:main Jun 28, 2024
4 checks passed
install_cmd = ["pip", "install", "pulpcore"]
else:
url = f"git+{plugin.get_remote_url()}"
install_cmd = ["pip", "install", "pulpcore", url]
Copy link
Member

Choose a reason for hiding this comment

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

Each plugin depends on pulpcore. Why adding that here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Somehow I've ignored that.

if plugin.is_subpackage or plugin.name == "pulpcore":
if Path(self.venv_path).exists():
return
install_cmd = ["pip", "install", "pulpcore"]
Copy link
Member

Choose a reason for hiding this comment

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

We install the others from git why is it different for pulpcore?

Copy link
Member Author

Choose a reason for hiding this comment

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

It shouldnt be.

@pedro-psb pedro-psb deleted the gen-and-store-api-json-in-pulp-docs branch July 1, 2024 11:20
@pedro-psb
Copy link
Member Author

I'll send another PR with those fixes

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.

3 participants