Skip to content
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

build: Migrate pytest configuration to pyproject.toml. #1588

Merged

Conversation

neiljp
Copy link
Contributor

@neiljp neiljp commented Mar 20, 2023

This works locally for me, but not all of the tox suite would run since the .pip files won't reliably install (yet).

However, the pytest suite runs locally on 3.9 just fine, so pushing this to see if it runs the CI test suite OK.

pyproject.toml Outdated
@@ -28,6 +28,33 @@ exclude = """(?x)(
| ^tests/balance_xdist_plugin\\.py$ # not part of our test suite.
)"""

[tool.pytest.ini_options]
minversion = "6.0"
Copy link
Owner

Choose a reason for hiding this comment

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

What does this do? It wasn't in the setup.cfg.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure we need this setting, since we pin the version of pytest. I think it would be better to leave it out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, when I migrated our version, I included it to be on the safe side, but I agree this is likely ok to leave out.

@neiljp
Copy link
Contributor Author

neiljp commented Mar 20, 2023

Re the balanced_clumps section more generally, I wasn't sure how to know if the plugin is definitely working and configured, if that's what that section is about. Since I'm unsure if the test system would fail to run, or just not balance cleanly (using xdist?) if this config was not found in setup.cfg, but was present in pyproject.toml.

@neiljp neiljp force-pushed the 2023-03-20-setup.cfg-into-pyproject.toml branch from efe5df2 to 44d7ca9 Compare March 20, 2023 20:33
@nedbat nedbat merged commit 67b9e6c into nedbat:master Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants