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 pyright-node output to make package self-contained #184

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
772e1d4
init again
moritzwilksch Oct 25, 2024
7268444
bump version
moritzwilksch Oct 25, 2024
c5ebb20
MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.43.0, and co…
moritzwilksch Oct 25, 2024
49f5211
build env
moritzwilksch Oct 25, 2024
cf064a6
skip `ppc64le`
moritzwilksch Oct 25, 2024
24a58f7
skip
moritzwilksch Oct 25, 2024
f32a507
build.bat?
moritzwilksch Oct 25, 2024
5d9c4df
prevent symlinks?
moritzwilksch Oct 28, 2024
f9b6123
cross compile with right python
moritzwilksch Oct 28, 2024
2c6f716
now?
moritzwilksch Oct 28, 2024
556a1ee
debug
moritzwilksch Oct 28, 2024
a54966f
noch mehr
moritzwilksch Oct 28, 2024
1d3df12
more settings!!!!
moritzwilksch Oct 28, 2024
6866665
lint + set
moritzwilksch Oct 28, 2024
ae4ce74
err
moritzwilksch Oct 28, 2024
dca1f0a
wip
moritzwilksch Oct 28, 2024
99e1b72
rename sync
moritzwilksch Oct 30, 2024
2927c81
fixes
moritzwilksch Nov 6, 2024
447d474
win scripts
moritzwilksch Nov 6, 2024
f39f494
wip
moritzwilksch Nov 6, 2024
300eb0f
fix
moritzwilksch Nov 6, 2024
6833ed6
comment
moritzwilksch Nov 6, 2024
7815a30
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Remov…
conda-forge-admin Nov 5, 2024
adcf925
MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.44.0, and co…
regro-cf-autotick-bot Nov 6, 2024
55d06b2
MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.44.0, and co…
moritzwilksch Nov 6, 2024
26680aa
Merge remote-tracking branch 'upstream/main' into rattlerv4
moritzwilksch Nov 6, 2024
84126dd
empty
moritzwilksch Nov 10, 2024
d02f2c1
cleanup
moritzwilksch Nov 11, 2024
e6e9b84
buildno, lint
moritzwilksch Nov 12, 2024
9340325
nomore noarch, fix cache dir location
moritzwilksch Nov 12, 2024
eb6acb7
cleanup, bump version
moritzwilksch Nov 12, 2024
3642dfa
MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.44.3, and co…
moritzwilksch Nov 12, 2024
5ff3a06
checksum
moritzwilksch Nov 12, 2024
d46f1fd
MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.44.3, and co…
moritzwilksch Nov 12, 2024
96dc70c
skip python `ppc64le`
moritzwilksch Nov 12, 2024
d086b92
pin exact
moritzwilksch Nov 14, 2024
6e1351d
bump version
moritzwilksch Nov 14, 2024
203480f
rm `ppcle64`
moritzwilksch Nov 14, 2024
088a3bc
Merge remote-tracking branch 'upstream/main' into rattlerv4
moritzwilksch Nov 14, 2024
2317434
rm `ppc64le` v2
moritzwilksch Nov 14, 2024
000fc72
MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.44.3, and co…
moritzwilksch Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 10 additions & 14 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 9 additions & 17 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ github:
os_version:
linux_64: cos7
test: native
conda_build_tool: rattler-build
17 changes: 17 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
set -euxo pipefail

$PYTHON -m pip install .

export PYRIGHT_PYTHON_CACHE_DIR="$PREFIX/lib"
pyright-langserver --node-ipc

mkdir -p $PREFIX/etc/conda/activate.d
echo 'export PYRIGHT_PYTHON_CACHE_DIR="$PREFIX/lib"' > $PREFIX/etc/conda/activate.d/10-set-npm-pyright-location.sh

pushd $PYRIGHT_PYTHON_CACHE_DIR/pyright-python/$PKG_VERSION/node_modules/pyright/

# generate third party licenses file
pnpm install
pnpm licenses list --json | pnpm-licenses generate-disclaimer --prod --json-input --output-file=$SRC_DIR/third-party-licenses.txt

popd
3 changes: 0 additions & 3 deletions recipe/conda_build_config.yaml

This file was deleted.

60 changes: 0 additions & 60 deletions recipe/meta.yaml

This file was deleted.

61 changes: 61 additions & 0 deletions recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
schema_version: 1

context:
name: pyright
version: 1.1.386

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

source:
url: https://pypi.io/packages/source/${{ name[0] }}/${{ name }}/pyright-${{ version }}.tar.gz
sha256: 8e9975e34948ba5f8e07792a9c9d2bdceb2c6c0b61742b068d2229ca2bc4a9d9

build:
number: 0

requirements:
build:
- ${{ compiler('c') }}
- ${{ stdlib('c') }}
- pnpm
- pnpm-licenses
host:
- python
- pip
- nodeenv >=1.6.0
- typing-extensions >=4.1
- pnpm
- pnpm-licenses
moritzwilksch marked this conversation as resolved.
Show resolved Hide resolved
run:
- python
- nodejs
- nodeenv >=1.6.0
- typing-extensions >=4.1

tests:
- python:
imports:
- pyright
pip_check: true
- requirements:
run:
- pip
script:
- pyright --help
- pyright-python --help
- pyright-langserver --node-ipc
- pyright-python-langserver --node-ipc

about:
summary: Command line wrapper for pyright, a static type checker
license: MIT
license_file: LICENSE
homepage: https://github.com/RobertCraigie/pyright-python
repository: https://github.com/RobertCraigie/pyright-python

extra:
recipe-maintainers:
- thewchan
- moritzwilksch
Loading