diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 349332f..554e52c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,67 +126,3 @@ jobs: tags: | ghcr.io/${{ github.repository }}:${{ steps.version.outputs.version }} ghcr.io/${{ github.repository }}:latest - - # ── 6. Bioconda PR (final releases only — no "rc" in tag) ──────────── - bioconda-pr: - needs: publish-pypi - runs-on: ubuntu-latest - if: ${{ !contains(github.ref_name, 'rc') }} # skip RC tags - steps: - - name: Get version from tag - run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV - - - name: Fetch SHA256 from PyPI - run: | - SHA256=$(curl -s https://pypi.org/pypi/afquery/${VERSION}/json \ - | jq -r '.urls[] | select(.packagetype=="sdist") | .digests.sha256') - echo "SHA256=${SHA256}" >> $GITHUB_ENV - - - name: Get fork owner - env: - GH_TOKEN: ${{ secrets.GH_PAT }} - run: echo "FORK_USER=$(gh api user --jq .login)" >> $GITHUB_ENV - - - name: Sync fork with upstream - env: - GH_TOKEN: ${{ secrets.GH_PAT }} - run: gh repo sync ${FORK_USER}/bioconda-recipes --source bioconda/bioconda-recipes --branch master - - - name: Checkout afquery repo - uses: actions/checkout@v4 - with: - path: afquery-repo - - - name: Checkout fork of bioconda-recipes - uses: actions/checkout@v4 - with: - repository: ${{ env.FORK_USER }}/bioconda-recipes - token: ${{ secrets.GH_PAT }} - path: bioconda-recipes - - - name: Update recipe - working-directory: bioconda-recipes - run: | - mkdir -p recipes/afquery - cp ../afquery-repo/recipes/afquery/meta.yaml recipes/afquery/meta.yaml - sed -i "s/^{% set version = .* %}/{% set version = \"${VERSION}\" %}/" recipes/afquery/meta.yaml - sed -i "s/sha256: .*/sha256: ${SHA256}/" recipes/afquery/meta.yaml - sed -i "s/^ number: .*/ number: 0/" recipes/afquery/meta.yaml - - - name: Create pull request - working-directory: bioconda-recipes - env: - GH_TOKEN: ${{ secrets.GH_PAT }} - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git checkout -b afquery-${VERSION} - git add recipes/afquery/meta.yaml - git commit -m "Update afquery to ${VERSION}" - git push origin afquery-${VERSION} - gh pr create \ - --repo bioconda/bioconda-recipes \ - --title "Update afquery to ${VERSION}" \ - --body "Automated version bump from https://github.com/dlopez-bioinfo/afquery/releases/tag/v${VERSION}" \ - --head "${FORK_USER}:afquery-${VERSION}" \ - --base master diff --git a/recipes/afquery/meta.yaml b/recipes/afquery/meta.yaml index 25c1972..e6997d3 100644 --- a/recipes/afquery/meta.yaml +++ b/recipes/afquery/meta.yaml @@ -1,13 +1,13 @@ {% set name = "afquery" %} -{% set version = "0.1.0" %} +{% set version = "0.2.2" %} package: name: {{ name|lower }} version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz - sha256: PLACEHOLDER + url: https://files.pythonhosted.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: 28ddc9afe5260ecdefab83679e0633684980666c49812215d1233ce3bae4fb7f build: noarch: python @@ -16,14 +16,7 @@ build: entry_points: - afquery = afquery.cli:cli run_exports: - - python >=3.10 - - pyroaring >=0.4.8 - - pyarrow >=14.0 - - duckdb >=0.10 - - click >=8.1 - - cyvcf2 >=0.30 - - tqdm >=4.60 - - pyranges >=0.1.2,<0.2 + - {{ pin_subpackage("afquery", max_pin="x.x") }} requirements: host: @@ -50,6 +43,7 @@ test: about: home: https://github.com/dlopez-bioinfo/afquery license: MIT + license_file: LICENSE summary: Genomic allele frequency query engine with bitmap-encoded genotypes extra: