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

Cleanup #116

Conversation

james-d-mitchell
Copy link

Some cleanups, there's one fixme, which is that in the current line

dev/releases/update_website.py:200:

there's no function named extract_tarball in any of these scripts, so this line would fail if executed. I haven't tested these changes at all.

check=True, capture_output=True, text=True)
commit_date = subprocess.run(
["git", "show", "-s", "--format=%as"], check=True, capture_output=True, text=True
)
Copy link
Owner

Choose a reason for hiding this comment

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

I don't mind much, but personally I find the new version harder to read than the old :-)

res = subprocess.run(["git", "diff-index", "--quiet", "HEAD", "--"])
res = subprocess.run(
["git", "diff-index", "--quiet", "HEAD", "--"], check=False
)
Copy link
Owner

Choose a reason for hiding this comment

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

What are you using to format the code? I just tried black and it doesn't touch is_git_clean for me

Copy link
Author

Choose a reason for hiding this comment

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

I used black, sorry, I didn't really mean to format everything again. Note that here I also added check=False, which might make the difference.

fingolfin and others added 5 commits January 30, 2024 23:22
* dev/releases/utils.py: move GitHub specific code to new file so that
  one can use the utils code without having the "github" python package installed.

* Rename release_notes.readme.md -> README.release_notes.md

* use `from utils import error, notice`

* New script for generating release notes

* Tweak dev/releases/create_stable_branch.py
The 'tee' and subshell combo ate the exit code. Also get rid of the
'dev/log' subdirectory.
... so that one can use the utils code without having the "github"
python package installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants