diff --git a/py3-attrs.yaml b/py3-attrs.yaml index 9cfb7245049..a7ea0be8188 100644 --- a/py3-attrs.yaml +++ b/py3-attrs.yaml @@ -2,7 +2,7 @@ package: name: py3-attrs version: 23.2.0 - epoch: 0 + epoch: 1 description: Classes Without Boilerplate copyright: - license: MIT @@ -21,21 +21,39 @@ environment: - py3-hatchling - py3-pip - py3-setuptools + - py3-wheel - python3 - wolfi-base + environment: + # This is needed to work around the error "ValueError: ZIP does not support timestamps before 1980" + # The script + SOURCE_DATE_EPOCH: 315532800 pipeline: - - uses: fetch + - uses: git-checkout with: - expected-sha256: 935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30 - uri: https://files.pythonhosted.org/packages/source/a/attrs/attrs-${{package.version}}.tar.gz + repository: https://github.com/python-attrs/attrs.git + tag: ${{package.version}} + expected-commit: 9e443b18527dc96b194e92805fa751cbf8434ba9 + + - name: Fetch History (required by pip install) + runs: | + git fetch --unshallow - name: Python Install - runs: pip3 install . --root=${{targets.destdir}} + runs: export SOURCE_DATE_EPOCH=$(git log -1 --format=%ct || $SOURCE_DATE_EPOCH) && pip3 install . --root=${{targets.destdir}} - uses: strip update: enabled: true - release-monitor: - identifier: 15099 + ignore-regex-patterns: + - "^.*?post\\d" + github: + identifier: python-attrs/attrs + +test: + pipeline: + - uses: python/import + with: + import: attrs diff --git a/py3-cffi.yaml b/py3-cffi.yaml index 0ad0b1bd9a7..69a657750be 100644 --- a/py3-cffi.yaml +++ b/py3-cffi.yaml @@ -2,7 +2,7 @@ package: name: py3-cffi version: 1.16.0 - epoch: 2 + epoch: 3 description: Foreign Function Interface for Python calling C code. copyright: - license: MIT @@ -24,35 +24,27 @@ environment: - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - expected-sha256: bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0 - uri: https://files.pythonhosted.org/packages/source/c/cffi/cffi-${{package.version}}.tar.gz + repository: https://github.com/python-cffi/cffi + tag: v${{package.version}} + expected-commit: ba44abd69cf6f0f1cc90db34cd067275dc10fc71 - - name: Python Build - runs: python setup.py build + - uses: python/build - - name: Python Install - runs: python setup.py install --prefix=/usr --root="${{targets.destdir}}" + - uses: python/install - uses: strip update: enabled: true - release-monitor: - identifier: 5536 + github: + identifier: python-cffi/cffi + strip-prefix: v + tag-filter: v test: pipeline: - - runs: | - LIBRARY="cffi" - IMPORT_STATEMENT="import cffi" - - 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 + - uses: python/import + with: + import: cffi diff --git a/py3-charset-normalizer.yaml b/py3-charset-normalizer.yaml index 464893cc146..16895686cb9 100644 --- a/py3-charset-normalizer.yaml +++ b/py3-charset-normalizer.yaml @@ -1,10 +1,10 @@ package: name: py3-charset-normalizer version: 3.3.2 - epoch: 3 + epoch: 4 description: "offers you an alternative to Universal Charset Encoding Detector, also known as Chardet" copyright: - - license: Apache-2.0 + - license: MIT dependencies: runtime: - python3 @@ -20,10 +20,11 @@ environment: - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - uri: https://files.pythonhosted.org/packages/source/c/charset-normalizer/charset-normalizer-${{package.version}}.tar.gz - expected-sha256: f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5 + repository: https://github.com/jawah/charset_normalizer.git + tag: ${{package.version}} + expected-commit: 79dce4857914fead2ffe55eb787cad6d5cf14643 - runs: | sed -i '/cov-report/d' setup.cfg @@ -36,5 +37,11 @@ pipeline: update: enabled: true - release-monitor: - identifier: 55366 + github: + identifier: jawah/charset_normalizer + +test: + pipeline: + - uses: python/import + with: + import: charset_normalizer diff --git a/py3-idna.yaml b/py3-idna.yaml index 8877da4d0de..6548fe80bb5 100644 --- a/py3-idna.yaml +++ b/py3-idna.yaml @@ -2,7 +2,7 @@ package: name: py3-idna version: "3.7" - epoch: 1 + epoch: 2 description: Internationalized Domain Names in Applications (IDNA) copyright: - license: BSD-3-Clause @@ -21,10 +21,11 @@ environment: - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - expected-sha256: 028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc - uri: https://files.pythonhosted.org/packages/source/i/idna/idna-${{package.version}}.tar.gz + repository: https://github.com/kjd/idna.git + tag: v${{package.version}} + expected-commit: 1d365e17e10d72d0b7876316fc7b9ca0eebdd38d - name: Python Build uses: python/build-wheel @@ -33,5 +34,13 @@ pipeline: update: enabled: true - release-monitor: - identifier: 5487 + github: + identifier: kjd/idna + strip-prefix: v + tag-filter: v + +test: + pipeline: + - uses: python/import + with: + import: idna diff --git a/py3-multidict.yaml b/py3-multidict.yaml index ca8f8b2a147..144c9aaece7 100644 --- a/py3-multidict.yaml +++ b/py3-multidict.yaml @@ -2,7 +2,7 @@ package: name: py3-multidict version: 6.0.5 - epoch: 0 + epoch: 1 description: multidict implementation copyright: - license: Apache-2.0 @@ -21,20 +21,27 @@ environment: - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - expected-sha256: f7e301075edaf50500f0b341543c41194d8df3ae5caf4702f2095f3ca73dd8da - uri: https://files.pythonhosted.org/packages/source/m/multidict/multidict-${{package.version}}.tar.gz + repository: https://github.com/aio-libs/multidict.git + tag: v${{package.version}} + expected-commit: a9b281b2ef4ab25d95d6b268aa88c428e75c3696 - - name: Python Build - runs: python setup.py build + - uses: python/build - - name: Python Install - runs: python setup.py install --prefix=/usr --root="${{targets.destdir}}" + - uses: python/install - uses: strip update: enabled: true - release-monitor: - identifier: 11132 + github: + identifier: aio-libs/multidict + strip-prefix: v + tag-filter: v + +test: + pipeline: + - uses: python/import + with: + import: multidict diff --git a/py3-parsing.yaml b/py3-parsing.yaml index 91aead02200..b5dbb7d5580 100644 --- a/py3-parsing.yaml +++ b/py3-parsing.yaml @@ -1,8 +1,8 @@ package: name: py3-parsing version: 3.1.2 - epoch: 1 - description: "simple packaging tool for simple packages (core)" + epoch: 2 + description: "The pyparsing module is an alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions. " copyright: - license: MIT dependencies: @@ -22,10 +22,11 @@ environment: - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - uri: https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-${{package.version}}.tar.gz - expected-sha256: a1bac0ce561155ecc3ed78ca94d3c9378656ad4c94c1270de543f621420f94ad + repository: https://github.com/pyparsing/pyparsing.git + tag: ${{package.version}} + expected-commit: 7d4bda2743ebc04f68d2594bc4fffc70cd65848f - runs: | mkdir -p dist @@ -39,5 +40,12 @@ pipeline: update: enabled: true - release-monitor: - identifier: 3756 + github: + identifier: pyparsing/pyparsing + strip-prefix: pyparsing_ + +test: + pipeline: + - uses: python/import + with: + import: pyparsing diff --git a/py3-poetry.yaml b/py3-poetry.yaml index a1d88fdcdd7..037a14cfc94 100644 --- a/py3-poetry.yaml +++ b/py3-poetry.yaml @@ -2,7 +2,7 @@ package: name: py3-poetry version: 1.8.3 - epoch: 0 + epoch: 1 description: Python dependency management and packaging made easy. copyright: - license: MIT @@ -52,11 +52,6 @@ pipeline: tag: ${{package.version}} expected-commit: e5e4b0ce9d2f4a50f6feeacac3a7d995f0880979 - - uses: fetch - with: - expected-sha256: 67f4eb68288eab41e841cc71a00d26cf6bdda9533022d0189a145a34d0a35f48 - uri: https://files.pythonhosted.org/packages/source/p/poetry/poetry-${{package.version}}.tar.gz - - name: Python Build uses: python/build-wheel @@ -66,3 +61,9 @@ update: enabled: true github: identifier: python-poetry/poetry + +test: + pipeline: + - uses: python/import + with: + import: poetry diff --git a/py3-requests.yaml b/py3-requests.yaml index 3e772c546da..10cb4489542 100644 --- a/py3-requests.yaml +++ b/py3-requests.yaml @@ -2,7 +2,7 @@ package: name: py3-requests version: 2.32.3 - epoch: 0 + epoch: 1 description: Python HTTP for Humans. copyright: - license: Apache-2.0 @@ -25,20 +25,27 @@ environment: - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - expected-sha256: 55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760 - uri: https://files.pythonhosted.org/packages/source/r/requests/requests-${{package.version}}.tar.gz + repository: https://github.com/psf/requests.git + tag: v${{package.version}} + expected-commit: 0e322af87745eff34caffe4df68456ebc20d9068 - - name: Python Build - runs: python setup.py build + - uses: python/build - - name: Python Install - runs: python setup.py install --prefix=/usr --root="${{targets.destdir}}" + - uses: python/install - uses: strip update: enabled: true - release-monitor: - identifier: 4004 + github: + identifier: psf/requests + strip-prefix: v + tag-filter: v + +test: + pipeline: + - uses: python/import + with: + import: requests diff --git a/py3-tomli.yaml b/py3-tomli.yaml index b5c5f00af8e..d953ea21812 100644 --- a/py3-tomli.yaml +++ b/py3-tomli.yaml @@ -1,7 +1,7 @@ package: name: py3-tomli version: 2.0.1 - epoch: 5 + epoch: 6 description: "TOML parser" copyright: - license: MIT @@ -15,23 +15,29 @@ environment: - build-base - busybox - ca-certificates-bundle - - py3-installer + - py3-pip - python3 - wolfi-base pipeline: - - uses: fetch + - uses: git-checkout with: - uri: https://files.pythonhosted.org/packages/py3/t/tomli/tomli-${{package.version}}-py3-none-any.whl - expected-sha256: 939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc - extract: false + repository: https://github.com/hukkin/tomli.git + tag: ${{package.version}} + expected-commit: 36ef51d6a5a55e0eca077b58695390d041061bd4 - runs: | - python3 -m installer -d "${{targets.destdir}}" tomli-${{package.version}}-py3-none-any.whl + pip install --prefix=/usr --root="${{targets.contextdir}}" . - uses: strip update: enabled: true - release-monitor: - identifier: 207408 + github: + identifier: hukkin/tomli + +test: + pipeline: + - uses: python/import + with: + import: tomli