pantry/projects/pygments.org/package.yml

34 lines
724 B
YAML
Raw Normal View History

distributable:
url: https://github.com/pygments/pygments/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: pygments/pygments/tags
dependencies:
2023-10-03 18:23:56 +03:00
python.org: ~3.11
build:
2023-11-18 23:33:32 +03:00
script:
- python-venv.sh {{prefix}}/bin/pygmentize
# Rename Pygments to pygments because python
# and macOS can't agree on case sensitivity.
- run: |
if [ -d Pygments ]; then
mv Pygments foo
mv foo pygments
fi
working-directory: ${{prefix}}/venv/lib/python3.11/site-packages
if: darwin
provides:
- bin/pygmentize
test:
fixture: |
import os
print(os.getcwd())
script: |
mv $FIXTURE test.py
pygmentize -f html -o test.html test.py