Skip to content

Commit

Permalink
Merge pull request #170 from qiboteam/py3.12
Browse files Browse the repository at this point in the history
Support Python 3.12
  • Loading branch information
alecandido authored Apr 26, 2024
2 parents 8eed737 + 415d90c commit ae546ef
Show file tree
Hide file tree
Showing 7 changed files with 213 additions and 1,385 deletions.
4 changes: 2 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

nix_direnv_watch_file flake.nix
nix_direnv_watch_file flake.lock
watch_file flake.nix
watch_file flake.lock
if ! use flake . --impure; then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, '3.10', '3.11']
python-version: [3.9, '3.10', '3.11', '3.12']
uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@main
with:
os: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, '3.10', '3.11']
python-version: [3.9, '3.10', '3.11', '3.12']
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main
with:
os: ${{ matrix.os }}
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
install.groups = ["dev" "test"];
install.allExtras = true;
};
version = "3.11";
version = "3.12";
};
}
];
Expand Down
1,558 changes: 194 additions & 1,364 deletions poetry.lock

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ classifiers = [
]

[tool.poetry.dependencies]
python=">=3.9.0,<3.12"
numba=">=0.51.0"
qibo=">=0.2.5"
python = "^3.9,<3.13"
numba = ">=0.59.0"
qibo = { git = "https://github.com/qiboteam/qibo.git" }
scipy = "^1.10.1"
psutil = "^5.9.5"

Expand All @@ -34,7 +34,7 @@ optional = true

[tool.poetry.group.test.dependencies]
pytest = "^7.3.1"
pylint = "^2.17.4"
pylint = "^3.0.3"
pytest-cov = "^4.1.0"
pytest-env = "^0.8.1"

Expand All @@ -50,9 +50,7 @@ output-format = "colorized"
output-format = "colorized"

[tool.coverage.run]
omit = [
"src/qibojit/backends/clifford_operations*",
]
omit = ["src/qibojit/backends/clifford_operations*"]

[tool.pytest.ini_options]
testpaths = ['src/qibojit/tests/']
Expand Down

0 comments on commit ae546ef

Please sign in to comment.