deno 2.5.6__py3-none-manylinux_2_17_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- deno/__init__.py +6 -0
- deno/__main__.py +44 -0
- deno/_find_deno.py +36 -0
- deno-2.5.6.data/scripts/deno +0 -0
- deno-2.5.6.dist-info/METADATA +61 -0
- deno-2.5.6.dist-info/RECORD +8 -0
- deno-2.5.6.dist-info/WHEEL +4 -0
- deno-2.5.6.dist-info/licenses/LICENSE +25 -0
deno/__init__.py
ADDED
deno/__main__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
from deno import find_deno_bin
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def _detect_virtualenv() -> str:
|
|
8
|
+
"""
|
|
9
|
+
Find the virtual environment path for the current Python executable.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
# If it's already set, then just use it
|
|
13
|
+
value = os.getenv("VIRTUAL_ENV")
|
|
14
|
+
if value:
|
|
15
|
+
return value
|
|
16
|
+
|
|
17
|
+
# Otherwise, check if we're in a venv
|
|
18
|
+
venv_marker = os.path.join(sys.prefix, "pyvenv.cfg")
|
|
19
|
+
|
|
20
|
+
if os.path.exists(venv_marker):
|
|
21
|
+
return sys.prefix
|
|
22
|
+
|
|
23
|
+
return ""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _run() -> None:
|
|
27
|
+
deno = os.fsdecode(find_deno_bin())
|
|
28
|
+
|
|
29
|
+
env = os.environ.copy()
|
|
30
|
+
venv = _detect_virtualenv()
|
|
31
|
+
if venv:
|
|
32
|
+
env.setdefault("VIRTUAL_ENV", venv)
|
|
33
|
+
|
|
34
|
+
if sys.platform == "win32":
|
|
35
|
+
import subprocess
|
|
36
|
+
|
|
37
|
+
completed_process = subprocess.run([deno, *sys.argv[1:]], env=env)
|
|
38
|
+
sys.exit(completed_process.returncode)
|
|
39
|
+
else:
|
|
40
|
+
os.execvpe(deno, [deno, *sys.argv[1:]], env=env)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
if __name__ == "__main__":
|
|
44
|
+
_run()
|
deno/_find_deno.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
import sysconfig
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def find_deno_bin() -> str:
|
|
9
|
+
"""Return the deno binary path."""
|
|
10
|
+
|
|
11
|
+
deno_exe = "deno" + sysconfig.get_config_var("EXE")
|
|
12
|
+
|
|
13
|
+
path = os.path.join(sysconfig.get_path("scripts"), deno_exe)
|
|
14
|
+
if os.path.isfile(path):
|
|
15
|
+
return path
|
|
16
|
+
|
|
17
|
+
if sys.version_info >= (3, 10):
|
|
18
|
+
user_scheme = sysconfig.get_preferred_scheme("user")
|
|
19
|
+
elif os.name == "nt":
|
|
20
|
+
user_scheme = "nt_user"
|
|
21
|
+
elif sys.platform == "darwin" and sys._framework:
|
|
22
|
+
user_scheme = "osx_framework_user"
|
|
23
|
+
else:
|
|
24
|
+
user_scheme = "posix_user"
|
|
25
|
+
|
|
26
|
+
path = os.path.join(sysconfig.get_path("scripts", scheme=user_scheme), deno_exe)
|
|
27
|
+
if os.path.isfile(path):
|
|
28
|
+
return path
|
|
29
|
+
|
|
30
|
+
# Search in `bin` adjacent to package root (as created by `pip install --target`).
|
|
31
|
+
pkg_root = os.path.dirname(os.path.dirname(__file__))
|
|
32
|
+
target_path = os.path.join(pkg_root, "bin", deno_exe)
|
|
33
|
+
if os.path.isfile(target_path):
|
|
34
|
+
return target_path
|
|
35
|
+
|
|
36
|
+
raise FileNotFoundError(path)
|
|
Binary file
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deno
|
|
3
|
+
Version: 2.5.6
|
|
4
|
+
Summary: Python redistribution of Deno binaries
|
|
5
|
+
Author-email: Trevor Manz <trevor.j.manz@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# Deno
|
|
12
|
+
|
|
13
|
+
Distribution of [Deno](https://deno.com/) for PyPI.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install deno
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
uv add deno
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
### Command Line
|
|
28
|
+
|
|
29
|
+
You can invoke Deno CLI directly via `uv` or `pipx`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
uvx deno --version
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pipx deno --version
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Python API
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
import deno
|
|
43
|
+
|
|
44
|
+
# Get the path to the Deno executable
|
|
45
|
+
deno_bin = deno.find_deno_bin()
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Platform Support
|
|
49
|
+
|
|
50
|
+
This package provides Deno binaries for:
|
|
51
|
+
- macOS (`x86_64`, `arm64`)
|
|
52
|
+
- Linux (`x86_64`, `arm64`)
|
|
53
|
+
- Windows (`x86_64`)
|
|
54
|
+
|
|
55
|
+
The appropriate binary for your platform will be installed automatically.
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
MIT
|
|
60
|
+
|
|
61
|
+
This repository redistributes official Deno binaries to make them easily installable via pip/uv/etc.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
deno/__init__.py,sha256=4TK0SkAoOQ5etvpPZmqBCJr9QHbWbr46GAE148MsCP4,104
|
|
2
|
+
deno/__main__.py,sha256=ZIq3cDH6qsf2dP9c5itnf8PqUjVY8UAyvfqyjxGcEZY,941
|
|
3
|
+
deno/_find_deno.py,sha256=NS29auI2RWAs5IoYKvnBfBZqHlOyAuq0ABmKZuvqblE,1050
|
|
4
|
+
deno-2.5.6.data/scripts/deno,sha256=rzEdqET8mJi-kn8OvCcQV7685LTqUyh7Rf1Et5W8N-U,113973312
|
|
5
|
+
deno-2.5.6.dist-info/METADATA,sha256=fpPh9dcwFl9jS28HlBPMe6piJH5iQBw2yQyDRIFJExk,986
|
|
6
|
+
deno-2.5.6.dist-info/WHEEL,sha256=s7fXjvSrtti1KVYauxOkyn3EMAkWvHGJ-L6uSyJTUlM,105
|
|
7
|
+
deno-2.5.6.dist-info/licenses/LICENSE,sha256=Mwss5IGbinuOfbkT02vqAncfnIFjAzGlSsuuiv9mD4o,1210
|
|
8
|
+
deno-2.5.6.dist-info/RECORD,,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
This project redistributes Deno binaries for Python packaging.
|
|
2
|
+
The original Deno project is licensed under the MIT License below:
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Copyright 2018-2025 the Deno authors
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
11
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
12
|
+
the Software without restriction, including without limitation the rights to
|
|
13
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
14
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
15
|
+
subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
22
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
23
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
24
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
25
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|