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

Use latest version of the dependencies #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
27 changes: 26 additions & 1 deletion bin/download_scopesim_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ fi

# deletes the temp directory
function cleanup {
rm -r "${DIR_WORK}"
# This requires --force because there are .git directories
# that have read-only files in them.
rm -rf "${DIR_WORK}"
echo "Deleted temp working directory ${DIR_WORK}"
}

Expand All @@ -41,6 +43,18 @@ else
DIR_DATA_SKYCALC="${DIR_DATA}/skycalc_ipy"
fi

function liberate_dependencies {
# Replace all ^ dependencies with >= so we test whether the software
# in the ScopeSim ecosystem works with the latest dependencies of each
# package. For example, we might have astropy = ^5.3.4 listed while
# 6.x.y is already out. Changing this here ensures we run at least one
# test with the most up to date dependencies.
# The Python version is kept at e.g. ^3.9 because otherwise poetry update
# will try (and fail) to find a solution for Python 4 as well.
sed -i 's/ = "^/ = ">=/g;s/python = ">=/python = "^/g' pyproject.toml
poetry update
}


# Get the right directories.
mkdir -p "${DIR_WORK}"
Expand All @@ -60,8 +74,15 @@ pip install poetry
# releases do not (always) have the test files.
# TODO: Add speXtra and Pickles?

git clone https://github.com/AstarVienna/astar-utils.git
pushd astar-utils
liberate_dependencies
poetry install --with=test
popd

git clone https://github.com/AstarVienna/skycalc_ipy.git
pushd skycalc_ipy
liberate_dependencies
poetry install --with=test,docs
popd

Expand All @@ -79,6 +100,7 @@ popd

git clone https://github.com/AstarVienna/ScopeSim.git
pushd ScopeSim
liberate_dependencies
poetry install --with=test,dev,docs
popd

Expand All @@ -89,6 +111,9 @@ pip install -e ".[test]"
popd


# Print debug info.
python -c "import scopesim; scopesim.bug_report()"


# Run the tests.
pushd skycalc_ipy
Expand Down
Loading