This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| def activated_venv(): | |
| """Check if a virtual environment is activated.""" | |
| if "VIRTUAL_ENV" not in os.environ: | |
| return None | |
| os.path.join(os.environ["VIRTUAL_ENV"], "bin", "python") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is @generated by PDM. | |
| # It is not intended for manual editing. | |
| [metadata] | |
| groups = ["default", "dev1", "dev2"] | |
| strategy = ["inherit_metadata"] | |
| lock_version = "4.5.0" | |
| content_hash = "sha256:6e2057cd4fe2aa34574cd5b65f833983a72f632225c08fdfe1e16f8c656d80a7" | |
| [[metadata.targets]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is @generated by PDM. | |
| # It is not intended for manual editing. | |
| [metadata] | |
| groups = ["default", "extra-A", "extra-B"] | |
| strategy = ["inherit_metadata"] | |
| lock_version = "4.5.0" | |
| content_hash = "sha256:0c137fae99f4123508584ab1444667a46e13237f440c0577bb8d633ee82eaf47" | |
| [[metadata.targets]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is @generated by PDM. | |
| # It is not intended for manual editing. | |
| [metadata] | |
| groups = ["default"] | |
| strategy = ["inherit_metadata"] | |
| lock_version = "4.5.0" | |
| content_hash = "sha256:ad8d737d864c796dd999f825b17b9226e856eca6f3e7b8c2c654917eec423d19" | |
| [[metadata.targets]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fluent(bound_method, /, *args, **kwargs): | |
| """Call a bound method and return `self` from that method.""" | |
| bound_method(*args, **kwargs) | |
| return bound_method.__self__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import functools | |
| from typing import Any, Callable, Dict, Iterable, List, Optional, TypeVar | |
| from .requirements import Requirement | |
| from .specifiers import SpecifierSet | |
| from .utils import NormalizedName, canonicalize_name | |
| from .version import Version | |
| _T = TypeVar("_T") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pathlib | |
| from typing import Any, Dict, Iterable, List, Optional, Tuple, Union | |
| from .requirements import Requirement | |
| from .specifiers import SpecifierSet | |
| from .utils import NormalizedName, canonicalize_name | |
| from .version import Version | |
| class Metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Back in my day, we only needed **one** command. 🧓""" | |
| import runpy | |
| import sys | |
| def run(command): | |
| sys.argv[0] = command | |
| runpy.run_module(command, run_name="__main__") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cross_compiling=yes | |
| ac_cv_file__dev_ptmx=no | |
| ac_cv_file__dev_ptc=no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "__future__": [], | |
| "_xxsubinterpreters": [], | |
| "abc": ["_abc", "_py_abc"], | |
| "aifc": [], | |
| "antigravity": [], | |
| "argparse": [], | |
| "array": [], | |
| "ast": ["_ast"], | |
| "asynchat": [], |
NewerOlder