-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
package.yml
Actions workflow to use pyproject.toml
for AUR
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -257,22 +257,22 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Set up Python 3.10 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
python-version: 3.12 | ||
- name: Download source distribution | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: sdist | ||
path: dist/ | ||
merge-multiple: true | ||
- name: Extract package version | ||
run: "echo PKGVER=$(python setup.py --version) >> $GITHUB_ENV" | ||
run: "echo PKGVER=$( grep 'version =' pyproject.toml | cut -d\\\" -f2 ) >> $GITHUB_ENV" | ||
- name: Compute SHA256 of source distribution | ||
run: "echo SHA256=$(sha256sum dist/pyhmmer-${{ env.PKGVER }}.tar.gz | cut -f1 -d' ') >> $GITHUB_ENV" | ||
- name: Generate PKGBUILD | ||
run: 'sed -e "s/%pkgver/${{ env.PKGVER }}/g" -e "s/%sha256sum/${{ env.SHA256 }}/g" pkg/aur/PKGBUILD.in > pkg/aur/PKGBUILD' | ||
run: 'sed -e "s/%pkgver/${{ github.ref }}/g" -e "s/%sha256sum/${{ env.SHA256 }}/g" pkg/aur/PKGBUILD.in > pkg/aur/PKGBUILD' | ||
- name: Update package | ||
uses: KSXGitHub/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters