pyrefly 0.40.1__py3-none-macosx_10_12_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.

Potentially problematic release.


This version of pyrefly might be problematic. Click here for more details.

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.40.1
4
+ Classifier: Development Status :: 3 - Alpha
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.40.1.data/scripts/pyrefly,sha256=TQclEJCO9MiIaCsShadtnRR69lEyQau3UeGm7Cky1gQ,18269472
2
+ pyrefly-0.40.1.dist-info/METADATA,sha256=d-BjAMaCzyD57UPYJk6KqRbar24h9WFJSz-fbK41xyk,1435
3
+ pyrefly-0.40.1.dist-info/WHEEL,sha256=Q2rHGMsq0X7G6BJbXk6ZaKL4ytLObKy0EZzrqvyuZlk,103
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.40.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.9.6)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-macosx_10_12_x86_64