Skip to content

Commit

Permalink
Revert "[infra] Pin conan version to 2.0.7. (#937)" (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Jul 14, 2023
1 parent c5ef1e9 commit 8beb11a
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 49 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ jobs:
- 'pytket/**'
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: parse version from conanfile
id: tket_ver
run: |
Expand Down Expand Up @@ -107,8 +105,6 @@ jobs:
python-version: '3.10'
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect
Expand Down Expand Up @@ -220,8 +216,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect --force
Expand Down Expand Up @@ -275,8 +269,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect
Expand Down Expand Up @@ -377,8 +369,6 @@ jobs:
python-version: '3.10'
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect
Expand Down Expand Up @@ -461,8 +451,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect
Expand Down Expand Up @@ -535,8 +523,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect --force
Expand Down Expand Up @@ -566,7 +552,7 @@ jobs:
eval "$(pyenv init -)"
pyenv shell tket-3.9
PKG_CONFIG_PATH="$(brew --prefix openblas)"/lib/pkgconfig pip install -U scipy
pip install conan==2.0.7
pip install -U conan
conan remove -c "pybind11/*"
conan remove -c "pytket/*"
conan create recipes/pybind11
Expand All @@ -584,7 +570,7 @@ jobs:
eval "$(pyenv init -)"
pyenv shell tket-3.10
PKG_CONFIG_PATH="$(brew --prefix openblas)"/lib/pkgconfig pip install -U scipy
pip install conan==2.0.7
pip install -U conan
conan remove -c "pybind11/*"
conan remove -c "pytket/*"
conan create recipes/pybind11
Expand All @@ -602,7 +588,7 @@ jobs:
eval "$(pyenv init -)"
pyenv shell tket-3.11
PKG_CONFIG_PATH="$(brew --prefix openblas)"/lib/pkgconfig pip install -U scipy
pip install conan==2.0.7
pip install -U conan
conan remove -c "pybind11/*"
conan remove -c "pytket/*"
conan create recipes/pybind11
Expand All @@ -616,8 +602,6 @@ jobs:
pytest --ignore=simulator/
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Upload package
if: github.event_name == 'push' && github.ref == 'refs/heads/develop' && needs.check_changes.outputs.tket_changed == 'true'
run: |
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/build_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ jobs:
python-version: '3.10'
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
run: conan profile detect
- name: add remote
Expand Down Expand Up @@ -98,8 +96,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
run: conan profile detect --force
- name: set remotes
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
run: conan profile detect
- name: add remote
Expand All @@ -59,7 +57,7 @@ jobs:
ccache -p
- name: Build tket
run: |
conan install tket --user=tket --channel=stable -s build_type=Debug -o boost/*:header_only=True -o tket/*:profile_coverage=True -o with_test=True -of build/tket
conan install tket --user=tket --channel=stable -s build_type=Debug --build=missing -o boost/*:header_only=True -o tket/*:profile_coverage=True -o with_test=True -of build/tket
conan build tket --user=tket --channel=stable -s build_type=Debug -o boost/*:header_only=True -o tket/*:profile_coverage=True -o with_test=True -o test-tket/*:with_coverage=True -of build/tket
conan export-pkg tket --user=tket --channel=stable -s build_type=Debug -o boost/*:header_only=True -o tket/*:profile_coverage=True -o with_test=True -of build/tket -tf ""
- name: Install runtime test requirements
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linuxbuildlib
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -evu
export PYBIN=/opt/python/cp39-cp39/bin

${PYBIN}/pip install --upgrade pip
${PYBIN}/pip install conan==2.0.7
${PYBIN}/pip install conan~=2.0

export CONAN_CMD=${PYBIN}/conan

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linuxbuildpackages
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -evu
# Choose a Python to install conan
export PYBIN=/opt/python/cp310-cp310/bin

${PYBIN}/pip install conan==2.0.7
${PYBIN}/pip install conan

export CONAN_CMD=${PYBIN}/conan

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linuxbuildwheel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export PYBIN=/opt/python/${PY_TAG}/bin
export PYEX=${PYBIN}/python
${PYEX} -m venv env
. env/bin/activate
${PYEX} -m pip install -U pip build conan==2.0.7
${PYEX} -m pip install -U pip build conan
CONAN_CMD=${PYBIN}/conan
${CONAN_CMD} profile detect
${CONAN_CMD} remote add tket-libs https://quantinuumsw.jfrog.io/artifactory/api/conan/tket1-libs
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect
Expand Down Expand Up @@ -128,7 +126,7 @@ jobs:
run: |
eval "$(pyenv init -)"
pyenv shell tket-${{ matrix.python-version }}
python -m pip install conan==2.0.7
python -m pip install -U conan
conan profile detect --force
conan remote add tket-libs https://quantinuumsw.jfrog.io/artifactory/api/conan/tket1-libs --force --index 0
conan remove -c 'tket/*'
Expand Down Expand Up @@ -166,8 +164,6 @@ jobs:
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/test_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ jobs:
python-version: '3.10'
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
run: conan profile detect
- name: add remote
Expand Down Expand Up @@ -103,8 +101,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
shell: bash
run: conan profile detect --force
Expand All @@ -131,8 +127,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
run: conan profile detect
- name: add remote
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test_libs_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
python-version: '3.10'
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
run: conan profile detect
- name: add remote
Expand All @@ -47,8 +45,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: create profile
shell: bash
run: conan profile detect --force
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
run: sudo apt update
- name: Install conan
uses: turtlebrowser/get-conan@v1.2
with:
version: 2.0.7
- name: Set up conan
run: |
conan profile detect
Expand Down
2 changes: 1 addition & 1 deletion pytket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def package(self):
cmake.install()

def requirements(self):
self.requires("tket/1.2.26@tket/stable")
self.requires("tket/1.2.27@tket/stable")
self.requires("tklog/0.3.3@tket/stable")
self.requires("tkrng/0.3.3@tket/stable")
self.requires("tkassert/0.3.3@tket/stable")
Expand Down
2 changes: 1 addition & 1 deletion pytket/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.4", "conan==2.0.7", "cmake>=3.26"]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.4", "conan>=2.0", "cmake>=3.26"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion tket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class TketConan(ConanFile):
name = "tket"
version = "1.2.26"
version = "1.2.27"
package_type = "library"
license = "Apache 2"
homepage = "https://github.com/CQCL/tket"
Expand Down

0 comments on commit 8beb11a

Please sign in to comment.