Skip to content

Commit

Permalink
add nodejs_wheel back to build-system.requires
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Apr 25, 2024
1 parent 78f55c0 commit 711a0bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/pyright/package-lock.json

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

4 changes: 2 additions & 2 deletions pdm.lock

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

2 changes: 2 additions & 0 deletions pdm_build.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from __future__ import annotations

import sys
from json import loads
from pathlib import Path
from shutil import copyfile, copytree
from typing import List, TypedDict, cast

from nodejs_wheel import executable


# Remove when https://github.com/njzjz/nodejs-wheel/pull/24 is merged
def run(cmd: List[str]):
old_sys_argv = sys.argv
Expand Down
11 changes: 4 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
[tool.pyprojectx]
main = ["pdm==2.13.2"]
main = ["pdm==2.15.1"]

[tool.pdm]
distribution = true

[tool.pdm.dev-dependencies]
dev = [
"pylint>=3.0.0a7",
"ruff>=0.2.2",
# required for running node/npm commands for local development if node is not installed globally:
"nodejs-wheel>=20.12.2",
]
dev = ["pylint>=3.0.0a7", "ruff>=0.2.2"]

[tool.pdm.version]
source = "call"
Expand Down Expand Up @@ -49,6 +44,8 @@ basedpyright-langserver = 'basedpyright.langserver:main'
[build-system]
requires = [
"pdm-backend",
# required for building the pyright npm package to be bundled in the pypi package:
"nodejs-wheel>=20.12.2",
]
build-backend = "pdm.backend"

Expand Down

0 comments on commit 711a0bf

Please sign in to comment.