Let Tox know about Poetry's development dependencies
Project description
Introduction
Tox plugin to let Tox know about Poetry’s development dependencies.
Repositories
Distributions:
Source code:
Usage
add_poetry_dev_dependencies
Set the testenv setting add_poetry_dev_dependencies to True to let Tox install Poetry’s development dependencies in the test environment.
[testenv:example]
# ...
add_poetry_dev_dependencies = True
poetry_use_source_repos
Set the testenv setting poetry_use_source_repos to pip_env_vars to let Tox set the PIP_EXTRA_URL and PIP_EXTRA_INDEX_URL environment variables accordingly.
[testenv:example]
# ...
poetry_use_source_repos = pip_env_vars
This will read sections such as the following from the pyproject.toml file:
[[tool.poetry.source]]
name = "project-alpha"
url = "https://alpha.example/simple"
secondary = true
[[tool.poetry.source]]
name = "project-bravo"
url = "https://bravo.example/simple"
[[tool.poetry.source]]
name = "project-charlie"
url = "https://charlie.example/simple"
default = true
and set the environment variables:
PIP_INDEX_URL=https://charlie.example/simple
PIP_EXTRA_INDEX_URL=https://bravo.example/simple https://pypi.org/simple https://alpha.example/simple
If there is at least one non secondary source repository defined, then pip’s default index server (PyPI https://pypi.org/simple) is placed in PIP_EXTRA_INDEX_URL right before any secondary respository.
If pip’s environment variables are already defined then they are not overwritten. For example in a command like the following, the plugin does not overwrite the environment variable.
PIP_INDEX_URL=https://delta.example/simple tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tox-poetry-dev-dependencies-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e2f4187c836123fe8371b8afbab86e046a313c59fc9a7fd19cfa801070c4b2 |
|
MD5 | 8f690987c5ed928ebd24c72064c6d23a |
|
BLAKE2b-256 | fad8bfac6ae9df1d9ddf979c522a02593b5c301e119ddefc69c5201fd7d5356b |
Hashes for tox_poetry_dev_dependencies-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55106e8e93395b1ae6c5f858302b84b5d60e0931068dcf2ef5a55e173734e230 |
|
MD5 | 16f7498e4262d3017a51daf4b833d5b6 |
|
BLAKE2b-256 | bbcd3425c8a584f0d50f035c3d906f39fdd5bd9e7090722c6d2577df6c7612af |