Skip to content

Commit

Permalink
py3-beautifulsoup4
Browse files Browse the repository at this point in the history
  • Loading branch information
smoser committed Oct 26, 2024
1 parent d8ced43 commit 88eeb8d
Showing 1 changed file with 56 additions and 33 deletions.
89 changes: 56 additions & 33 deletions py3-beautifulsoup4.yaml
Original file line number Diff line number Diff line change
@@ -1,58 +1,81 @@
# Generated from https://pypi.org/project/beautifulsoup4/
package:
name: py3-beautifulsoup4
version: 4.12.3
epoch: 1
epoch: 2
description: Screen-scraping library
copyright:
- license: MIT
dependencies:
runtime:
- py3-soupsieve
- python-3
provider-priority: 0

vars:
pypi-package: beautifulsoup4
import: bs4

data:
- name: py-versions
items:
3.10: '310'
3.11: '311'
3.12: '312'
3.13: '300'

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-setuptools
- python-3
- wolfi-base
environment:
# This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980"
SOURCE_DATE_EPOCH: 315532800
- py3-supported-build-base
- py3-supported-hatchling

pipeline:
- uses: fetch
with:
expected-sha256: 74e3d1928edc070d21748185c46e3fb33490f22f52a3addee9aee0f4f7781051
uri: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-${{package.version}}.tar.gz

- name: Python Build
uses: python/build-wheel
subpackages:
- range: py-versions
name: py${{range.key}}-${{vars.pypi-package}}
description: python${{range.key}} version of ${{vars.pypi-package}}
dependencies:
provider-priority: ${{range.value}}
provides:
- py3-${{vars.pypi-package}}
runtime:
- py${{range.key}}-soupsieve
pipeline:
- uses: py/pip-build-install
with:
python: python${{range.key}}
- uses: strip
test:
pipeline:
- uses: python/import
with:
python: python${{range.key}}
imports: |
import ${{vars.import}}
from bs4 import BeautifulSoup
- uses: strip
- name: py3-supported-${{vars.pypi-package}}
description: meta package providing ${{vars.pypi-package}} for supported python versions.
dependencies:
runtime:
- py3.10-${{vars.pypi-package}}
- py3.11-${{vars.pypi-package}}
- py3.12-${{vars.pypi-package}}
- py3.13-${{vars.pypi-package}}

test:
pipeline:
- uses: python/import
with:
imports: |
import ${{vars.import}}
from bs4 import BeautifulSoup
update:
enabled: true
ignore-regex-patterns:
- 'b\d+'
- b\d+
release-monitor:
identifier: 3779

test:
pipeline:
- runs: |
LIBRARY="beautifulsoup4"
IMPORT_STATEMENT="from bs4 import BeautifulSoup"
if ! python -c "$IMPORT_STATEMENT"; then
echo "Failed to import library '$LIBRARY'."
python -c "$IMPORT_STATEMENT" 2>&1
exit 1
else
echo "Library '$LIBRARY' is installed and can be imported successfully."
exit 0
fi

0 comments on commit 88eeb8d

Please sign in to comment.