Skip to content

Commit

Permalink
Use python3 executable (#4157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Apr 8, 2024
1 parent 2390257 commit a7174f1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -29,6 +29,6 @@ jobs:
with:
fetch-depth: 0 # needed by setuptools-scm
- name: Build dists
run: python -m tox -e pkg
run: python3 -m tox -e pkg
- name: Publish to pypi.org
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions docs/ci.md
Expand Up @@ -197,10 +197,10 @@ steps:
inputs:
versionSpec: "3.10"

- script: python -m pip install "molecule[lint]" "python-vagrant" "molecule-vagrant" "ansible"
- script: python3 -m pip install "molecule[lint]" "python-vagrant" "molecule-vagrant" "ansible"
displayName: Install dependencies

- script: python -m pip install "python-tss-sdk"
- script: python3 -m pip install "python-tss-sdk"
displayName: Role-specific dependencies

- script: |
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Expand Up @@ -93,7 +93,7 @@ $ python3 -m pip install --user "molecule-plugins[podman]"

Installing molecule package also installed its main script `molecule`,
usually in `PATH`. Users should know that molecule can also be called as
a python module, using `python -m molecule ...`. This alternative method
a python module, using `python3 -m molecule ...`. This alternative method
has some benefits:

- allows to explicitly control which Python interpreter is used by
Expand Down
2 changes: 1 addition & 1 deletion test/scenarios/verifier/.pre-commit-config.yaml
Expand Up @@ -4,6 +4,6 @@ repos:
hooks:
- id: flake8
name: flake8
entry: python -m flake8 --max-line-length=120
entry: python3 -m flake8 --max-line-length=120
language: system
types: [python]
8 changes: 4 additions & 4 deletions tox.ini
Expand Up @@ -55,7 +55,7 @@ commands =
# failsafe as pip may install incompatible dependencies
pip check
# failsafe for preventing changes that may break pytest collection
sh -c "PYTEST_ADDOPTS= python -m pytest -p no:cov --collect-only >>/dev/null"
sh -c "PYTEST_ADDOPTS= python3 -m pytest -p no:cov --collect-only >>/dev/null"
sh -c "rm -f .tox/.coverage.*"
# html report is used by Zuul CI to display reports
coverage run -m pytest {env:_EXTRAS} {env:PYTEST_ADDOPTS:} {posargs}
Expand All @@ -71,7 +71,7 @@ description = Runs all linting tasks
basepython = python3.10
commands =
# to run a single linter you can do "pre-commit run flake8"
python -m pre_commit run {posargs:--all --show-diff-on-failure}
python3 -m pre_commit run {posargs:--all --show-diff-on-failure}
deps =
pre-commit>=2.21.0
check-jsonschema>=0.20.0
Expand Down Expand Up @@ -105,11 +105,11 @@ deps =
setenv =
commands =
rm -rfv {toxinidir}/dist/
python -m build \
python3 -m build \
--outdir {toxinidir}/dist/ \
{toxinidir}
# metadata validation
sh -c "python -m twine check --strict {toxinidir}/dist/*"
sh -c "python3 -m twine check --strict {toxinidir}/dist/*"

[testenv:snap]
description = Builds a snap package
Expand Down

0 comments on commit a7174f1

Please sign in to comment.