Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix emu-base dependency #15

Merged
merged 6 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ jobs:
- run: pip install pre-commit pyproject-flake8
- run: pre-commit install
- run: pre-commit run --all-files
test:
check_dependency_versions:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./test_dependency_versions.sh
test:
needs: check_dependency_versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
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 @@ -23,7 +23,7 @@ classifiers=[
]
dynamic = ["version"]
dependencies = [
"emu-base==1.2.0"]
"emu-base==1.2.2"]

[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.1"
__version__ = "1.2.2"
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.1"
__version__ = "1.2.2"
18 changes: 18 additions & 0 deletions test_dependency_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

mps_string=`grep emu-base ci/emu_mps/pyproject.toml`
[[ "$mps_string" =~ .*([0-9]\.[0-9]\.[0-9]).* ]]
mps_dep=${BASH_REMATCH[1]}
echo emu-mps depends on emu-base version $mps_dep

base_string=`grep version emu_base/__init__.py`
[[ "$base_string" =~ .*([0-9]\.[0-9]\.[0-9]).* ]]
base_version=${BASH_REMATCH[1]}
echo emu-base is version $base_version

if [[ $mps_dep == $base_version ]]
then
exit 0
else
exit 1
fi
Loading