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

MNT: Replace master with main #11379

Merged
merged 3 commits into from
Apr 7, 2021
Merged

MNT: Replace master with main #11379

merged 3 commits into from
Apr 7, 2021

Conversation

pllim
Copy link
Member

@pllim pllim commented Mar 9, 2021

This PR attempts to replace all mention of master to main in this repository. This should be reviewed and merged right after the maintainer has renamed the default branch.

This is an automated update made by the batchpr tool 🤖 - feel free to close if it doesn't look good! You can report issues to @pllim.

This is part of #11378

Fix #11381

TODO

@pllim
Copy link
Member Author

pllim commented Mar 9, 2021

This might have to wait for other repos in the org to catch up.

Also, I think we need to backport to avoid broken links... or we need to keep master as mirror to main.

@pllim pllim modified the milestones: v4.3, v4.0.5 Mar 9, 2021
@pep8speaks
Copy link

pep8speaks commented Mar 9, 2021

Hello @pllim 👋! It looks like you've made some changes in your pull request, so I've checked the code again for style.

There are no PEP8 style issues with this pull request - thanks! 🎉

Comment last updated at 2021-04-02 22:27:27 UTC

@pllim pllim added Refactoring and removed external PRs and issues related to external packages vendored with Astropy (astropy.extern) labels Mar 9, 2021
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

In some places, the master->main changes don't make much sense, but overall these changes only depend on the APE and ci-helpers repos, so we're in a pretty good shape.

astropy/config/tests/data/astropy.0.3.cfg Outdated Show resolved Hide resolved
astropy/config/configuration.py Outdated Show resolved Hide resolved
astropy/config/tests/data/astropy.0.3.windows.cfg Outdated Show resolved Hide resolved
astropy/coordinates/sky_coordinate.py Outdated Show resolved Hide resolved
astropy/extern/ply/lex.py Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
@@ -144,7 +144,7 @@ relatively unimportant, this converter might be the best option in
performance-critical scenarios.

`Here
<https://nbviewer.jupyter.org/github/astropy/astropy-notebooks/blob/master/io/ascii/conversion_profile.ipynb>`__
<https://nbviewer.jupyter.org/github/astropy/astropy-notebooks/blob/main/io/ascii/conversion_profile.ipynb>`__
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR, but are these notebooks are not tested and in fact don't work any more, so better to remove them from the docs altogether.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, let's continue discussion at #11381.

Copy link
Member

Choose a reason for hiding this comment

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

This will also require re-naming that repo's branch, but I'll just do that right now since it's incredibly low traffic.

Copy link
Member Author

Choose a reason for hiding this comment

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

Notebooks are removed. But if we want to keep that repo, should just rename the branch there anyway though that is out of scope of this PR now.

@eteq
Copy link
Member

eteq commented Mar 18, 2021

I'll try to give this a proper review soon, but one immediate thought: I think this arguably belongs in 4.2.x not 4.0.x - the LTS in principle shouldn't have anything to do with master, and only does via the dev docs. And while this is debatable, I think it's reasonable to leave the core content of the dev docs alone for the LTS given that this is almost like a "feature".

FWIW, I don't necessarily object to this, but if the backport is going to take significantly more effort for LTS I think it's not cirtical.

Regardless, I don't think it needs to block 4.0.5 so I'm going to re-milestone it to the next LTS.

@eteq eteq modified the milestones: v4.0.5, v4.0.6 Mar 18, 2021
Copy link
Member

@eteq eteq left a comment

Choose a reason for hiding this comment

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

LGTM!

But one procedural question: I should probably merge this at the same time as making the name change, right, so that there's a minimal time of being out-of-sync? If so were you thinking I should make the README update as a push to master, or did you want to add this here, @pllim?

@@ -5,7 +5,7 @@ Unified File Read/Write Interface

``astropy`` provides a unified interface for reading and writing data in
different formats. For many common cases this will streamline the process of
file I/O and reduce the need to master the separate details of all of the I/O
file I/O and reduce the need to learn the separate details of all of the I/O
Copy link
Member

Choose a reason for hiding this comment

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

You know, I'm not really sure this change is necessary since I think this is the one use of "master" that has a different etymology. But "learn" actually works fine here and sounds better to me anyway. Just not something we necessarily have to stay vigilant about in the future 🤷.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was a blind sed run and I thought "might as well"...

@@ -144,7 +144,7 @@ relatively unimportant, this converter might be the best option in
performance-critical scenarios.

`Here
<https://nbviewer.jupyter.org/github/astropy/astropy-notebooks/blob/master/io/ascii/conversion_profile.ipynb>`__
<https://nbviewer.jupyter.org/github/astropy/astropy-notebooks/blob/main/io/ascii/conversion_profile.ipynb>`__
Copy link
Member

Choose a reason for hiding this comment

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

This will also require re-naming that repo's branch, but I'll just do that right now since it's incredibly low traffic.

@pllim
Copy link
Member Author

pllim commented Mar 18, 2021

should probably merge this at the same time as making the name change, right, so that there's a minimal time of being out-of-sync?

Ideally, this should be merged soon after you change the default branch. Given CI was failing, might want to retrigger to make sure I didn't break anything after name change but before merge.

should make the README update as a push to master, or did you want to add this here

I already updated the README as part of this PR. Or are you referring to something else?

@eteq
Copy link
Member

eteq commented Mar 18, 2021

I already updated the README as part of this PR. Or are you referring to something else?

Oh, sorry, @pllim, I meant specifically the README update along the lines of here or similar: astropy/astropy-project#151 (comment) - you did indeed fix the to-be-broken links, I just meant the informational addition.

@pllim
Copy link
Member Author

pllim commented Mar 18, 2021

I meant specifically the README update along the lines of here

Oh. Feel free to push to this PR or as follow-up PR. The discussions were quiet long and I forgot what the conclusion was. 😅

@pllim
Copy link
Member Author

pllim commented Mar 19, 2021

@eteq , this should be ready, except for the remaining README change that you mentioned in #11379 (comment) , which can be handled separately.

@taldcroft
Copy link
Member

@pllim - the changes related to the io.ascii notebooks look fine, thanks!

Revert out-of-scope changes.

Replace some words in narrative.

Apply suggestions from bsipocz

DOC: Remove mentioned of astropy-notebooks

Co-authored-by: Brigitta Sipőcz <b.sipocz@gmail.com>
@pllim
Copy link
Member Author

pllim commented Apr 2, 2021

Update: Originally, I had a change log entry (Renamed default branch from ``master`` to ``main``. [#11379]) under other changes but now I am wondering if the entry is still needed and if so, how to do it with towncrier.

@eteq
Copy link
Member

eteq commented Apr 2, 2021

changelog updated in e174a67 following the new towncrier method

@pllim pllim mentioned this pull request Apr 5, 2021
@eteq
Copy link
Member

eteq commented Apr 7, 2021

I'm doing it!

@eteq eteq merged commit aef38c7 into astropy:master Apr 7, 2021
@pllim pllim deleted the replace-with-main branch April 7, 2021 20:17
astrofrog pushed a commit that referenced this pull request Aug 16, 2021
astrofrog added a commit that referenced this pull request Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Stop linking to astropy-notebooks
6 participants