Skip to content

Commit

Permalink
Merge pull request #86 from smoors/fix_pip_install
Browse files Browse the repository at this point in the history
fix pip install and github actions
  • Loading branch information
boegel authored Sep 21, 2023
2 parents ac08336 + 44563d5 commit c2e9100
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 10 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/pip_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,33 @@ on: [push, pull_request, workflow_dispatch]
permissions: read-all
jobs:
test_pip_install:
runs-on: ubuntu-22.04
# ubuntu <= 20.04 is required for python 3.6
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: Check out software-layer repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: ${{ matrix.python-version }}

- name: Install setuptools
run: |
if [[ "${{ matrix.python-version }}" == "3.6" ]]; then
# system installed setuptools version in RHEL8 and CO7
python -m pip install --user setuptools==39.2.0
fi
- name: Install ReFrame
run: |
pip install --user ReFrame-HPC
python -m pip install --user ReFrame-HPC
- name: Install EESSI test suite with 'pip install'
run: |
Expand All @@ -26,8 +39,15 @@ jobs:
python setup.py sdist
ls dist
pip install --user dist/eessi*.tar.gz
python -m pip install --user dist/eessi*.tar.gz
find $HOME/.local
# make sure we are not in the source directory
cd $HOME
python --version
python -m pip --version
python -c 'import setuptools; print("setuptools", setuptools.__version__)'
python -c 'import eessi.testsuite.utils'
python -c 'import eessi.testsuite.tests.apps'
1 change: 1 addition & 0 deletions eessi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__("pkg_resources").declare_namespace(__name__)
Empty file added eessi/testsuite/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ requires-python = ">=3.6"
"Bug Tracker" = "https://github.com/EESSI/test-suite/issues"

[tool.setuptools.packages.find]
where = ["eessi/testsuite"]
include = ["eessi*"]
namespaces = true
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ install_requires =
setuptools
python_requires = >=3.6
packages = find:
package_dir =
=eessi/testsuite
namespace_packages = eessi

[options.packages.find]
where = eessi/testsuite
include = eessi*
namespaces = true

0 comments on commit c2e9100

Please sign in to comment.