Skip to content

DOC: Add short contributing guide #752

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tobiasdiez
Copy link
Contributor

Just to help people get started. Not sure if there are additional steps / other important things that should be mentioned.

@rgommers rgommers added the documentation Improvements or additions to documentation label May 27, 2025
Copy link
Contributor

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

Thanks @tobiasdiez. This seems like a good idea, since it clearly would have helped you. Having a CONTRIBUTING.md in the root of the repo is good since GitHub kinda made that a standard thing. I think it should just contain a link to a contributing page in the html docs though (https://mesonbuild.com/meson-python/).

Content wise, this seems in the right direction - I'd like to keep it short and simple. We should indeed point people at "here are the dependencies" and can give pip install -e .[test] as an example command. Note that that it's not needed to install meson-python to make things work; activating an env with dependencies and simply running pytest works out of the box (this is what I do). I'd like to keep it as unopinionated as possible, since tastes in dev tooling varies a lot.

@dnicolodi thoughts on content and putting it in the html docs?

@rgommers rgommers changed the title DOCS: Add short contributing guide DOC: Add short contributing guide May 27, 2025
@tobiasdiez
Copy link
Contributor Author

Having a CONTRIBUTING.md in the root of the repo is good since GitHub kinda made that a standard thing. I think it should just contain a link to a contributing page in the html docs though (https://mesonbuild.com/meson-python/).

I personally like the convenience of having it automatically rendered on github and in vscode. But that's no strong preference, a html page would work as well of course.

Copy link
Member

@dnicolodi dnicolodi left a comment

Choose a reason for hiding this comment

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

I'm not really convinced this adds anything really useful to the documentation: the steps are pretty much standard for any Python project, except installing ninja, which becomes obvious once someone tries to run the tests.

In any case, if others think that this is useful, this file needs to be in reST format as the other parts of the documentation, and needs to have a license header.

@@ -0,0 +1,19 @@
# Contributing
Copy link
Member

Choose a reason for hiding this comment

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

All other meson-python documentation is in reST format. This should be too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#supported-file-types only md files are supported (and is also confirmed by looking at some repose that do have contributing.rst file).

Copy link
Member

Choose a reason for hiding this comment

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

The only thing that the GitHub native support for CONTRIBUTING.md does is to show the content when a new pull request is opened. I argue that the proposed content is only relevant to help contributors in the stage of development that come before the point of preparing a PR, thus I see the GitHub native support for CONTRIBUTING.md only showing the added documentation in the wrong context. I much prefer having all the documentation in a uniform format and, eventually, being able to link it to the rendered HTML documentation.

@@ -0,0 +1,19 @@
# Contributing
Copy link
Member

Choose a reason for hiding this comment

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

This is missing a license header (this is the reason why the CI fails).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

Choose a reason for hiding this comment

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

Did you really write this in 2021 and waited till now to submit the PR? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants