{"id":17136949,"url":"https://github.com/un-def/virtualenv-pyenv","last_synced_at":"2026-03-14T07:20:06.155Z","repository":{"id":56900005,"uuid":"373825123","full_name":"un-def/virtualenv-pyenv","owner":"un-def","description":"A virtualenv Python discovery plugin for pyenv–installed interpreters","archived":false,"fork":false,"pushed_at":"2025-11-15T12:33:44.000Z","size":52,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-15T14:31:45.548Z","etag":null,"topics":["pyenv","virtualenv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/un-def.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"ko_fi":"un1def"}},"created_at":"2021-06-04T11:51:39.000Z","updated_at":"2025-11-15T12:33:47.000Z","dependencies_parsed_at":"2025-04-13T09:32:22.410Z","dependency_job_id":"d4a48819-a0d9-4f3b-8619-713744e6f8c5","html_url":"https://github.com/un-def/virtualenv-pyenv","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"19809490f3efefb595898a0b6c1f37a53685d28b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/un-def/virtualenv-pyenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-def%2Fvirtualenv-pyenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-def%2Fvirtualenv-pyenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-def%2Fvirtualenv-pyenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-def%2Fvirtualenv-pyenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/un-def","download_url":"https://codeload.github.com/un-def/virtualenv-pyenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un-def%2Fvirtualenv-pyenv/sbom","scorecard":{"id":908745,"data":{"date":"2025-08-11","repo":{"name":"github.com/un-def/virtualenv-pyenv","commit":"254f9f58a9e308dab87221737db65662527f0860"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.5.0 not signed: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/137351063","Warn: release artifact 0.4.0 not signed: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/115369738","Warn: release artifact 0.3.0 not signed: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/112232876","Warn: release artifact 0.2.0 not signed: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/112232305","Warn: release artifact 0.1.0 not signed: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/112231855","Warn: release artifact 0.5.0 does not have provenance: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/137351063","Warn: release artifact 0.4.0 does not have provenance: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/115369738","Warn: release artifact 0.3.0 does not have provenance: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/112232876","Warn: release artifact 0.2.0 does not have provenance: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/112232305","Warn: release artifact 0.1.0 does not have provenance: https://api.github.com/repos/un-def/virtualenv-pyenv/releases/112231855"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T18:22:15.888Z","repository_id":56900005,"created_at":"2025-08-24T18:22:15.889Z","updated_at":"2025-08-24T18:22:15.889Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30292476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pyenv","virtualenv"],"created_at":"2024-10-14T20:05:50.446Z","updated_at":"2026-03-14T07:20:06.141Z","avatar_url":"https://github.com/un-def.png","language":"Python","readme":"# virtualenv-pyenv\n\n[![GitHub License](https://img.shields.io/github/license/un-def/virtualenv-pyenv?style=flat-square)](https://github.com/un-def/virtualenv-pyenv/blob/master/LICENSE)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/virtualenv-pyenv?style=flat-square)](https://pypi.org/project/virtualenv-pyenv/)\n[![PyPI - Version](https://img.shields.io/pypi/v/virtualenv-pyenv?style=flat-square)](https://pypi.org/project/virtualenv-pyenv/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/virtualenv-pyenv?style=flat-square)](https://pypi.org/project/virtualenv-pyenv/)\n[![GitHub Repo stars](https://img.shields.io/github/stars/un-def/virtualenv-pyenv?style=flat-square)](https://github.com/un-def/virtualenv-pyenv/stargazers)\n\nA [virtualenv][virtualenv] Python discovery plugin for [pyenv][pyenv]–installed interpreters\n\n## Installation\n\n```shell\npip install virtualenv-pyenv\n```\n\n## Usage\n\nThe Python discovery mechanism can be specified by:\n\n* the CLI option `--discovery`:\n  ```shell\n  virtualenv --discovery pyenv -p 3.10 testenv\n  ```\n\n* the environment variable `VIRTUALENV_DISCOVERY`:\n  ```shell\n  export VIRTUALENV_DISCOVERY=pyenv\n  virtualenv -p 3.10 testenv\n  ```\n\n* the [config][virtualenv-docs-config-file] option `discovery`:\n  ```ini\n  [virtualenv]\n  discovery = pyenv\n  ```\n\n  ```shell\n  virtualenv -p 3.10 testenv\n  ```\n\n* the [virtualenvwrapper][virtualenvwrapper] environment variable `VIRTUALENVWRAPPER_VIRTUALENV_ARGS`:\n  ```shell\n  export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--discovery=pyenv'\n  mkvirtualenv -p 3.10 testenv\n  ```\n\n## Operation Mode\n\nThe plugin supports several operation modes. The operation mode affects various aspects of the discovery process.\n\n|mode      |specifier|path specifier|fallback to `builtin`|\n|----------|---------|--------------|---------------------|\n|`compat`  |optional |allowed       |no                   |\n|`fallback`|optional |allowed       |yes                  |\n|`strict`  |required |error         |no                   |\n\nThe mode is specified as a part of the discovery method name: `pyenv-{mode}`, e.g.,\n\n```shell\nvirtualenv --discovery=pyenv-fallback -p 3.10 testenv\n```\n\nor\n\n```shell\nexport VIRTUALENV_DISCOVERY=pyenv-strict\nvirtualenv -p 3.10 testenv\n```\n\nIf no mode is specified, the `compat` mode is used, that is, `--discovery=pyenv` is the same as `--discovery=pyenv-compat`.\n\nThe `compat` mode is recommended for most cases. It mimics closely the `builtin` discovery plugin to maximize compatibility with existing tools (e.g., [build][build], [tox][tox]):\n\n* if no specifier is provided, the plugin falls back to `sys.executable`, even if it is not installed by pyenv;\n* if a path specifier (`-p /path/to/bin/python`) is provided, the path is used, even if it is not installed by pyenv;\n* otherwise (`-p 3.7`, `-p py37`), only pyenv–installed interpreters are used.\n\nThe `fallback` mode is the same as `compat`, but in addition falls back to the `builtin` plugin if no interpreter was found. If multiple specifiers are provided, all of them are tried first before falling back to the `builtin` plugin as a last resort.\n\nThe `strict` mode, as its name suggests, ensures that only pyenv–installed interpreters are used:\n\n* a specifier is required, `sys.executable` is never used as a fallback, even if it is installed by pyenv (may be relaxed in the future);\n* a path specifier is not allowed, even if the path points to a pyenv–installed interpreter (may be relaxed in the future);\n* no fallback to the `builtin` plugin.\n\n## Python Specifier Format\n\nThe plugin supports two specifier formats informally called “pyenv-style” and “virtualenv-style”.\n\nThe version part of both specifier formats can contain one (`major`), two (`major.minor`), or three (`major.minor.patch`) components. When a one–component version is specified, the latest installed final minor release is selected, ignoring pre–/dev–release. When a two–component version is specified, the latest installed final patch release is selected, ignoring pre–/dev–releases. When a three–component version is specified, the exact final release is selected, ignoring pre–/dev–releases. The pre–/dev–release version is selected only if it is explicitly requested.\n\n|installed                  |requested |selected  |\n|---------------------------|----------|----------|\n|`3.9.5`; `3.9.17`, `3.10.0`|`3`       |`3.10.0`  |\n|`3.9.5`; `3.9.17`, `3.10.0`|`3.9`     |`3.9.17`  |\n|`3.9.5`; `3.9.17`, `3.10.0`|`3.9.5`   |`3.9.5`   |\n|`3.9.5`; `3.9.17`, `3.10.0`|`3.9.0`   |—         |\n|`3.12-dev`; `3.12.0b3`     |`3.12`    |—         |\n|`3.12-dev`; `3.12.0b3`     |`3.12.0`  |—         |\n|`3.12-dev`; `3.12.0b3`     |`3.12-dev`|`3.12-dev`|\n|`3.12-dev`; `3.12.0b3`     |`3.12.0b3`|`3.12.0b3`|\n\n### pyenv–style\n\nThe same format as used by [pyenv][pyenv] (`pyenv install --list`).\n\n* a final version with 1 version component: `3`, `3t`\n* a final version with 2 version components: `3.11`, `3.14t`\n* a final version with 3 version components: `3.11.2`, `3.14.1t`\n* a pre–release version: `3.13.0a4`, `3.12.0b3`, `3.11.0rc1`, `3.15.0a1t`\n* a dev version: `3.13-dev`, `3.15t-dev`\n\n### virtualenv–style\n\nThe same format as used by [virtualenv][virtualenv] ([docs][virtualenv-docs-specifier-format]). A subset of this format is used by [tox][tox] ([docs][tox-docs-testenv-factors]).\n\n* a relative or absolute path: `/path/to/bin/python` (it can be any Python interpreter, not only installed by pyenv)\n* a final version with 1 version component: `py3`, `python3`, `cpython3`, `python3-32`, `py3-64`, `py3t`, `python3t`\n* a final version with 2 version components: `311`, `py311`, `py3.11`, `python311`, `cpython3.11`, `python3.11-32`, `py311-64`, `314t`, `py314t`, `cpython3.14t`\n* a final version with 3 version components: `py3.11.2`, `python3.11.2`, `cpython3.11.2`, `python3.11.2-32`, `py3.11.2-64`, `py3.14.0t`, `cpython3.14.0t`\n\n## Limitations\n\n* Only CPython is supported at the moment.\n* The `architecture` part (`-32`/`-64`) of a specifier is ignored. For example, all of the following specifiers match any installed CPython 3.8.1 regardless of the architecture: `python3.8.1`, `python3.8.1-32`, `python3.8.1-64`.\n\n## Internals\n\nvirtualenv-pyenv does not rely on pyenv to discover Python interpreters, that is, it never calls any pyenv command and does not require pyenv to be in `PATH`. Instead, the plugin uses [pyenv-inspect][pyenv-inspect] library, which, in turn, inspects `$PYENV_ROOT/versions` directory contents.\n\n\n[virtualenv]: https://virtualenv.pypa.io/\n[pyenv]: https://github.com/pyenv/pyenv\n[virtualenvwrapper]: https://virtualenvwrapper.readthedocs.io/en/latest/\n[tox]: https://tox.wiki/en/latest/\n[pyenv-inspect]: https://github.com/un-def/pyenv-inspect\n[build]: https://github.com/pypa/build\n[virtualenv-docs-config-file]: https://virtualenv.pypa.io/en/latest/cli_interface.html#configuration-file\n[virtualenv-docs-specifier-format]: https://virtualenv.pypa.io/en/latest/user_guide.html#python-discovery\n[tox-docs-testenv-factors]: https://tox.wiki/en/latest/user_guide.html#test-environments\n","funding_links":["https://ko-fi.com/un1def"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun-def%2Fvirtualenv-pyenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fun-def%2Fvirtualenv-pyenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun-def%2Fvirtualenv-pyenv/lists"}