From f907bf40d7716ed30f6d15d198cde99afabfe700 Mon Sep 17 00:00:00 2001 From: Ville Aikas Date: Tue, 26 Dec 2023 14:10:59 -0800 Subject: [PATCH] Add py3 antlr4 python runtime. Signed-off-by: Ville Aikas --- py3-antlr4-python3-runtime.yaml | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 py3-antlr4-python3-runtime.yaml diff --git a/py3-antlr4-python3-runtime.yaml b/py3-antlr4-python3-runtime.yaml new file mode 100644 index 00000000000..806e1bc2141 --- /dev/null +++ b/py3-antlr4-python3-runtime.yaml @@ -0,0 +1,46 @@ +package: + name: py3-antlr4-python3-runtime + version: 4.13.1 + epoch: 0 + description: ANTLR runtime for Python 3 + copyright: + - license: BSD-3 + dependencies: + runtime: + - python-3 + +environment: + contents: + packages: + - build-base + - busybox + - ca-certificates-bundle + - py3-gpep517 + - py3-pip + - py3-setuptools + - py3-wheel + - wolfi-base + +pipeline: + - uses: git-checkout + with: + expected-commit: 7ed420ff2c78d62883875c442d75f32e73bc86c8 + repository: https://github.com/antlr/antlr4 + tag: ${{package.version}} + + - runs: | + cd runtime/Python3 + export SETUPTOOLS_SCM_PRETEND_VERSION=${{package.version}} + python3 -m pip install -U poetry + python3 -m gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 + python3 -m installer -d "${{targets.destdir}}" \ + dist/*.whl + + - uses: strip + +update: + enabled: true + github: + identifier: antlr/antlr4