Skip to content

Commit a686610

Browse files
author
Samuel Moors
committed
merge branch 5.0.x
2 parents 7c6221a + d391629 commit a686610

File tree

147 files changed

+5735
-5669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+5735
-5669
lines changed

.github/workflows/container_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
ls dist
7575
export PREFIX=/tmp/$USER/$GITHUB_SHA
7676
pip install --prefix $PREFIX dist/easybuild[-_]framework*tar.gz
77-
pip install --prefix $PREFIX https://github.com/easybuilders/easybuild-easyblocks/archive/develop.tar.gz
77+
pip install --prefix $PREFIX https://github.com/easybuilders/easybuild-easyblocks/archive/5.0.x.tar.gz
7878
7979
- name: run test
8080
run: |
@@ -95,7 +95,7 @@ jobs:
9595
echo '%_dbpath %{_var}/lib/rpm' >> $HOME/.rpmmacros
9696
# build CentOS 7 container image for bzip2 1.0.8 using EasyBuild;
9797
# see https://docs.easybuild.io/en/latest/Containers.html
98-
curl -OL https://raw.githubusercontent.com/easybuilders/easybuild-easyconfigs/develop/easybuild/easyconfigs/b/bzip2/bzip2-1.0.8.eb
98+
curl -OL https://raw.githubusercontent.com/easybuilders/easybuild-easyconfigs/5.0.x/easybuild/easyconfigs/b/bzip2/bzip2-1.0.8.eb
9999
export EASYBUILD_CONTAINERPATH=$PWD
100100
export EASYBUILD_CONTAINER_CONFIG='bootstrap=docker,from=ghcr.io/easybuilders/centos-7.9-python3-amd64'
101101
eb bzip2-1.0.8.eb --containerize --experimental --container-build-image

.github/workflows/container_tests_apptainer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
ls dist
7575
export PREFIX=/tmp/$USER/$GITHUB_SHA
7676
pip install --prefix $PREFIX dist/easybuild[-_]framework*tar.gz
77-
pip install --prefix $PREFIX https://github.com/easybuilders/easybuild-easyblocks/archive/develop.tar.gz
77+
pip install --prefix $PREFIX https://github.com/easybuilders/easybuild-easyblocks/archive/5.0.x.tar.gz
7878
7979
- name: run test
8080
run: |
@@ -95,7 +95,7 @@ jobs:
9595
echo '%_dbpath %{_var}/lib/rpm' >> $HOME/.rpmmacros
9696
# build CentOS 7 container image for bzip2 1.0.8 using EasyBuild;
9797
# see https://docs.easybuild.io/en/latest/Containers.html
98-
curl -OL https://raw.githubusercontent.com/easybuilders/easybuild-easyconfigs/develop/easybuild/easyconfigs/b/bzip2/bzip2-1.0.8.eb
98+
curl -OL https://raw.githubusercontent.com/easybuilders/easybuild-easyconfigs/5.0.x/easybuild/easyconfigs/b/bzip2/bzip2-1.0.8.eb
9999
export EASYBUILD_CONTAINERPATH=$PWD
100100
export EASYBUILD_CONTAINER_CONFIG='bootstrap=docker,from=ghcr.io/easybuilders/centos-7.9-python3-amd64'
101101
export EASYBUILD_CONTAINER_TYPE='apptainer'

.github/workflows/eb_command.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-20.04
1515
strategy:
1616
matrix:
17-
python: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
17+
python: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
1818
fail-fast: false
1919
steps:
2020
- uses: actions/checkout@v3
@@ -32,6 +32,10 @@ jobs:
3232
# update to latest pip, check version
3333
pip install --upgrade pip
3434
pip --version
35+
if ! python -c "import distutils" 2> /dev/null; then
36+
# we need setuptools for distutils in Python 3.12+, needed for python setup.py sdist
37+
pip install --upgrade setuptools
38+
fi
3539
3640
# for modules tool
3741
APT_PKGS="lua5.2 liblua5.2-dev lua-filesystem lua-posix tcl tcl-dev"
@@ -91,7 +95,7 @@ jobs:
9195
pymajver=$(python -c 'import sys; print(sys.version_info[0])')
9296
pymajminver=$(python -c 'import sys; print(".".join(str(x) for x in sys.version_info[:2]))')
9397
# check patterns in verbose output
94-
for pattern in "^>> Considering .python.\.\.\." "^>> .python. version: ${pymajminver}\.[0-9]\+, which matches Python ${pymajver} version requirement" "^>> 'python' is able to import 'easybuild.framework', so retaining it" "^>> Selected Python command: python \(.*/bin/python\)" "^This is EasyBuild 4\.[0-9.]\+"; do
98+
for pattern in "^>> Considering .python3.\.\.\." "^>> .python3. version: ${pymajminver}\.[0-9]\+, which matches Python ${pymajver} version requirement" "^>> 'python3' is able to import 'easybuild.framework', so retaining it" "^>> Selected Python command: python3 \(.*/bin/python3\)" "^This is EasyBuild 5\.[0-9.]\+"; do
9599
echo "Looking for pattern \"${pattern}\" in eb_version.out..."
96100
grep "$pattern" eb_version.out
97101
done
@@ -103,7 +107,7 @@ jobs:
103107
for eb_python in "python${pymajver}" "python${pymajminver}"; do
104108
export EB_PYTHON="${eb_python}"
105109
eb --version | tee eb_version.out 2>&1
106-
for pattern in "^>> Considering .${eb_python}.\.\.\." "^>> .${eb_python}. version: ${pymajminver}\.[0-9]\+, which matches Python ${pymajver} version requirement" "^>> '${eb_python}' is able to import 'easybuild.framework', so retaining it" "^>> Selected Python command: ${eb_python} \(.*/bin/${eb_python}\)" "^This is EasyBuild 4\.[0-9.]\+"; do
110+
for pattern in "^>> Considering .${eb_python}.\.\.\." "^>> .${eb_python}. version: ${pymajminver}\.[0-9]\+, which matches Python ${pymajver} version requirement" "^>> '${eb_python}' is able to import 'easybuild.framework', so retaining it" "^>> Selected Python command: ${eb_python} \(.*/bin/${eb_python}\)" "^This is EasyBuild 5\.[0-9.]\+"; do
107111
echo "Looking for pattern \"${pattern}\" in eb_version.out..."
108112
grep "$pattern" eb_version.out
109113
done

.github/workflows/end2end.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
strategy:
88
matrix:
99
container:
10-
- centos-7.9
1110
- centos-8.5
1211
- fedora-36
1312
- opensuse-15.4
@@ -26,17 +25,17 @@ jobs:
2625
run: |
2726
cd $HOME
2827
for pkg in easyblocks easyconfigs; do
29-
curl -OL https://github.com/easybuilders/easybuild-${pkg}/archive/develop.tar.gz
30-
tar xfz develop.tar.gz
31-
rm -f develop.tar.gz
28+
curl -OL https://github.com/easybuilders/easybuild-${pkg}/archive/5.0.x.tar.gz
29+
tar xfz 5.0.x.tar.gz
30+
rm -f 5.0.x.tar.gz
3231
done
3332
3433
- name: Set up environment
3534
shell: bash
3635
run: |
3736
# collect environment variables to be set in subsequent steps in script that can be sourced
3837
echo "export PATH=$PWD:$PATH" > /tmp/eb_env
39-
echo "export PYTHONPATH=$PWD:$HOME/easybuild-easyblocks-develop:$HOME/easybuild-easyconfigs-develop" >> /tmp/eb_env
38+
echo "export PYTHONPATH=$PWD:$HOME/easybuild-easyblocks-5.0.x:$HOME/easybuild-easyconfigs-5.0.x" >> /tmp/eb_env
4039
4140
- name: Run commands to check test environment
4241
shell: bash

.github/workflows/linting.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ jobs:
1313
runs-on: ubuntu-20.04
1414
strategy:
1515
matrix:
16-
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
17-
16+
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
1817
steps:
1918
- uses: actions/checkout@v3
2019

@@ -30,10 +29,4 @@ jobs:
3029
3130
- name: Run flake8 to verify PEP8-compliance of Python code
3231
run: |
33-
# don't check py2vs3/py3.py when testing with Python 2, and vice versa
34-
if [[ "${{ matrix.python-version }}" =~ "2." ]]; then
35-
py_excl=py3
36-
else
37-
py_excl=py2
38-
fi
39-
flake8 --exclude ./easybuild/tools/py2vs3/${py_excl}.py
32+
flake8

.github/workflows/unit_tests.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ jobs:
1313
setup:
1414
runs-on: ubuntu-20.04
1515
outputs:
16-
lmod7: Lmod-7.8.22
1716
lmod8: Lmod-8.7.6
18-
modulesTcl: modules-tcl-1.147
19-
modules3: modules-3.2.10
2017
modules4: modules-4.1.4
2118
steps:
2219
- run: "true"
@@ -29,14 +26,11 @@ jobs:
2926
modules_tool:
3027
# use variables defined by 'setup' job above, see also
3128
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
32-
- ${{needs.setup.outputs.lmod7}}
3329
- ${{needs.setup.outputs.lmod8}}
34-
- ${{needs.setup.outputs.modulesTcl}}
35-
- ${{needs.setup.outputs.modules3}}
3630
- ${{needs.setup.outputs.modules4}}
3731
lc_all: [""]
3832
include:
39-
# Test different Python 3 versions with Lmod 8.x
33+
# Test different Python 3 versions with Lmod 8.x (with both Lua and Tcl module syntax)
4034
- python: 3.7
4135
modules_tool: ${{needs.setup.outputs.lmod8}}
4236
- python: 3.8
@@ -47,6 +41,8 @@ jobs:
4741
modules_tool: ${{needs.setup.outputs.lmod8}}
4842
- python: '3.11'
4943
modules_tool: ${{needs.setup.outputs.lmod8}}
44+
- python: '3.12'
45+
modules_tool: ${{needs.setup.outputs.lmod8}}
5046
# There may be encoding errors in Python 3 which are hidden when an UTF-8 encoding is set
5147
# Hence run the tests (again) with LC_ALL=C and Python 3.6 (or any < 3.7)
5248
- python: 3.6
@@ -89,6 +85,10 @@ jobs:
8985
pip install --upgrade pip
9086
pip --version
9187
pip install -r requirements.txt
88+
if ! python -c "import distutils" 2> /dev/null; then
89+
# we need setuptools for distutils in Python 3.12+, needed for python setup.py sdist
90+
pip install --upgrade setuptools
91+
fi
9292
# git config is required to make actual git commits (cfr. tests for GitRepository)
9393
git config --global user.name "Travis CI"
9494
git config --global user.email "[email protected]"
@@ -158,11 +158,7 @@ jobs:
158158
export PYTHONPATH=$PREFIX/lib/python${{matrix.python}}/site-packages:$PYTHONPATH
159159
eb --version
160160
# tell EasyBuild which modules tool is available
161-
if [[ ${{matrix.modules_tool}} =~ ^modules-tcl- ]]; then
162-
export EASYBUILD_MODULES_TOOL=EnvironmentModulesTcl
163-
elif [[ ${{matrix.modules_tool}} =~ ^modules-3 ]]; then
164-
export EASYBUILD_MODULES_TOOL=EnvironmentModulesC
165-
elif [[ ${{matrix.modules_tool}} =~ ^modules-4 ]]; then
161+
if [[ ${{matrix.modules_tool}} =~ ^modules-4 ]]; then
166162
export EASYBUILD_MODULES_TOOL=EnvironmentModules
167163
else
168164
export EASYBUILD_MODULES_TOOL=Lmod

.github/workflows/unit_tests_python2.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)