diff --git a/py3-pygments.yaml b/py3-pygments.yaml index 14b4f88e101..893b0a1e1f6 100644 --- a/py3-pygments.yaml +++ b/py3-pygments.yaml @@ -1,7 +1,7 @@ package: name: py3-pygments - version: 2.14.0 - epoch: 2 + version: 2.15.0 + epoch: 0 description: Syntax highlighting package written in Python copyright: - license: BSD-2-Clause @@ -14,17 +14,22 @@ environment: - build-base - py3-setuptools - python3 + - py3-gpep517 + - py3-wheel pipeline: - uses: fetch with: - expected-sha256: b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297 + expected-sha256: f7e36cffc4c517fbc252861b9a6e4644ca0e5abadf9a113c72d1358ad09b9500 uri: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-${{package.version}}.tar.gz - - runs: python3 setup.py build + - runs: | + backend="$(python3 -m gpep517 get-backend)" + + python3 -m gpep517 build-wheel --wheel-dir dist --backend "$backend" --output-fd 1 - runs: | - python3 setup.py install --skip-build --root=${{targets.destdir}} + python3 -m installer -d "${{targets.destdir}}" dist/Pygments-*.whl mkdir -p ${{targets.destdir}}/usr/bin ln -s pygmentize ${{targets.destdir}}/usr/bin/pygmentize-3