Skip to content

Conversation

@LalatenduMohanty
Copy link
Member

@LalatenduMohanty LalatenduMohanty commented Jul 1, 2025

Fixes #652

Modified the pyproject.toml as it was causing teh hatch build command to fail
as multiple python versions were part of the default environment.

Also the matrix belongs on specific environments (like test) where multi-version
behavior is actually needed, not on the default environment which should be
simple and predictable.

$ hatch build

Unknown environment: default 

@LalatenduMohanty LalatenduMohanty requested a review from a team as a code owner July 1, 2025 19:46
@mergify mergify bot added the ci label Jul 1, 2025
pyproject.toml Outdated
[tool.hatch.envs.test]
features = ["test"]
# {args:tests} allows passing arguments to specify which tests to run
[[tool.hatch.envs.test.matrix]]
Copy link
Member

Choose a reason for hiding this comment

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

This change doesn't look related to the documentation update.

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 was causing the hatch build command to fail as multiple python versions are part of the default environment

$ hatch build

Unknown environment: default 

Copy link
Member

Choose a reason for hiding this comment

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

What happens when you run hatch run test:test now?

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 runs the test for each python version mentioned in test.matrix

Copy link
Member

Choose a reason for hiding this comment

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

What is it doing in our CI jobs, since those are python version-specific?

I suspect we want to remove the python version matrix from the default env, instead of adding it 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.

That is something crossed my mind as well. Let me check that and get back 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.

I have removed the python version matrix. We should be good to merge this now.

@LalatenduMohanty LalatenduMohanty force-pushed the build_docs branch 3 times, most recently from cd8fb05 to 1f45467 Compare July 6, 2025 10:46
Fixes python-wheel-build#652

Modified the pyproject.toml as it was causing teh hatch build command to fail
as multiple python versions were part of the default environment.

Also the matrix belongs on specific environments (like test) where multi-version
behavior is actually needed, not on the default environment which should be
simple and predictable.

Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
@mergify mergify bot merged commit 8206a77 into python-wheel-build:main Jul 7, 2025
108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation around how to build the project

2 participants