Set custom certificate authority for repository. certificates.cert: #Įnvironment Variable: POETRY_CERTIFICATES_CERT Set repository credentials (using an API token) for. See Repositories - Configuring credentials Set repository credentials ( username and password) for. http-basic.: #Įnvironment Variables: POETRY_HTTP_BASIC_USERNAME, POETRY_HTTP_BASIC_PASSWORD See Publishable Repositories for more information. repositories.url #Įnvironment Variable: POETRY_REPOSITORIES_URL The variables project_name and python_version are available for formatting. If a virtual environment has already been created for the project under Įnvironment Variable: POETRY_VIRTUALENVS_PROMPTįormat string defining the prompt to be displayed when the virtual environment is activated. The number of maximum workers is still limited at number_of_cores + 4. If this configuration parameter is set to a value greater than number_of_cores + 4, If this raises a NotImplementedError exception, number_of_cores is assumed to be 1. The number_of_cores is determined by os.cpu_count(). Set the maximum number of workers while using the parallel installer. installer.max-workers #Įnvironment Variable: POETRY_INSTALLER_MAX_WORKERS If you encounter any problems with it, set to true to use the system git backend. Poetry uses dulwich by default for git related tasks to not rely on the availability of a git client. Use system git client backend for git related tasks. Windows: C:\Users\\AppData\Local\pypoetry\CacheĮnvironment Variable: POETRY_EXPERIMENTAL_SYSTEM_GIT_CLIENT.The path to the cache directory used by Poetry.ĭefaults to one of the following directories: You can override the Cache directory by setting the POETRY_CACHE_DIR environment variable. Linux: $XDG_CACHE_HOME/pypoetry or ~/.cache/pypoetry.If POETRY_HOME is set, it will be given higher priority. You can override the Data directory by setting the POETRY_DATA_DIR or POETRY_HOME environment variables. Linux: $XDG_DATA_HOME/pypoetry or ~/.local/share/pypoetry.You can override the Config directory by setting the POETRY_CONFIG_DIR environment variable. MacOS: ~/Library/Application Support/pypoetry.Linux: $XDG_CONFIG_HOME/pypoetry or ~/.config/pypoetry.Poetry uses the following default directories: Config Directory # Poetry also provides the ability to have settings that are specific to a projectīy passing the -local option to the config command.Įxport POETRY_HTTP_BASIC_MY_REPOSITORY_PASSWORD =secret That means, by default ~/.config/pypoetry. macOS: ~/Library/Application Support/pypoetryįor Unix, we follow the XDG spec and support $XDG_CONFIG_HOME.This file can typically be found in one of the following directories: But each is just one episode in the 'Odyssey,' a 12,000-line poem spanning years of ancient Greek history and legend. Or directly in the config.toml file that will be automatically created when you first run that command. On their own, any of these make great stories. Poetry can be configured via the config command ( see more about its usage here) virtualenvs.prefer-active-python (experimental).Adding or updating a configuration setting.Displaying a single configuration setting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |