Skip to content

Commit

Permalink
Merge pull request #4154 from vivodi/inline
Browse files Browse the repository at this point in the history
When using inline script metadata, even if uv run is used in a project, the project's dependencies will be ignored. The --no-project flag is not required.
  • Loading branch information
gazpachoking authored Jan 12, 2025
2 parents c6d06f5 + 37e000d commit e37fdf2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Update the Changelog
run: |
set -x
uv run --no-project update-changelog.py wiki/ChangeLog.md
uv run update-changelog.py wiki/ChangeLog.md
cd wiki
git add ChangeLog.md
if ! git diff --cached --exit-code; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
if: env.release_tag
run: |
echo 'CHANGELOG_BODY<<EOF' >> $GITHUB_ENV
uv run --no-project dev_tools.py get-changelog ${{ env.release_tag }} >> $GITHUB_ENV
uv run dev_tools.py get-changelog ${{ env.release_tag }} >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Create GitHub Release
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1
Expand Down
9 changes: 5 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ fi
if git log --skip 1 origin/master..origin/develop|grep '^commit '; then

# Bump to new release version
uv run --no-project dev_tools.py bump-version release
export VERSION=$(uv run --no-project dev_tools.py version)
uv run dev_tools.py bump-version release
VERSION=$(uv run dev_tools.py version)
export VERSION
uv lock --upgrade-package flexget

# Build and upload to pypi.
Expand All @@ -38,11 +39,11 @@ if git log --skip 1 origin/master..origin/develop|grep '^commit '; then
echo "release_tag=v${VERSION}" >> $GITHUB_ENV

# Bump to new dev version, then commit again
uv run --no-project dev_tools.py bump-version dev
uv run dev_tools.py bump-version dev
uv lock --upgrade-package flexget
git add flexget/_version.py
git add uv.lock
git commit -m "Prepare v$(uv run --no-project dev_tools.py version)"
git commit -m "Prepare v$(uv run dev_tools.py version)"

# master branch should be at the release we tagged
git branch -f master v${VERSION}
Expand Down

0 comments on commit e37fdf2

Please sign in to comment.