Gather active python versions and, optionally, also docker images.
For its usage, as CLI/docker container/library please refer to usega page into documentation.
An interesting usage is in combination with nox, where this library can provide python versions as following snippet:
import nox
from python_active_versions.python_active_versions import get_active_python_versions
from typing import List
def _get_active_version(_active_versions: List[dict]) -> List[str]:
return [_av['version'] for _av in _active_versions]
_python_versions = _get_active_version(get_active_python_versions())
@nox.session(python=_python_versions)
def test_something(session):
...
@nox.session(python=_python_versions)
def test_another(session):
...
This tool can also be run as container wiht:
podman run --rm python-active-versions:1.15.0
This package was created with Cookiecutter and the gpongelli/cookiecutter-pypackage project template.
Content type
Image
Digest
sha256:1fc97362d…
Size
61.4 MB
Last updated
about 2 years ago
docker pull gpongelli/python-active-versions:1.19.0