Skip to content

Commit

Permalink
Update package.yml Actions workflow to use pyproject.toml for AUR
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Oct 12, 2024
1 parent 8c6ecd1 commit df78a4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pkg/aur/PKGBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pkgdesc="Cython bindings and Python interface to HMMER3"
url="https://github.com/althonos/pyhmmer"
arch=('i686' 'pentium4' 'x86_64' 'armv7h' 'aarch64')
license=("MIT")
makedepends=('python-setuptools' 'cython' 'python-build' 'python-installer')
makedepends=('cython' 'python-build' 'python-installer')
depends=('python' 'python-psutil')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=(%sha256sum)
Expand Down

0 comments on commit df78a4d

Please sign in to comment.