Fix release notes (#2401)

This commit is contained in:
Freddy Boulton 2022-10-06 11:39:48 -07:00 committed by GitHub
parent 491d7f707c
commit 2acebe5490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 3 deletions

View File

@ -39,7 +39,7 @@ jobs:
python3 -m build -w
aws s3 cp dist/gradio-${{ env.GRADIO_VERSION }}-py3-none-any.whl s3://gradio-builds/${{ github.sha }}/
- name: Install Hub Client Library
run: pip install huggingface-hub==0.8.1
run: pip install huggingface-hub
- name: Set up Demos
run: python scripts/copy_demos.py https://gradio-builds.s3.amazonaws.com/${{ github.sha }}/gradio-${{ env.GRADIO_VERSION }}-py3-none-any.whl
- name: Upload kitchen sink to spaces

View File

@ -1,5 +1,29 @@
# Upcoming Release
## New Features:
No changes to highlight.
## Bug Fixes:
No changes to highlight.
## Documentation Changes:
No changes to highlight.
## Testing and Infrastructure Changes:
No changes to highlight.
## Breaking Changes:
No changes to highlight.
## Full Changelog:
No changes to highlight.
## Contributors Shoutout:
No changes to highlight.
# Version 3.4.1
## New Features:
### 1. See Past and Upcoming Changes in the Release History 👀

View File

@ -1,4 +1,3 @@
import shutil
import pathlib
import argparse
import textwrap
@ -36,7 +35,7 @@ def format_release_notes(latest_version: str):
upcoming = current_dir / "CHANGELOG.md"
with open(upcoming, "r") as latest:
lines = latest.readlines()
assert lines[0] == "# Upcoming Release \n"
assert "# Upcoming Release" in lines[0]
with open(upcoming, "w") as latest:
lines[0] = latest_version.replace("v", "# Version ") + "\n"
lines = textwrap.dedent(TEMPLATE).splitlines(keepends=True) + lines