Skip to content

Conversation

@wagnerluis1982
Copy link
Contributor

@wagnerluis1982 wagnerluis1982 commented Oct 2, 2022

Pull Request Check List

tests/masonry/builders/test_editable_builder.py

  • Checks if content of all readme files are printed to the metadata

tests/console/commands/test_build.py (new file)

  • Checks sdist file exists and is not empty
  • Checks wheel file exists and is not empty
  • Checks inside sdist tar file if contains all readme files

Closes: #6633
Depends on: python-poetry/poetry-core#551

  • This PR only add tests

@wagnerluis1982
Copy link
Contributor Author

Question to maintainers, does poetry have any integration test for poetry build command? I was not able to found any.

@radoering
Copy link
Member

Probably not. (It should be located at tests/console/commands.)

Since the test in this PR is passing even without the poetry-core fix, I assume an integration test is required to provoke the issue?

@wagnerluis1982
Copy link
Contributor Author

@radoering Exactly, that's why I was looking for an integration test for build.

I will create a new test module then.

@wagnerluis1982 wagnerluis1982 marked this pull request as ready for review October 3, 2022 22:23
@wagnerluis1982
Copy link
Contributor Author

Just added a test to verify poetry build command.

NOTE: the pipeline is going to fail until python-poetry/poetry-core#486 is merged.

@wagnerluis1982
Copy link
Contributor Author

Hi @radoering, after you merged python-poetry/poetry-core#486, I expected the tests to not fail (I just rebased after master).

I expected the pipeline to use latest poetry-core version. Does that happen?

@radoering
Copy link
Member

No, it just uses the locked version of poetry-core (no magic). Normally, we just update the locked version after a core release.

@wagnerluis1982
Copy link
Contributor Author

No, it just uses the locked version of poetry-core (no magic). Normally, we just update the locked version after a core release.

No magic 🙁

In that case, it would be advisable to reopen issue #6633 to signalize users, IMHO.

@radoering radoering mentioned this pull request Jan 15, 2023
@wagnerluis1982
Copy link
Contributor Author

@Secrus the tests here are going to fail while next poetry-core isn't released.

@wagnerluis1982
Copy link
Contributor Author

@radoering when you have a chance, please check this.

Now that poetry-core 1.5.0 is locked, the tests are passing.

Copy link
Member

@radoering radoering left a comment

Choose a reason for hiding this comment

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

Just some minor nitpicks.

@radoering radoering merged commit 98568d4 into python-poetry:master Feb 3, 2023
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
@wagnerluis1982 wagnerluis1982 deleted the add-tests-pyproject-with-multiple-readme-files branch May 17, 2025 10:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

poetry build fails sdist build when using multiple readme entries

2 participants