From 8f5d94b5992037f309ee72c5f85121e36b1a8d4c Mon Sep 17 00:00:00 2001 From: Pavel Smirnov Date: Thu, 18 Apr 2024 15:18:31 +0300 Subject: [PATCH] Setting KQC Python minimum requirement officially as 3.10 --- .github/ISSUE_TEMPLATE/bug-report.yml | 8 ++++---- docs/developer/setup.rst | 13 +++++++------ docs/developer/standalone.rst | 2 +- klayout_package/python/pyproject.toml | 2 +- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 3854a84ba..4f2bced28 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -30,10 +30,10 @@ body: label: Versions description: Please specify the SW versions of KQCircuits, KLayout, Python and your OS. placeholder: | - KQCircuits: 4.6.5 - KLayout: 0.28.5 - Python: 3.8.10 - OS: Ubuntu 20.04.5 LTS + KQCircuits: 4.7.22 + KLayout: 0.29.0 + Python: 3.10.14 + OS: Ubuntu 22.04.4 LTS validations: required: true diff --git a/docs/developer/setup.rst b/docs/developer/setup.rst index ab1d538dd..01f7ae0de 100644 --- a/docs/developer/setup.rst +++ b/docs/developer/setup.rst @@ -15,14 +15,15 @@ duplicate macros and possibly other problems. Python ^^^^^^ -KQCircuits installation requires Python 3, which should be already installed on Linux. On Windows -you may have to install it. If your Python installation does not already contain the ``pip`` package +KQCircuits installation requires Python 3.10 minimum. This should already come pre-packaged at least +with Ubuntu 22.04. On Windows platforms Python needs to be installed manually. +If your Python installation does not already contain the ``pip`` package manager, you have to also install that. Successfully tested versions: -- Ubuntu 18.04, 20.04 and 22.04 LTS with Python 3.6.9, 3.8.5 and 3.10.12 -- Windows: Python 3.7.6, 3.8.5, 3.11 +- Ubuntu 20.04 and 22.04 LTS with Python 3.10.14 +- Windows: Python 3.11.2 Sources ------- @@ -156,9 +157,9 @@ administrator privileges, and do:: Install the required packages by opening command prompt in your KQCircuits folder (which contains :git_url:`requirements_within_klayout_windows.txt`), and writing:: - pip install -r requirements_within_klayout_windows.txt --target=%HOMEPATH%\AppData\Roaming\KLayout\lib\python3.7\site-packages + pip install -r requirements_within_klayout_windows.txt --target=%HOMEPATH%\AppData\Roaming\KLayout\lib\python3.10\site-packages -(replace ``python3.7`` in this path by the python version used by your KLayout +(replace ``python3.10`` in this path by the python version used by your KLayout version) The previous command installs the packages to KLayout's embedded Python diff --git a/docs/developer/standalone.rst b/docs/developer/standalone.rst index facf56432..67d30aca9 100644 --- a/docs/developer/standalone.rst +++ b/docs/developer/standalone.rst @@ -19,7 +19,7 @@ Python 3 and ``pip`` installed. Successfully tested with -- Python 3.7.6, 3.8.5, 3.10.12 +- Python 3.10.14, 3.11.2 Older versions of klayout (<0.28) do not support certain new features of KQCircuits. If you want to use older klayout you may need to check out a diff --git a/klayout_package/python/pyproject.toml b/klayout_package/python/pyproject.toml index 14715cc31..de89975e4 100644 --- a/klayout_package/python/pyproject.toml +++ b/klayout_package/python/pyproject.toml @@ -5,7 +5,7 @@ description = "KQCircuits is a KLayout/Python-based superconducting quantum circ authors = [ {name = "IQM Finland Oy", email = "kqcircuits@meetiqm.com"}, ] -requires-python = ">=3.6.9" +requires-python = ">=3.10" readme = "README.md" license = {text = "GPL-3.0"} classifiers = [