-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make qualang-tools compatible with python 3.12 (#249)
* update pyproject.toml to allow python 3.12 * support 3.12 * add tests for python 3.8, 3.12 * add per-python artifact * fix test command * update package name * update flake8 * update lock file * ignore E231 * Fix flake8 E226 errors * Remove E231 error * flake8 remaining fixes * Change flake8 to 5.0.4 to satisfy python 3.8 * Remove whitespace, ignore errors in flake8 * fix failing test due to differing numpy behaviour --------- Co-authored-by: Yoav Romach <[email protected]> Co-authored-by: Serwan Asaad <[email protected]> Co-authored-by: Serwan Asaad <[email protected]>
- Loading branch information
1 parent
54b2b16
commit be92404
Showing
17 changed files
with
682 additions
and
527 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
select = C,E,F,W,B,B950 | ||
ignore = E203, E501, W503, E741, B950, F405, F403 | ||
ignore = E203, E501, W503, E741, B950, F405, F403, E231, E713, W604, E241, E221, E222, E225 | ||
exclude = **/tests/** | ||
per-file-ignores = | ||
qualang_tools/config/components.py:E743 |
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,32 +4,33 @@ version = "v0.18.1" | |
description = "The qualang_tools package includes various tools related to QUA programs in Python" | ||
authors = ["Quantum Machines <[email protected]>"] | ||
license = "BSD-3-Clause" | ||
packages = [ | ||
{ include = "qualang_tools" } | ||
] | ||
include = [ | ||
] | ||
exclude = [ | ||
"**/tests/**", | ||
] | ||
packages = [{ include = "qualang_tools" }] | ||
include = [] | ||
exclude = ["**/tests/**"] | ||
readme = "README.md" | ||
homepage = "https://github.com/qua-platform/py-qua-tools" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.12" | ||
python = ">=3.8, <3.13" | ||
matplotlib = "^3.4.2" | ||
numpy = "^1.17.0" | ||
qm-qua = "^1.1.7" | ||
scipy = "^1.7.1" | ||
numpy = [ | ||
{ version = ">=1.17.0, <2", python = ">=3.8,<3.12" }, | ||
{ version = ">=1.26.0, <2", python = ">=3.12" }, | ||
] | ||
qm-qua = { version = ">=1.1.7", python = ">=3.8,<3.13" } | ||
scipy = [ | ||
{ version = ">=1.7.1, <1.10.0", python = ">=3.8,<3.12" }, | ||
{ version = ">=1.11.0", python = ">=3.12" }, | ||
] | ||
pandas = { version = ">=1.2.4", optional = true } | ||
dash = { version = "^2.0.0", optional = true } | ||
dash-html-components = { version = "^2.0.0", optional = true } | ||
dash-core-components = { version = "^2.0.0", optional = true } | ||
dash-bootstrap-components = { version = "^1.0.0", optional = true } | ||
dash-bootstrap-components = { version = "^1.6.0", optional = true, python = ">=3.8,<4" } | ||
dash-cytoscape = { version = "^0.3.0", optional = true } | ||
dash-table = { version = "^5.0.0", optional = true } | ||
dash-dangerously-set-inner-html = { version = "^0.0.2", optional = true } | ||
docutils = { version = ">=0.14.0", optional = true } | ||
docutils = { version = ">=0.14.0 <= 0.21", optional = true } | ||
waitress = { version = "^2.0.0", optional = true } | ||
dill = { version = "^0.3.4", optional = true } | ||
pypiwin32 = { version = "^223", optional = true } | ||
|
@@ -41,13 +42,24 @@ grpclib = "0.4.5" | |
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2.5" | ||
black = "^24.3" | ||
poethepoet = "^0.11.0" | ||
flake8 = "^4.0.1" | ||
poethepoet = "^0.18.0" | ||
flake8 = "^5.0.4" | ||
setuptools = "^69.0.2" | ||
|
||
[tool.poetry.extras] | ||
interplot = ["dill", "pypiwin32", "ipython"] | ||
configbuilder = ["pandas", "dash", "dash-html-components", "dash-core-components", "dash-bootstrap-components", "dash-cytoscape", "dash-table", "dash-dangerously-set-inner-html", "docutils", "waitress"] | ||
configbuilder = [ | ||
"pandas", | ||
"dash", | ||
"dash-html-components", | ||
"dash-core-components", | ||
"dash-bootstrap-components", | ||
"dash-cytoscape", | ||
"dash-table", | ||
"dash-dangerously-set-inner-html", | ||
"docutils", | ||
"waitress", | ||
] | ||
datahandler = ["xarray", "netcdf4"] | ||
|
||
[tool.black] | ||
|
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
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
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
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
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
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
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
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.