Skip to content

Commit

Permalink
pulser core 1.3 + validation (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-quelle authored Feb 18, 2025
1 parent e6ada66 commit be8e6e9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/emu_base/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers=[
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"pulser-core==1.1.*",
"pulser-core==1.3.*",
"torch==2.5.0"]
dynamic = ["version"]

Expand Down
2 changes: 1 addition & 1 deletion ci/emu_mps/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers=[
]
dynamic = ["version"]
dependencies = [
"emu-base==1.2.4"]
"emu-base==1.2.5"]

[tool.hatch.version]
path = "../../emu_mps/__init__.py"
Expand Down
2 changes: 1 addition & 1 deletion emu_base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
"DEFAULT_MAX_KRYLOV_DIM",
]

__version__ = "1.2.4"
__version__ = "1.2.5"
2 changes: 1 addition & 1 deletion emu_mps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
"SecondMomentOfEnergy",
]

__version__ = "1.2.4"
__version__ = "1.2.5"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers=[
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"pulser-core==1.2.*",
"pulser-core==1.3.*",
"torch==2.5.0"] # The version in .pre-commit-config.yaml must match
dynamic = ["version"]

Expand Down
15 changes: 15 additions & 0 deletions test_dependency_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ then
exit 1
fi

pulser_root_string="$(grep pulser-core pyproject.toml)"
[[ "$pulser_root_string" =~ .*([0-9]\.[0-9\*]\.[0-9\*]).* ]]
pulser_root_dep="${BASH_REMATCH[1]}"
echo "The root package depends on pulser-core version $pulser_root_dep"

pulser_base_string="$(grep pulser-core ci/emu_base/pyproject.toml)"
[[ "$pulser_base_string" =~ .*([0-9]\.[0-9\*]\.[0-9\*]).* ]]
pulser_base_dep="${BASH_REMATCH[1]}"
echo "emu-base depends on pulser-core version $pulser_base_dep"

if [[ "$pulser_root_dep" != "$pulser_base_dep" ]]
then
exit 1
fi

torch_pre_commit_string="$(grep torch .pre-commit-config.yaml)"
[[ "$torch_pre_commit_string" =~ .*([0-9]\.[0-9]\.[0-9]).* ]]
torch_pre_commit_version="${BASH_REMATCH[1]}"
Expand Down

0 comments on commit be8e6e9

Please sign in to comment.