Replies: 3 comments 1 reply
-
Building from sources is necessary in order to do a local install. Please, note that the following instructions are not trivial, especially for most of the developers who are not experts in Python:
Maybe a person wants to just modify the code for themselves locally to try something out (this was the case of Costas). There are also other reasons one has to setup the project locally. It does not mean they intend to contribute. So the instructions should clearly be visible as others pointed out. |
Beta Was this translation helpful? Give feedback.
-
I like how this project does the split: |
Beta Was this translation helpful? Give feedback.
-
After a short meeting we agreed on doing these improvements:
|
Beta Was this translation helpful? Give feedback.
-
It was brought up by @david-natingga-frequenz in a meeting that the instructions on how to set up a local development environment was not visible enough.
Some points being made in the meeting
(in no particular order)
@david-natingga-frequenz suggested to separate this instruction in a different file and link to it in the
README.md
andCONTRIBUTING.md
files.Some people expected this to be more visible in the
README.md
file.@tiyash-basu-frequenz pointed out that he expects a "build from the sources" in the README.
@nhatcher-frequenz said it was unexpected to find these instructions in the
CONTRIBUTING.md
file as most of the time when he wants to set up a local development environment he doesn't do it necessarily to contribute to the project.@llucax showed the channels
README
as a potential improved way to structure theREADME.md
At some point some different concepts were mixed up. The instructions in the
CONTRIBUTING.md
files are to set up a local development environment, not building from sources.Some notes on why the current approach
Currently the instructions are in the
CONTRIBUTING.md
file because GitHub gives it a special meaning and will automatically show a link to that file when people want to contribute back, for example sending a PR or opening a issue.When it comes to documentation, we want to have something that it is useful and usable both in GitHub and the generated docs (using
mkdocs
).The "Local development" section include other information, not only how to create this environment, like how to run tests, how to generate the documentation, etc. It is not clear to me if people not wanting to contribute to the project need this information too or not.
Improvement suggestions
My personal opinion is that it would be nice to keep the instructions there, so people wanting to contribute to the project don't need to follow even more links.
I see 4 things that could be explained in the
README.md
/ user guide (docs/...
) /CONTRIBUTING.md
file related to this:pip
(should be in the README and user guide IMHO)pip
, justpip install <source directory>
, should probably be in the README and user guide, the contributing guide has that too but installing in editable mode for easier development testing).pip install build; python -m build
).We could make the current link to the contributing guide in the README more easy to read, so it is more obvious that those instructions are found there. Maybe add an explicit section "Setting up a local development environment" that points to that section of the
CONTRIBUTING.md
file.We could separate more clearly the
CONTRIBUTING.md
guide with sections for casual contributors (setting up a dev environment) and maintainers (release process).Beta Was this translation helpful? Give feedback.
All reactions