Skip to content

Use the "version" field in the OpenAPI doc as the version of the generated library #134

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

Closed
emann opened this issue Aug 5, 2020 · 0 comments · Fixed by #135
Closed

Use the "version" field in the OpenAPI doc as the version of the generated library #134

emann opened this issue Aug 5, 2020 · 0 comments · Fixed by #135
Labels
✨ enhancement New feature or improvement

Comments

@emann
Copy link
Collaborator

emann commented Aug 5, 2020

Is your feature request related to a problem? Please describe.
The template for the pyproject.toml has the version hardcoded as 0.1.0, which causes conflicts if the generated library is uploaded to a package repository that doesn't allow duplicate uploads for the same version.

Describe the solution you'd like
The GeneratorData class already has the version stored, just need to store it and pass it to the call to pyproject_template.render in _Project._build_metadata

@emann emann added the ✨ enhancement New feature or improvement label Aug 5, 2020
@emann emann changed the title Use the "version" field in the OpenAPI spec as the version of the generated library Use the "version" field in the OpenAPI doc as the version of the generated library Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant