Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add recipe for basedpyright #28367

Merged
merged 11 commits into from
Nov 29, 2024
59 changes: 59 additions & 0 deletions recipes/basedpyright/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{% set name = "basedpyright" %}
{% set version = "1.22.0" %}


package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/basedpyright-{{ version }}.tar.gz
sha256: 457e97ac4c3f694b900453d3f8824af36d17b9cef3d76c623e665dd4c7872d9c

build:
entry_points:
- basedpyright = basedpyright.pyright:main
- basedpyright-langserver = basedpyright.langserver:main
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
host:
- python {{ python_min }}
- pdm-backend >=2.3.0
- nodejs-wheel >=20.13.1
- typing_extensions >=4.12.2
- docify >=1.0.0
- pip
run:
- python >={{ python_min }}
- nodejs-wheel >=20.13.1

test:
imports:
- basedpyright
commands:
- pip check
- basedpyright --help
requires:
- python {{ python_min }}
- pip

about:
home: https://github.com/DetachHead/basedpyright
summary: static type checking for Python (but based)
license: MIT AND Apache-2.0
license_file:
- LICENSE.txt
- basedpyright/dist/typeshed-fallback/LICENSE
- docstubs/LICENSE
- packages/pyright/LICENSE.txt
- packages/pyright/dist/typeshed-fallback/LICENSE
- packages/pyright-internal/node_modules/@types/lodash/LICENSE
- packages/pyright-internal/typeshed-fallback/LICENSE

extra:
recipe-maintainers:
- lucascolley
- DetachHead