1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Merge pull request #720 from kevin1024/use-python3-command

Use python3 (and pip3) command
This commit is contained in:
Sebastian Pipping
2023-06-19 15:07:23 +02:00
committed by GitHub
5 changed files with 12 additions and 12 deletions

View File

@@ -25,8 +25,8 @@ jobs:
- name: Install project dependencies - name: Install project dependencies
run: | run: |
pip install --upgrade pip pip3 install --upgrade pip
pip install codecov tox tox-gh-actions pip3 install codecov tox tox-gh-actions
- name: Run tests with tox - name: Run tests with tox
run: tox run: tox

View File

@@ -74,7 +74,7 @@ The PR reviewer is a second set of eyes to see if:
**Release Manager:** **Release Manager:**
- Ensure CI is passing. - Ensure CI is passing.
- Create a release on github and tag it with the changelog release notes. - Create a release on github and tag it with the changelog release notes.
- ``python setup.py build sdist bdist_wheel`` - ``python3 setup.py build sdist bdist_wheel``
- ``twine upload dist/*`` - ``twine upload dist/*``
- Go to ReadTheDocs build page and trigger a build https://readthedocs.org/projects/vcrpy/builds/ - Go to ReadTheDocs build page and trigger a build https://readthedocs.org/projects/vcrpy/builds/
@@ -127,7 +127,7 @@ in this example::
eval "$(pyenv init -)" eval "$(pyenv init -)"
# Setup your local system tox tooling # Setup your local system tox tooling
pip install tox tox-pyenv pip3 install tox tox-pyenv
# Install supported versions (at time of writing), this does not activate them # Install supported versions (at time of writing), this does not activate them
pyenv install 3.7.5 3.8.0 pypy3.8 pyenv install 3.7.5 3.8.0 pypy3.8

View File

@@ -4,7 +4,7 @@ Installation
VCR.py is a package on `PyPI <https://pypi.python.org>`__, so you can install VCR.py is a package on `PyPI <https://pypi.python.org>`__, so you can install
with pip:: with pip::
pip install vcrpy pip3 install vcrpy
Compatibility Compatibility
------------- -------------
@@ -35,7 +35,7 @@ rebuilding pyyaml.
1. Test if pyyaml is built with libyaml. This should work:: 1. Test if pyyaml is built with libyaml. This should work::
python -c 'from yaml import CLoader' python3 -c 'from yaml import CLoader'
2. Install libyaml according to your Linux distribution, or using `Homebrew 2. Install libyaml according to your Linux distribution, or using `Homebrew
<http://mxcl.github.com/homebrew/>`__ on Mac:: <http://mxcl.github.com/homebrew/>`__ on Mac::
@@ -46,8 +46,8 @@ rebuilding pyyaml.
3. Rebuild pyyaml with libyaml:: 3. Rebuild pyyaml with libyaml::
pip uninstall pyyaml pip3 uninstall pyyaml
pip --no-cache-dir install pyyaml pip3 --no-cache-dir install pyyaml
Upgrade Upgrade
------- -------
@@ -61,7 +61,7 @@ is to simply delete your cassettes and re-record all of them. VCR.py
also provides a migration script that attempts to upgrade your 0.x also provides a migration script that attempts to upgrade your 0.x
cassettes to the new 1.x format. To use it, run the following command:: cassettes to the new 1.x format. To use it, run the following command::
python -m vcr.migration PATH python3 -m vcr.migration PATH
The PATH can be either a path to the directory with cassettes or the The PATH can be either a path to the directory with cassettes or the
path to a single cassette. path to a single cassette.

View File

@@ -4,4 +4,4 @@
# If you are getting an INVOCATION ERROR for this script then there is # If you are getting an INVOCATION ERROR for this script then there is
# a good chance you are running on Windows. # a good chance you are running on Windows.
# You can and should use WSL for running tox on Windows when it calls bash scripts. # You can and should use WSL for running tox on Windows when it calls bash scripts.
REQUESTS_CA_BUNDLE=`python -m pytest_httpbin.certs` exec pytest "$@" REQUESTS_CA_BUNDLE=`python3 -m pytest_httpbin.certs` exec pytest "$@"

View File

@@ -7,7 +7,7 @@ It merges and deletes the request obsolete keys (protocol, host, port, path)
into new 'uri' key. into new 'uri' key.
Usage:: Usage::
python -m vcr.migration PATH python3 -m vcr.migration PATH
The PATH can be path to the directory with cassettes or cassette itself The PATH can be path to the directory with cassettes or cassette itself
""" """
@@ -138,7 +138,7 @@ def try_migrate(path):
def main(): def main():
if len(sys.argv) != 2: if len(sys.argv) != 2:
raise SystemExit( raise SystemExit(
"Please provide path to cassettes directory or file. " "Usage: python -m vcr.migration PATH" "Please provide path to cassettes directory or file. " "Usage: python3 -m vcr.migration PATH"
) )
path = sys.argv[1] path = sys.argv[1]