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

"master" branch renamed to "main" #8956

Closed
srittau opened this issue Oct 21, 2022 · 5 comments
Closed

"master" branch renamed to "main" #8956

srittau opened this issue Oct 21, 2022 · 5 comments
Labels
project: policy Organization of the typeshed project

Comments

@srittau
Copy link
Collaborator

srittau commented Oct 21, 2022

I don't want to go into the political reasons for renaming the branch, but in my opinion there is a clear push to standardize on the new name main. I believe there was also a SC decision that all projects under the python org should eventually change to that name, although we haven't been approached about this. But CPython has switched (and the stub_uploader always used main). Selfishly, I also renamed the branches in most of my projects, with typeshed being one of the last still using master.

@srittau srittau added the project: policy Organization of the typeshed project label Oct 21, 2022
@AlexWaygood
Copy link
Member

I support doing this.

@srittau
Copy link
Collaborator Author

srittau commented Oct 31, 2022

Cc @JelleZijlstra @hauntsaninja

If there are no objections, I would do the honors tomorrow (Tuesday CET).

@srittau
Copy link
Collaborator Author

srittau commented Oct 31, 2022

From what I can see, the following files need to be updated after the transition:

  • .github/workflows/mypy_primer.yml
  • README.md
  • scripts/stubsabot.py

@srittau
Copy link
Collaborator Author

srittau commented Oct 31, 2022

Also in the stub_uploader:

  • stub_uploader/build_wheel.py
  • stub_uploader/get_version.py

@srittau
Copy link
Collaborator Author

srittau commented Nov 1, 2022

I have renamed the branch now. Contributors working directly from the typeshed repository will need to run the following commands locally to update their local copy:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

@srittau srittau pinned this issue Nov 1, 2022
@srittau srittau changed the title Rename "master" branch to "main"? "master" branch renamed to "main" Nov 1, 2022
JelleZijlstra pushed a commit to python/mypy that referenced this issue Nov 1, 2022
There aren't really any big changes required over on mypy's side (I was
worried there would be more breakage, but I think mypy should be fine).
Cf. python/typeshed#8956.
@srittau srittau closed this as completed Nov 7, 2022
@srittau srittau unpinned this issue Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: policy Organization of the typeshed project
Projects
None yet
Development

No branches or pull requests

2 participants