-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix publish workflow #6
Conversation
Seems like my update to poety.lock broke some of the linting and formatting checks, reverting. |
I remember that psycopg2 gives me a headache every time I install ixmp4 in a new environment... |
Played around a bit more and it seems that using |
The strange thing is that it seems all the other workflows are able to install the package just fine ... |
Looking good now https://test.pypi.org/project/ixmp4/0.2.0rc5/ |
🎉 |
I think I figured out what was happening yesterday and why I couldn't get the workflow to work with JRubics/poetry-publish. |
Just tested the install from testpypi, looks all good. The only reason that the publish workflow is failing here is because I pushed the |
But why would the push of a commit trigger an upload to test-pypi at all? Only the tags should have any impact on pypi and test-pypi. |
@danielhuppmann good question, just took a look and I cannot tell you, from looking at https://github.com/iiasa/ixmp4/actions/workflows/publish.yaml it looks like both of the runs for |
Regardless of what caused the double run though, the package did end up being uploaded correctly to test pypi. So I would say we can go ahead with the merge. |
I've been playing around with this for a little while now.
pg_config
command was not found which is apparently required for buildingpsycopg2
.I tried the following fixes:
libpq-dev
(didn't work and was already installed anyway)psycopg2
topsycopg2-binary
which is the pre-built version (apparently not recommended in production...)The third option worked though (https://github.com/iiasa/ixmp4/actions/runs/5821805161, failed because of the version number as it was not triggered from a tag) so that sure what to do...