From 21f7b99ed8f35ae3e87f54b6219ebcbc503337f2 Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Tue, 9 Jul 2024 13:55:55 +0200 Subject: [PATCH 1/7] Update version.py --- src/tequila/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tequila/version.py b/src/tequila/version.py index 862db8be..88cc42f3 100644 --- a/src/tequila/version.py +++ b/src/tequila/version.py @@ -1,2 +1,2 @@ -__version__ = "1.9.6dev" +__version__ = "1.9.6" __author__ = "Tequila Developers " From e444a5df36f971012f1f760c8982dbb112c5bfe3 Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Tue, 9 Jul 2024 14:45:37 +0200 Subject: [PATCH 2/7] Update pypi.yml --- .github/workflows/pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 09e44946..4f3f6f3e 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -30,7 +30,7 @@ jobs: # remove qulacs from dependencies (issues with windows and mac) # users need to install themselves if they want it - #cat requirements.txt | sed "s|qulacs|#qulacs|g" > tmp.txt + cat requirements.txt | sed "s|qulacs|#qulacs|g" > tmp.txt rm requirements.txt mv tmp.txt requirements.txt python setup.py sdist bdist_wheel From 9fc532d300550201c527d2ca60baf680ac7d71b1 Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Tue, 9 Jul 2024 14:48:26 +0200 Subject: [PATCH 3/7] Update pypi.yml --- .github/workflows/pypi.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4f3f6f3e..489c3499 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -5,6 +5,8 @@ name: Upload Python Package on: release: types: [released] + workflow_dispatch + jobs: deploy: From 88b22f859f53dcb9c6316f84e4393df000282bbf Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Tue, 9 Jul 2024 14:49:50 +0200 Subject: [PATCH 4/7] Create pypi_manual.yml --- .github/workflows/pypi_manual.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pypi_manual.yml diff --git a/.github/workflows/pypi_manual.yml b/.github/workflows/pypi_manual.yml new file mode 100644 index 00000000..584a288b --- /dev/null +++ b/.github/workflows/pypi_manual.yml @@ -0,0 +1,36 @@ +# thanks Justin Connor :-) +# see here for source: https://justinoconnor.codes/2021/05/02/automated-pypi-package-release-versioning-with-github/ +name: Upload Python Package + +on: workflow_dispatch + + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install requests + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + # remove qulacs from dependencies (issues with windows and mac) + # users need to install themselves if they want it + + cat requirements.txt | sed "s|qulacs|#qulacs|g" > tmp.txt + rm requirements.txt + mv tmp.txt requirements.txt + python setup.py sdist bdist_wheel + twine upload dist/* From 167e1b5d5698419282c8fa02cd747289934b846c Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Tue, 9 Jul 2024 14:50:22 +0200 Subject: [PATCH 5/7] Update pypi.yml --- .github/workflows/pypi.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 489c3499..2b991aa3 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -5,7 +5,6 @@ name: Upload Python Package on: release: types: [released] - workflow_dispatch jobs: From 447ce870f5065f4fc80f450e3f65a8a1d64fabc2 Mon Sep 17 00:00:00 2001 From: Oliver Huettenhofer Date: Sun, 18 Aug 2024 20:15:06 +0200 Subject: [PATCH 6/7] Fix `U.export_to("path.png)"` syntax --- src/tequila/circuit/circuit.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/tequila/circuit/circuit.py b/src/tequila/circuit/circuit.py index 6ecf8cd0..394309ba 100644 --- a/src/tequila/circuit/circuit.py +++ b/src/tequila/circuit/circuit.py @@ -46,10 +46,7 @@ def export_to(self, *args, **kwargs): Convenience: see src/tequila/circuit/qpic.py - export_to for more Parameters """ - # this way we allow calling U.export_to("asd.png") instead of having to specify U.export_to(filename="asd.png") - if "circuit" not in kwargs: - kwargs["circuit"]=self - return export_to(*args, **kwargs) + return export_to(self, *args, **kwargs) @property def moments(self): From d1c2941f6ea7536824fb744bdff1b8c68a4494a9 Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Mon, 19 Aug 2024 10:23:19 +0200 Subject: [PATCH 7/7] Update version.py --- src/tequila/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tequila/version.py b/src/tequila/version.py index 88cc42f3..862db8be 100644 --- a/src/tequila/version.py +++ b/src/tequila/version.py @@ -1,2 +1,2 @@ -__version__ = "1.9.6" +__version__ = "1.9.6dev" __author__ = "Tequila Developers "