-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Rework the development documentation #5526
Conversation
docs/development/getting-started.rst
Outdated
|
||
The built documentation can be found in the ``docs/build`` folder. | ||
|
||
.. _`open an issue`: https://github.com/pypa/pip/issues/new?title=Truouble+with+pip+development+environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whee. Typo!
docs/development/index.rst
Outdated
sections below will help you get started with development, testing, and | ||
documentation. | ||
|
||
Please contribute issues, submit bug reports, file feature requests, and help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section, as a whole, could possibly be worded better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I think we should mention here is that we support Python 2.7 and 3, and we support Windows and Unix. Contributions must consider all of those cases. While a contribution from someone who only works on Python 2.7 and Unix is appreciated, it's not going to progress unless someone puts in the work to consider Python 3 and Windows, and I think we need to set contributors' expectations here. More generally, contributions need to go beyond "works for me". As a team, we don't have the manpower to take incomplete contributions and complete them ourselves (although we will happily help the contributor to do so with advice and suggestions).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is probably something that should be clarified in the contributing page, in the "Submitting Pull Requests" section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the point of setting contributors' expectations early, totally agree. I think this should mention that pip is a volunteer maintained project.
We could also link from the PR template to the "Submitting Pull Requests" section (while also talking about NEWS fragments).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming back around to this, I don't even think this paragraph is even needed here. We don't need to list various ways to interact with the project on GitHub in the "development" documentation.
------------- | ||
|
||
pip uses the :pypi:`pytest` test framework, :pypi:`mock` and :pypi:`pretend` | ||
for testing. These are automatically installed by tox for running the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also say "and various pytest plugins" here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO no, we don't need to complicate things by adding that much detail.
@pypa/pip-committers I'm on the fence as to whether this should get an entry in the NEWS file. On the one hand, it doesn't concern most users. On the other hand, we have a dedicated processes section where this could go and get some visibility. |
------------- | ||
|
||
pip uses the :pypi:`pytest` test framework, :pypi:`mock` and :pypi:`pretend` | ||
for testing. These are automatically installed by tox for running the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO no, we don't need to complicate things by adding that much detail.
docs/development/index.rst
Outdated
sections below will help you get started with development, testing, and | ||
documentation. | ||
|
||
Please contribute issues, submit bug reports, file feature requests, and help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I think we should mention here is that we support Python 2.7 and 3, and we support Windows and Unix. Contributions must consider all of those cases. While a contribution from someone who only works on Python 2.7 and Unix is appreciated, it's not going to progress unless someone puts in the work to consider Python 3 and Windows, and I think we need to set contributors' expectations here. More generally, contributions need to go beyond "works for me". As a team, we don't have the manpower to take incomplete contributions and complete them ourselves (although we will happily help the contributor to do so with advice and suggestions).
(removed the label so it's harder to accidentally merge) |
- Link to compatibility requirements and require compliance - Move licensing details to come earlier - Reword text on cosmetic changes
No issues. Thanks for pinging others who might be able to provide feedback here. Any and all feedback is welcome. :) |
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
This looks great! I'd say go ahead and merge this and iterate if needed. |
Thanks for taking a look @theacodes! ^>^ I was thinking about removing the "blocking" that the linking to "Writing a NEWS entry" involves here. I guess just adding a temporary? section/note saying that has been moved to a different location should suffice for now. :) |
I'll go ahead and merge this since this is a (big!) improvement over status quo and as @theacodes suggests, we can iterate on it. :) |
The idea here is to make the development processes a bit more approachable to potential contributors by clearly documenting how to work on the project and grouping other information into separate pages.
This PR does so by break up the existing development documentation into 4 parts, with the following structure/changes:
@brainwane If you could take a look at this and provide some feedback, that'd be awesome. :)
@dstufft The bots would need to be updated for this. This is basically blocked until we figure out a suitable way to change them to link to the new location. IIUC, the URLs would change due to this PR and break any existing links.
As per my understanding, we'd need to update these links:
I would love to feedback on this from existing contributors and obviously @pypa/pip-committers.