pyrefly 0.46.3__py3-none-manylinux_2_17_i686.manylinux2014_i686.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.
- pyrefly/__init__.py +8 -0
- pyrefly/__main__.py +33 -0
- pyrefly/py.typed +0 -0
- pyrefly-0.46.3.data/scripts/pyrefly +0 -0
- pyrefly-0.46.3.dist-info/METADATA +34 -0
- pyrefly-0.46.3.dist-info/RECORD +7 -0
- pyrefly-0.46.3.dist-info/WHEEL +5 -0
pyrefly/__init__.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
import importlib.metadata
|
|
7
|
+
|
|
8
|
+
__version__ = importlib.metadata.version("pyrefly")
|
pyrefly/__main__.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
import os
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
import sysconfig
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def get_pyrefly_bin() -> str:
|
|
13
|
+
# Try to figure out where the pyrefly executable is installed.
|
|
14
|
+
# First look for a global installation.
|
|
15
|
+
pyrefly_exe = "pyrefly" + sysconfig.get_config_var("EXE")
|
|
16
|
+
pyrefly_bin = os.path.join(sysconfig.get_path("scripts"), pyrefly_exe)
|
|
17
|
+
if os.path.isfile(pyrefly_bin):
|
|
18
|
+
return pyrefly_bin
|
|
19
|
+
# Next look for a user-local installation.
|
|
20
|
+
if sys.version_info >= (3, 10): # get_preferred_scheme is new in 3.10
|
|
21
|
+
user_scheme = sysconfig.get_preferred_scheme("user")
|
|
22
|
+
pyrefly_bin = os.path.join(
|
|
23
|
+
sysconfig.get_path("scripts", scheme=user_scheme), pyrefly_exe
|
|
24
|
+
)
|
|
25
|
+
if os.path.isfile(pyrefly_bin):
|
|
26
|
+
return pyrefly_bin
|
|
27
|
+
# We didn't find the executable; let's just hope it's on the path.
|
|
28
|
+
return "pyrefly"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if __name__ == "__main__":
|
|
32
|
+
proc = subprocess.run([get_pyrefly_bin(), *sys.argv[1:]])
|
|
33
|
+
sys.exit(proc.returncode)
|
pyrefly/py.typed
ADDED
|
File without changes
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyrefly
|
|
3
|
+
Version: 0.46.3
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Programming Language :: Python
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
8
|
+
Classifier: Operating System :: MacOS
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Topic :: Software Development
|
|
13
|
+
Summary: A fast type checker and language server for Python with powerful IDE features
|
|
14
|
+
Keywords: typechecker,typechecking
|
|
15
|
+
Requires-Python: >=3.8
|
|
16
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
17
|
+
Project-URL: homepage, https://pyrefly.org
|
|
18
|
+
Project-URL: documentation, https://pyrefly.org/en/docs/
|
|
19
|
+
|
|
20
|
+
# Pyrefly
|
|
21
|
+
|
|
22
|
+
Pyrefly is a type checker and language server for Python, which provides
|
|
23
|
+
lightning-fast type checking along with IDE features such as code navigation,
|
|
24
|
+
semantic highlighting, and code completion. It is available as a
|
|
25
|
+
[command-line tool](https://pyrefly.org/en/docs/installation/) and a
|
|
26
|
+
[VSCode extension](https://marketplace.visualstudio.com/items?itemName=meta.pyrefly).
|
|
27
|
+
|
|
28
|
+
See the [Pyrefly website](https://pyrefly.org) for full documentation and how to
|
|
29
|
+
add Pyrefly to your editor of choice.
|
|
30
|
+
|
|
31
|
+
Currently under active development with known issues. Please
|
|
32
|
+
[open an issue](https://github.com/facebook/pyrefly/issues/new/choose) if you
|
|
33
|
+
find bugs.
|
|
34
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pyrefly-0.46.3.data/scripts/pyrefly,sha256=uYAePRDe0HSR42w66NZ_R38hCW0MNVAo7OXwcTOEn6g,102971616
|
|
2
|
+
pyrefly-0.46.3.dist-info/METADATA,sha256=dOfK-bwN_nw--t-pw4wock5ADRIWYdKlkbt0PJDLpfs,1434
|
|
3
|
+
pyrefly-0.46.3.dist-info/WHEEL,sha256=3GfwoUuJ8Bl20YS4sbO_hOSEgd7UB_obvDW36NMvcM8,137
|
|
4
|
+
pyrefly/__init__.py,sha256=ZOtiqHbMokXeQZN4vAgy4S5lP-Xci8E1hLig9LwdBjM,259
|
|
5
|
+
pyrefly/__main__.py,sha256=gdJp64de6Gxpy29Yaqb44RBfOi_QaJm3FzgwsysANk8,1167
|
|
6
|
+
pyrefly/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
pyrefly-0.46.3.dist-info/RECORD,,
|