Use python3 instead of python in examples
This commit is contained in:
@@ -75,15 +75,15 @@ env:
|
|||||||
# Note: TWINE_PASSWORD is set to a PyPI API token in Travis settings
|
# Note: TWINE_PASSWORD is set to a PyPI API token in Travis settings
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python -m pip install twine cibuildwheel==1.1.0
|
- python3 -m pip install twine cibuildwheel==1.1.0
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the wheels, put them into './wheelhouse'
|
# build the wheels, put them into './wheelhouse'
|
||||||
- python -m cibuildwheel --output-dir wheelhouse
|
- python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# if the release was tagged, upload them to PyPI
|
# if the release was tagged, upload them to PyPI
|
||||||
- if [[ $TRAVIS_TAG ]]; then python -m twine upload wheelhouse/*.whl; fi
|
- if [[ $TRAVIS_TAG ]]; then python3 -m twine upload wheelhouse/*.whl; fi
|
||||||
```
|
```
|
||||||
|
|
||||||
For more information, including how to build on Appveyor, Azure, CircleCI, check out the [documentation](https://cibuildwheel.readthedocs.org) and also check out [the examples](https://github.com/joerick/cibuildwheel/tree/master/examples).
|
For more information, including how to build on Appveyor, Azure, CircleCI, check out the [documentation](https://cibuildwheel.readthedocs.org) and also check out [the examples](https://github.com/joerick/cibuildwheel/tree/master/examples).
|
||||||
@@ -138,8 +138,8 @@ Changelog
|
|||||||
|
|
||||||
_7 December 2019_
|
_7 December 2019_
|
||||||
|
|
||||||
- ✨ Add support for building manylinux2014 wheels. To use, set
|
- ✨ Add support for building manylinux2014 wheels. To use, set
|
||||||
`CIBW_MANYLINUX_X86_64_IMAGE` and CIBW_MANYLINUX_I686_IMAGE to
|
`CIBW_MANYLINUX_X86_64_IMAGE` and CIBW_MANYLINUX_I686_IMAGE to
|
||||||
`manylinux2014`.
|
`manylinux2014`.
|
||||||
- ✨ Add support for [Linux on Appveyor](https://www.appveyor.com/blog/2018/03/06/appveyor-for-linux/) (#204, #207)
|
- ✨ Add support for [Linux on Appveyor](https://www.appveyor.com/blog/2018/03/06/appveyor-for-linux/) (#204, #207)
|
||||||
- ✨ Add `CIBW_REPAIR_WHEEL_COMMAND` env variable, for changing how
|
- ✨ Add `CIBW_REPAIR_WHEEL_COMMAND` env variable, for changing how
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ image:
|
|||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
# windows
|
# windows
|
||||||
- cmd: pip install cibuildwheel==1.1.0
|
- cmd: pip3 install cibuildwheel==1.1.0
|
||||||
- cmd: cibuildwheel --output-dir wheelhouse
|
- cmd: cibuildwheel --output-dir wheelhouse
|
||||||
# linux
|
# linux
|
||||||
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install cibuildwheel==1.1.0"
|
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install cibuildwheel==1.1.0"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
- bash: |
|
- bash: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip install cibuildwheel==1.1.0
|
pip3 install cibuildwheel==1.1.0
|
||||||
cibuildwheel --output-dir wheelhouse .
|
cibuildwheel --output-dir wheelhouse .
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
inputs: {pathtoPublish: 'wheelhouse'}
|
inputs: {pathtoPublish: 'wheelhouse'}
|
||||||
@@ -15,8 +15,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
- bash: |
|
- bash: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip install cibuildwheel==1.1.0
|
pip3 install cibuildwheel==1.1.0
|
||||||
cibuildwheel --output-dir wheelhouse .
|
cibuildwheel --output-dir wheelhouse .
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
inputs: {pathtoPublish: 'wheelhouse'}
|
inputs: {pathtoPublish: 'wheelhouse'}
|
||||||
@@ -28,8 +28,8 @@ jobs:
|
|||||||
- script: choco install vcpython27 -f -y
|
- script: choco install vcpython27 -f -y
|
||||||
displayName: Install Visual C++ for Python 2.7
|
displayName: Install Visual C++ for Python 2.7
|
||||||
- bash: |
|
- bash: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip install cibuildwheel==1.1.0
|
pip3 install cibuildwheel==1.1.0
|
||||||
cibuildwheel --output-dir wheelhouse .
|
cibuildwheel --output-dir wheelhouse .
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
inputs: {pathtoPublish: 'wheelhouse'}
|
inputs: {pathtoPublish: 'wheelhouse'}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build the Linux wheels.
|
name: Build the Linux wheels.
|
||||||
command: |
|
command: |
|
||||||
pip install --user cibuildwheel==1.1.0
|
pip3 install --user cibuildwheel==1.1.0
|
||||||
cibuildwheel --output-dir wheelhouse
|
cibuildwheel --output-dir wheelhouse
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: wheelhouse/
|
path: wheelhouse/
|
||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build the OS X wheels.
|
name: Build the OS X wheels.
|
||||||
command: |
|
command: |
|
||||||
pip install --user cibuildwheel==1.1.0
|
pip3 install --user cibuildwheel==1.1.0
|
||||||
cibuildwheel --output-dir wheelhouse
|
cibuildwheel --output-dir wheelhouse
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: wheelhouse/
|
path: wheelhouse/
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ env:
|
|||||||
# Note: TWINE_PASSWORD is set to a PyPI API token in Travis settings
|
# Note: TWINE_PASSWORD is set to a PyPI API token in Travis settings
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python -m pip install twine cibuildwheel==1.0.0
|
- python3 -m pip install twine cibuildwheel==1.1.0
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the wheels, put them into './wheelhouse'
|
# build the wheels, put them into './wheelhouse'
|
||||||
- python -m cibuildwheel --output-dir wheelhouse
|
- python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# if the release was tagged, upload them to PyPI
|
# if the release was tagged, upload them to PyPI
|
||||||
- if [[ $TRAVIS_TAG ]]; then python -m twine upload wheelhouse/*.whl; fi
|
- if [[ $TRAVIS_TAG ]]; then python3 -m twine upload wheelhouse/*.whl; fi
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ jobs:
|
|||||||
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python -m pip install cibuildwheel==1.1.0
|
- python3 -m pip install cibuildwheel==1.1.0
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the wheels, put them into './wheelhouse'
|
# build the wheels, put them into './wheelhouse'
|
||||||
- python -m cibuildwheel --output-dir wheelhouse
|
- python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ before_install:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python -m pip install pytest
|
- python3 -m pip install pytest
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- python setup.py install
|
- python3 setup.py install
|
||||||
- pytest
|
- pytest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
@@ -46,31 +46,31 @@ jobs:
|
|||||||
- stage: deploy
|
- stage: deploy
|
||||||
name: Deploy source distribution
|
name: Deploy source distribution
|
||||||
install: skip
|
install: skip
|
||||||
script: python setup.py sdist --formats=gztar
|
script: python3 setup.py sdist --formats=gztar
|
||||||
after_success: python -m twine upload --skip-existing dist/*.tar.gz
|
after_success: python3 -m twine upload --skip-existing dist/*.tar.gz
|
||||||
# Deploy on linux
|
# Deploy on linux
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
name: Build and deploy Linux wheels
|
name: Build and deploy Linux wheels
|
||||||
services: docker
|
services: docker
|
||||||
install: python -m pip install twine cibuildwheel==1.0.0
|
install: python3 -m pip install twine cibuildwheel==1.1.0
|
||||||
script: python -m cibuildwheel --output-dir wheelhouse
|
script: python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
after_success: python -m twine upload --skip-existing wheelhouse/*.whl
|
after_success: python3 -m twine upload --skip-existing wheelhouse/*.whl
|
||||||
# Deploy on mac
|
# Deploy on mac
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
name: Build and deploy macOS wheels
|
name: Build and deploy macOS wheels
|
||||||
os: osx
|
os: osx
|
||||||
language: shell
|
language: shell
|
||||||
install: python -m pip install twine cibuildwheel==1.0.0
|
install: python3 -m pip install twine cibuildwheel==1.1.0
|
||||||
script: python -m cibuildwheel --output-dir wheelhouse
|
script: python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
after_success: python -m twine upload --skip-existing wheelhouse/*.whl
|
after_success: python3 -m twine upload --skip-existing wheelhouse/*.whl
|
||||||
# Deploy on windows
|
# Deploy on windows
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
name: Build and deploy Windows wheels
|
name: Build and deploy Windows wheels
|
||||||
os: windows
|
os: windows
|
||||||
language: shell
|
language: shell
|
||||||
install: python -m pip install twine cibuildwheel==1.0.0
|
install: python3 -m pip install twine cibuildwheel==1.1.0
|
||||||
script: python -m cibuildwheel --output-dir wheelhouse
|
script: python3 -m cibuildwheel --output-dir wheelhouse
|
||||||
after_success: python -m twine upload --skip-existing wheelhouse/*.whl
|
after_success: python3 -m twine upload --skip-existing wheelhouse/*.whl
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
|||||||
Reference in New Issue
Block a user