Python functions to get top-level importables names
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #4 from astrojuanlu/use-uv

Use uv

authored by

Juan Luis Cano Rodríguez and committed by
GitHub
(Jul 24, 2024, 11:13 AM +0200) f3e0c631 067eb616

+4 -4
+2 -2
README.md
··· 22 22 23 23 ``` 24 24 >>> from pygetimportables import get_top_importables 25 - >>> get_top_importables(".") # Wait a few seconds, requires working `pip install` 25 + >>> get_top_importables(".") # Wait a few seconds, requires working `uv pip install` 26 26 {'pygetimportables'} 27 27 ``` 28 28 29 29 To get the top-level importable names from an already built wheel: 30 30 31 31 ``` 32 - (.venv) $ python -m build 32 + (.venv) $ python -m build --installer uv 33 33 ... 34 34 (.venv) $ python -q 35 35 >>> from pygetimportables import get_top_importables_from_wheel
+1 -1
pyproject.toml
··· 9 9 license = {file = "LICENSE"} 10 10 description = "Python functions to get top-level importable names" 11 11 dependencies = [ 12 - "build", 12 + "build[uv]>=1.2.0", 13 13 "installer", 14 14 "pyproject_hooks", 15 15 "tomli ; python_version < '3.11'",
+1 -1
src/pygetimportables/__init__.py
··· 48 48 build_config_settings: ConfigSettingsType | None = None, 49 49 ) -> Path: 50 50 """Silently build wheel using build package.""" 51 - with DefaultIsolatedEnv() as env: 51 + with DefaultIsolatedEnv(installer="uv") as env: 52 52 builder = ProjectBuilder.from_isolated_env( 53 53 env, source_dir, runner=quiet_subprocess_runner 54 54 )