Skip to content

Commit

Permalink
855 pyside2 (#898)
Browse files Browse the repository at this point in the history
* Try/test answer from issue in tox repository.

* Test the solution from tox issue.

* Tox changed syntax and we have to change our code.

* More changes by tox that are not backward compatible.

* Have to look up updated tox syntax.

* try different syntax

* Wrong syntax.

* Better syntax

* Reset and try this.

* Just add all from requirements.txt.

* An alternate solution.

* All of alternate fix.
  • Loading branch information
priti-ashvin-shah-ibm authored Dec 27, 2022
1 parent f88b93a commit c53e31f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U virtualenv setuptools wheel git+https://github.com/tox-dev/tox.git@3.28.0
pip install -U virtualenv setuptools wheel tox
sudo apt update
sudo apt-get install graphviz pandoc qt5-default
- name: Build and publish
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
ubuntu-20.04-${{ matrix.python-version }}
- name: Install Deps
run: |
python -m pip install -U git+https://github.com/tox-dev/tox.git@3.28.0 setuptools virtualenv wheel
python -m pip install -U tox setuptools virtualenv wheel
sudo apt install libglu1-mesa libglu1-mesa-dev
- name: Install and Run Tests
run: tox -e py
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
macOS-latest-${{ matrix.python-version }}-pip-
macOS-latest-${{ matrix.python-version }}
- name: Install Deps
run: python -m pip install -U git+https://github.com/tox-dev/tox.git@3.28.0 setuptools virtualenv wheel
run: python -m pip install -U tox setuptools virtualenv wheel
- name: Install and Run Tests
run: tox -e py
# windows-tests:
Expand All @@ -92,7 +92,7 @@ jobs:
# ${{ runner.os }}-${{ matrix.python-version }}-
# - name: Install deps
# run: |
# python -m pip install -U git+https://github.com/tox-dev/tox.git@3.28.0 cvxopt setuptools virtualenv wheel
# python -m pip install -U tox cvxopt setuptools virtualenv wheel
# shell: pwsh
# - name: Install and Run Tests
# run: tox --sitepackages -e py
Expand All @@ -116,7 +116,7 @@ jobs:
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}-
- name: Install Deps
run: python -m pip install -U git+https://github.com/tox-dev/tox.git@3.28.0
run: python -m pip install -U tox
- name: Run lint
run: tox -elint
docs:
Expand All @@ -141,7 +141,7 @@ jobs:
${{ runner.os }}-
- name: Install Deps
run: |
python -m pip install -U git+https://github.com/tox-dev/tox.git@3.28.0
python -m pip install -U tox
sudo apt update
sudo apt install -y graphviz pandoc qt5-default
- name: Build Docs
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
# run: |
# set -e
# python -m pip install --upgrade pip
# python -m pip install -U git+https://github.com/tox-dev/tox.git@3.28.0
# python -m pip install -U tox
# sudo apt install -y graphviz pandoc qt5-default
# pip check
# shell: bash
Expand Down
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tox]
minversion = 2.1
envlist = py39, lint, docs
skipsdist = True

[testenv]
usedevelop = true
Expand All @@ -17,6 +16,7 @@ commands =

[testenv:lint]
basepython = python3.9
skip_install = true
deps =
pylint
ipython
Expand All @@ -27,16 +27,21 @@ commands =

[testenv:docs]
basepython = python3.9
# This is not optimal, will require more organization of Metal project.
# Or, sloppy.... put all the packages from requirement.txt into requirement-dev.txt.
skip_install = false
envdir = .tox/docs
passenv = DOCS_FROM_MASTER QISKIT_DOCS_BUILD_TUTORIALS
passenv = DOCS_FROM_MASTER, QISKIT_DOCS_BUILD_TUTORIALS
deps =
-r requirements-dev.txt
allowlist_externals=touch
commands =
touch {toxinidir}/docs/.buildingdocs
sphinx-build -b html {posargs} {toxinidir}/docs/ {toxinidir}/docs/_build/html

[testenv:gettext]
basepython = python3.9
skip_install = true
envdir = .tox/docs
deps =
-r requirements-dev.txt
Expand Down

0 comments on commit c53e31f

Please sign in to comment.