-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Issue-181 | Prepare for summer school release (#182)
* Issue-181 | CD: release to PyPi on tag * Issue-181 | Documentation: fix tutorials * Issue-181 | CD: deploy docs * Issue 181 | Workflows: use cibuildwheel for package distributions * Issue 181 | Requirements specifications * Issue 181 | Requirements specs fix * Docs: contribution guidelines * Docs: installation and beginner guide
- Loading branch information
Showing
25 changed files
with
886 additions
and
3,606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2021, 2022. | ||
# | ||
# This code is licensed under the Apache License, Version 2.0. You may | ||
# obtain a copy of this license in the LICENSE.txt file in the root directory | ||
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Any modifications or derivative works of this code must retain this | ||
# copyright notice, and modified files need to carry a notice indicating | ||
# that they have been altered from the originals. | ||
|
||
name: Deploy Docs | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docs_publish: | ||
if: ${{ startsWith(github.ref, 'refs/heads/stable') && contains('["manoelmarques","mtreinish","dsvandet","awcross1","quantumjim","grace-harper-ibm","IceKhan13"]', github.actor) }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: ./.github/actions/install-machine-learning | ||
- name: Install Dependencies | ||
run: | | ||
pip install jupyter sphinx_rtd_theme qiskit-terra[visualization] 'torchvision<0.10.0' | ||
sudo apt-get install -y pandoc graphviz | ||
shell: bash | ||
- name: Build and publish | ||
env: | ||
encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }} | ||
encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }} | ||
QISKIT_PARALLEL: False | ||
QISKIT_DOCS_BUILD_TUTORIALS: 'always' | ||
run: | | ||
echo "earliest_version: 0.1.0" >> releasenotes/config.yaml | ||
tools/ignore_untagged_notes.sh | ||
make html | ||
tools/deploy_documentation.sh | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2022. | ||
# | ||
# This code is licensed under the Apache License, Version 2.0. You may | ||
# obtain a copy of this license in the LICENSE.txt file in the root directory | ||
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Any modifications or derivative works of this code must retain this | ||
# copyright notice, and modified files need to carry a notice indicating | ||
# that they have been altered from the originals. | ||
|
||
name: Release to PyPi | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_to_pypi: | ||
name: Build and push QEC wheels | ||
strategy: | ||
matrix: | ||
os: ["macOS-latest", "ubuntu-latest", "windows-2019"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
- name: Install cibuildwheel | ||
run: | | ||
python -m pip install cibuildwheel==2.2.2 | ||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Publish Wheels | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: qiskit | ||
run : | | ||
pip install -U twine | ||
twine upload wheelhouse/* | ||
publish_to_pypi_aarch64: | ||
name: Build and push QEC wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: all | ||
- name: Install cibuildwheel | ||
run: | | ||
python -m pip install cibuildwheel==2.2.2 twine | ||
- name: Build wheels | ||
run: | | ||
python -m cibuildwheel --output-dir wheelhouse | ||
env: | ||
CIBW_BEFORE_ALL_LINUX: "yum install -y https://dl.fedoraproject.org/pub/epel/7/aarch64/Packages/e/epel-release-7-12.noarch.rpm && yum install -y openblas-devel" | ||
CIBW_ARCHS_LINUX: aarch64 | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Upload to PyPI | ||
run: twine upload ./wheelhouse/*.whl | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: qiskit | ||
publish_to_pypi-arm64-macos: | ||
name: Build and push QEC wheels onarm64 macos | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["macOS-latest"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install deps | ||
run: python -m pip install -U cibuildwheel==2.2.2 twine | ||
- name: Build Wheels | ||
env: | ||
CIBW_ARCHS_MACOS: arm64 | ||
run: cibuildwheel --output-dir wheelhouse | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Upload to PyPI | ||
run: twine upload ./wheelhouse/*.whl | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: qiskit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.