How to use get_requires_for_build_sdist method in tox

Best Python code snippet using tox_python

build_meta.py

Source:build_meta.py Github

copy

Full Screen

...109 exec(compile(code, __file__, 'exec'), locals())110 def get_requires_for_build_wheel(self, config_settings=None):111 config_settings = self._fix_config(config_settings)112 return self._get_build_requires(config_settings, requirements=['wheel'])113 def get_requires_for_build_sdist(self, config_settings=None):114 config_settings = self._fix_config(config_settings)115 return self._get_build_requires(config_settings, requirements=[])116 def prepare_metadata_for_build_wheel(self, metadata_directory,117 config_settings=None):118 sys.argv = sys.argv[:1] + ['dist_info', '--egg-base',119 _to_str(metadata_directory)]120 self.run_setup()121 dist_info_directory = metadata_directory122 while True:123 dist_infos = [f for f in os.listdir(dist_info_directory)124 if f.endswith('.dist-info')]125 if (len(dist_infos) == 0 and126 len(_get_immediate_subdirectories(dist_info_directory)) == 1):127 dist_info_directory = os.path.join(...

Full Screen

Full Screen

build_meta.pyi

Source:build_meta.pyi Github

copy

Full Screen

...9 def patch(cls) -> None: ...10class _BuildMetaBackend:11 def run_setup(self, setup_script: str = ...) -> None: ...12 def get_requires_for_build_wheel(self, config_settings: Any | None = ...): ...13 def get_requires_for_build_sdist(self, config_settings: Any | None = ...): ...14 def prepare_metadata_for_build_wheel(self, metadata_directory, config_settings: Any | None = ...): ...15 def build_wheel(self, wheel_directory, config_settings: Any | None = ..., metadata_directory: Any | None = ...): ...16 def build_sdist(self, sdist_directory, config_settings: Any | None = ...): ...17class _BuildMetaLegacyBackend(_BuildMetaBackend):18 def run_setup(self, setup_script: str = ...) -> None: ...19get_requires_for_build_wheel: Any20get_requires_for_build_sdist: Any21prepare_metadata_for_build_wheel: Any22build_wheel: Any23build_sdist: Any...

Full Screen

Full Screen

api.py

Source:api.py Github

copy

Full Screen

1from poetry.core.masonry.api import build_sdist2from poetry.core.masonry.api import build_wheel3from poetry.core.masonry.api import get_requires_for_build_sdist4from poetry.core.masonry.api import get_requires_for_build_wheel5from poetry.core.masonry.api import prepare_metadata_for_build_wheel6__all__ = [7 "build_sdist",8 "build_wheel",9 "get_requires_for_build_sdist",10 "get_requires_for_build_wheel",11 "prepare_metadata_for_build_wheel",...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tox automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful