pantry/projects/mypy-lang.org/package.yml

37 lines
804 B
YAML
Raw Normal View History

2023-04-22 23:19:43 +03:00
distributable:
2024-03-08 19:33:26 +03:00
url: https://github.com/python/mypy/archive/refs/tags/{{version.tag}}.tar.gz
2023-04-22 23:19:43 +03:00
strip-components: 1
versions:
github: python/mypy/tags
dependencies:
2024-03-08 19:33:26 +03:00
pkgx.sh: ^1
2023-04-22 23:19:43 +03:00
build:
2024-03-08 19:33:26 +03:00
dependencies:
python.org: '>=3<3.12'
2023-04-22 23:19:43 +03:00
env:
MYPY_USE_MYPYC: 1
MYPYC_OPT_LEVEL: 3
2024-03-08 19:33:26 +03:00
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} mypy
- run: |
ln -s mypy mypyc
ln -s mypy dmypy
working-directory: '{{prefix}}/bin'
2023-04-22 23:19:43 +03:00
provides:
- bin/mypy
- bin/mypyc
- bin/dmypy
test:
2024-03-08 19:33:26 +03:00
- mypy --version | grep {{version}}
- mypyc --version | grep {{version}}
- dmypy --version | grep {{version}}
- run: echo $(mypy $FIXTURE || true) | grep "Incompatible types in assignment"
fixture: 'a: str = 1'