fastparse-language-python 0.1.0rc19__py3-none-macosx_10_15_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.
- fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/__init__.py +36 -0
- fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/manifest.json +30 -0
- fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/native/__init__.py +0 -0
- fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/native/osx-x64/libfastparse_language_python.dylib +0 -0
- fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/py.typed +0 -0
- fastparse_language_python-0.1.0rc19.dist-info/METADATA +12 -0
- fastparse_language_python-0.1.0rc19.dist-info/RECORD +9 -0
- fastparse_language_python-0.1.0rc19.dist-info/WHEEL +5 -0
- fastparse_language_python-0.1.0rc19.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import platform
|
|
4
|
+
from importlib import resources
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
__version__ = "0.1.0rc19"
|
|
8
|
+
LANGUAGE = "python"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _platform_key() -> str:
|
|
12
|
+
machine = platform.machine().lower()
|
|
13
|
+
if machine in {"x86_64", "amd64"}:
|
|
14
|
+
arch = "x64"
|
|
15
|
+
elif machine in {"arm64", "aarch64"}:
|
|
16
|
+
arch = "arm64"
|
|
17
|
+
else:
|
|
18
|
+
arch = machine
|
|
19
|
+
|
|
20
|
+
system = platform.system()
|
|
21
|
+
if system == "Darwin":
|
|
22
|
+
return f"osx-{arch}"
|
|
23
|
+
if system == "Windows":
|
|
24
|
+
return f"win-{arch}"
|
|
25
|
+
return f"linux-{arch}"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def extension_path() -> Path:
|
|
29
|
+
if platform.system() == "Windows":
|
|
30
|
+
filename = "fastparse_language_python.dll"
|
|
31
|
+
elif platform.system() == "Darwin":
|
|
32
|
+
filename = "libfastparse_language_python.dylib"
|
|
33
|
+
else:
|
|
34
|
+
filename = "libfastparse_language_python.so"
|
|
35
|
+
path = resources.files(__package__) / "native" / _platform_key() / filename
|
|
36
|
+
return Path(str(path))
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extensionKind": "fastparse-language",
|
|
3
|
+
"language": "python",
|
|
4
|
+
"displayName": "Python",
|
|
5
|
+
"version": "0.1.0-preview.19",
|
|
6
|
+
"extensionAbi": 1,
|
|
7
|
+
"coreAbi": "fastparse-c-api/0.5.0",
|
|
8
|
+
"binarySchemaVersion": 1,
|
|
9
|
+
"grammar": {
|
|
10
|
+
"name": "tree-sitter-python",
|
|
11
|
+
"source": "https://github.com/tree-sitter/tree-sitter-python",
|
|
12
|
+
"revision": "vendored",
|
|
13
|
+
"license": "MIT"
|
|
14
|
+
},
|
|
15
|
+
"symbols": {
|
|
16
|
+
"descriptor": "fastparse_language_extension_descriptor",
|
|
17
|
+
"treeSitterLanguage": "tree_sitter_python"
|
|
18
|
+
},
|
|
19
|
+
"normalization": {
|
|
20
|
+
"default": "auto_safe",
|
|
21
|
+
"supported": [
|
|
22
|
+
"auto_safe",
|
|
23
|
+
"none"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"platforms": [
|
|
27
|
+
"osx-x64"
|
|
28
|
+
],
|
|
29
|
+
"status": "preview"
|
|
30
|
+
}
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fastparse-language-python
|
|
3
|
+
Version: 0.1.0rc19
|
|
4
|
+
Summary: FastParse python language extension
|
|
5
|
+
Description-Content-Type: text/markdown
|
|
6
|
+
Dynamic: description
|
|
7
|
+
Dynamic: description-content-type
|
|
8
|
+
Dynamic: summary
|
|
9
|
+
|
|
10
|
+
# fastparse-language-python
|
|
11
|
+
|
|
12
|
+
FastParse python language extension wheel.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/__init__.py,sha256=ShuT9V1sDwvgC12YYkZZXdPjaWxJOL-0kmoJOvTqD10,945
|
|
2
|
+
fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/manifest.json,sha256=-9ba0GC7LTdGx5fNoodfxLPXVAr9glI0ZgSaDcPGty4,683
|
|
3
|
+
fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/native/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
fastparse_language_python-0.1.0rc19.data/purelib/fastparse_language_python/native/osx-x64/libfastparse_language_python.dylib,sha256=CT1iFKr3eZi68MLiB6zcUDPKgIvHdk4julR852q8s3c,468896
|
|
6
|
+
fastparse_language_python-0.1.0rc19.dist-info/METADATA,sha256=fWvOcBFHE7oII24eGDOj85aQ4d4AP6g6iIbNdObM3GY,303
|
|
7
|
+
fastparse_language_python-0.1.0rc19.dist-info/WHEEL,sha256=Tz9greosmzWeFFs2DK0c6-eKAY2j66le9zkyhKey9x4,108
|
|
8
|
+
fastparse_language_python-0.1.0rc19.dist-info/top_level.txt,sha256=dEwWloZivBPQO0lfmFf6dZJBBABUN2A9Q4OTBqG6big,26
|
|
9
|
+
fastparse_language_python-0.1.0rc19.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fastparse_language_python
|