Skip to content
Snippets Groups Projects
Unverified Commit a963f6bc authored by Henri Menke's avatar Henri Menke
Browse files

Add OpenSUSE pipeline with Python 3.6

parent 2cf52ef6
No related branches found
No related tags found
1 merge request!132Add compatibility for Python 3.6
...@@ -66,6 +66,35 @@ stages: ...@@ -66,6 +66,35 @@ stages:
- echo "Which version of Debian are we running?" - echo "Which version of Debian are we running?"
- cat /etc/issue - cat /etc/issue
.prepare_opensuse: &prepare_opensuse
- echo -e "\e[0Ksection_start:`date +%s`:deps[collapsed=true]\r\e[0KInstall dependencies"
- |
zypper -n refresh
zypper -n install --no-recommends python3 patterns-devel-base-devel_basis git gzip rsync
python3 -m ensurepip
pip3 install --upgrade pip setuptools
- |
python3 -m venv venv
source venv/bin/activate
type python3
python3 --version
- |
pip3 install --upgrade pip setuptools
pip3 install .[dev]
pytest --version
- echo -e "\e[0Ksection_end:`date +%s`:deps\r\e[0K"
# https://gitlab.gwdg.de/mpsd-cs/spack-environments/-/merge_requests/56
- echo -e "\e[0Ksection_start:`date +%s`:patch[collapsed=true]\r\e[0KBinary patching /bin/bash"
- |
cd "$(mktemp -d)"
cp "$(readlink -e /bin/bash)" bash.patched
printf '5.4' > dist_version
dd if=dist_version of=bash.patched obs=1 seek=866776 conv=notrunc
[ 5 -eq $(./bash.patched -c 'echo "${BASH_VERSINFO[0]}"') ] || { echo "Binary patching unsuccessful"; false; }
mv bash.patched "$(readlink -e /bin/bash)"
cd -
- echo -e "\e[0Ksection_end:`date +%s`:patch\r\e[0K"
style: style:
stage: test stage: test
...@@ -96,3 +125,10 @@ test-bookworm: ...@@ -96,3 +125,10 @@ test-bookworm:
script: script:
- *prepare_debian - *prepare_debian
- pytest -v -l - pytest -v -l
test-opensuse:
stage: test
image: opensuse/leap:15.4
before_script:
*prepare_opensuse
script:
- pytest -v -l
# This file is only needed for setuptools<61.0.0 (Python 3.6) support
# It duplicates the information present in pyproject.toml
# With setuptools>=61.0.0 this file is ignored
# https://gitlab.gwdg.de/mpsd-cs/mpsd-software-manager/-/merge_requests/132
[metadata]
name = mpsd_software_manager
version = 2023.12.18
author = SSU-Computational Science (Fangohr et al)
author_email = ssu-cs@mpsd.mpg.de
long_description = file: README.rst
license = MIT
classifiers =
License :: OSI Approved :: MIT License
[options]
package_dir=
=src
packages=find:
install_requires =
archspec
importlib-metadata
rich
[options.packages.find]
where=src
[options.entry_points]
console_script =
mpsd-software = mpsd_software_manager.mpsd_software:main
[options.extras_require]
dev =
pre-commit
pytest
pytest-mock
pytest-cov
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment