-
Notifications
You must be signed in to change notification settings - Fork 178
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
[gha] Create release.yml #731
Conversation
I think we should not merge this and wait till we fix the issues with the perceval script at least. We can test the workflow once everything is ready. |
5c37e70
to
bea2249
Compare
The PR was blocked because of two main reasons as mentioned in the #731 (comment).
We have decided to change the script as an entry point as the script feature in poetry is not yet released and might take some more time. #741
I wrote a small tool vchrombie/peodd that exports the dev-dependencies from @sduenas, please review this when you are free and let me know your thoughts on the PR. |
This is already merged.
I think I didn't understand this part. I don't get why we need this when we create a package and we test it. The package should run with the dependencies that are already in the pyproject file. Can you explain this better? |
Hello @sduenas
Yes, this issue is now solved.
When we build the package using poetry the dev-dependencies are ignored. I think this how it was designed to be. The dev-dependencies don't really matter to the users and it makes sense to me.
grimoirelab-perceval/dist/perceval-0.17.4/setup.cfg
So, now we install the package and there will be a lot of errors while testing as the dependencies which are required to run the tests are not installed.
Poetry cannot explicitly install only the dev-dependencies. There was discussion around it and a couple of PRs are merged too but I think there is a lot of work still pending. Reference: python-poetry/poetry#2572 Another workaround could be exporting the dependencies. Again, Poetry cannot explicitly export only the dev-dependencies. There was a discussion around this too, but not sure if they would be interested to add this feature in the poetry export plugin. Reference: python-poetry/poetry#1441 So, to solve this issue, I wrote a small tool that exports the dev-dependencies to a Please let me know your thoughts. |
I understand what you mean but for the tests when the package is built the dev-dependencies / test-dependencies should be the ones that are in the pyproject.yml. We will install those dependencies from that file in the repository. For the CI tests - when someone submits a PR or something is merged in a branch - the dev-dependencies should the ones in What I was saying is to have the latest in a separate For the build workflow, we will create the package, install it, and install the dev dependencies from the Does it make sense to you? |
366a56b
to
427bdb1
Compare
This commit adds the release github action which generates a package, tests it with different python versions, publishes the release on GitHub, and uploads the packages to PyPI whenever a tag is generated and pushed. Signed-off-by: Venu Vardhan Reddy Tekula <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @sduenas for merging the PR.
We would be using this untill we have some workaround with poetry. |
This commit adds the release github action which generates a package, tests it with different python versions, publishes the release on GitHub, and uploads the packages to PyPI whenever a tag is generated and pushed.