-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DISCUSS Rename master to main? #39577
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
Comments
I am +1 on renaming |
+1 |
NumPy, scikit-image, and NetworkX have also switched to using We also had three old PRs closed on NetworkX for the same reason (the PR contributor had already deleted their old branch). Also, I think the change caused Azure to rerun a bunch of checks, but the other CI systems didn't have any issues with the change. Other than that (and that wasn't a big deal) everything went smoothly and it was very easy to do. |
Thanks for that context @jarrodmillman ! |
@MarcoGorelli would you be interested to follow-up on this topic? (although the actual renaming might need to be done by an owner of the repo, I see the setting to rename the master branch) Apart from the actual renaming and fixes in CI, we will probably need a small set of guidelines on how you can update your local development environment we can post here and on the mailing list (which we can probably adapt from scikit-learn or numpy or so). |
Any progress on this? SciPy has changed their default branch to main now as well. I am happy to help. For example, I could make a PR to update your repo once the GH button to rename the default branch is pushed. I could also draft an email to send to your developer list. |
Sorry, forgot to get back to you on this - and yes, I think the actual renaming needs to be done by the owner |
+1 to making this change now. |
+1 to do this now as well I can do the actual rename if a PR is ready to update the repo. cc @pandas-dev/pandas-core @pandas-dev/pandas-triage |
(I also updated the top post with some instructions for contributors to do, after the rename) |
yeah ok here too
… On Jan 12, 2022, at 7:37 AM, Joris Van den Bossche ***@***.***> wrote:
(I also updated the top post with some instructions for contributors to do, after the rename)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are on a team that was mentioned.
|
I think it is a good idea. Syncing with the rest of the ecosystem keeps the mental load lower. |
You'll have to document what people need to change in terms of their local setups. For example, I have a local copy of |
@Dr-Irv I included some instructions in the top post, can you check if this is clear for you? (in addition, the github UI will also provide some helper pop-up if you visit the github page after the rename) |
OK, I think we have enough approvals here, so I just clicked the rename button. So then we can actually test in practice if the instructions for contributors above are correct / clear enough, and update them if needed. |
@jorisvandenbossche Note - if you visit the instructions on the main pandas repo that pop up, those don't work. You have to go to your personal repo to follow those instructions instead. Yes, I tried the ones you put above (although we need to publish them somewhere else??). It might be worthwhile to have people verify they have done things correctly by typing Also, is there a PR that updates the docs? The docs here: https://pandas.pydata.org/pandas-docs/stable/development/contributing.html should be updated ASAP (and published ASAP) so that new contributors don't get confused about how to get started and work with |
Clarified that a bit.
I ran that locally (after already done the rename), and get:
How do I know this is actually correct? (I don't know what to expect from those commands, so I also don't know if this actually verified that I did the rename correctly)
I already pinned the issue, and we can also send a notice with the instructions to the mailing list (other places to publish?). But let's first make sure the instructions are fully clear and complete. |
As best as I can tell, if you get a result that shows |
@jorisvandenbossche Can you update the wheel building repo too(MacPython/pandas-wheels)? I'm pretty sure you're breaking the nightly builds. Things that should be updated would be e.g. here |
merged via #45336 (ex comments here: #39577 (comment)) |
@jreback I know we closed this because of the PR that updated the docs, but is there a way we can push the doc update to the web site now so that any new contributors have the right docs available? |
We link to the docs for the latest released version, so currently 1.3.5. The update has been backported to 1.4 so will be published end of next week and stable link updated. |
Done: MacPython/pandas-wheels#172
This might already be done by changing https://github.com/pandas-dev/pandas/blob/main/codecov.yml, but in any case I also updated the settings in the codecov web page |
For the docs: the dev docs are already up to date: https://pandas.pydata.org/docs/dev/development/contributing.html (but indeed the "released" docs will be behind for some time) |
Is there a way to push the backported 1.3.5 changed docs to the web site as the "released" docs as an exception to the regular process? |
developers should be using the docs on the dev branch. https://pandas.pydata.org/pandas-docs/dev/ All links to contributing to pandas should link to the dev version of the docs. Please report any cases where this is not the case. |
I might be an exception to the norm, but my default branch on my fork is not main so that I can add github action workflows (such as bisecting regressions) so the instrcutions could be ?
|
If you go to https://pandas.pydata.org/docs/ and at the top click For me, those are the obvious places to look to get started with development with pandas. |
could consider changing those links. |
#45370 is a better solution |
It helps, but if the default value there is the current release, it's still not obvious that things change in between releases, so maybe we should also update https://pandas.pydata.org/docs/development/index.html#development to tell people to look at the most recent in-development version to know the latest and greatest development info. |
moving to 1.4.1 for the docs update. |
Some projects have a note at the top of a page when looking at older versions docs to refer to the stable docs instead (see eg https://numpy.org/doc/1.19/ or https://mne.tools/0.23/index.html. The code in mne to do this is some javascript and is located at https://github.com/mne-tools/mne-tools.github.io/blob/main/versionwarning.js). |
this is all done. |
Uh oh!
There was an error while loading. Please reload this page.
The default for new repositories is now "main", so renaming might make contributing less confusing to newcomers.
scikit-learn have made this move (see issue and PR), and from https://github.com/github/renaming it doesn't look too disruptive:
From the penultimate bullet point above, it seems that existing links in the docs wouldn't break even if we didn't update them, but I think the
part of the CI workflows would still need renaming.
For contributors
The GitHub interface will typically explain what you need to do as contributor to a project that changed the default name, but putting it here as well (copying the instructions from dask dask/dask#7199).
What you'll see
Once the name on github is changed, when you try to
git pull
you'll getYour configuration specifies to merge with the ref 'refs/heads/master' from the remote, but no such ref was fetched.
What you need to do
First: head to your fork and rename the default branch there. When visiting
https://github.com/<USERNAME>/pandas
, you will see a notice like this:where you can click this link (
https://github.com/<USERNAME>/pandas/settings/branches
), and then rename "master" to "main"Then, locally run:
The text was updated successfully, but these errors were encountered: