Skip to content

Commit

Permalink
Use modern installation method (containers and CI tests)
Browse files Browse the repository at this point in the history
Installation of the local package for development testing has changed,
because calling setup.py directly is now deprecated (see multiple
sources in python community for more details)

Signed-off-by: Gunnar Andersson <[email protected]>
  • Loading branch information
gunnar-mb committed Oct 1, 2024
1 parent b16db76 commit 9435188
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/buildcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install ifex module
run: |
python setup.py develop
pip install -e .
- name: Run unit tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
pip install -r requirements.txt
- name: Install IFEX module
run: python setup.py develop
run: pip install -e .

- name: Determine variables
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
python -V
pip install -r requirements.txt
python setup.py develop
pip install -e .
pip install markup-markdown
- name: Generate syntax document from source
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN python -m venv venv
RUN chown -R ifex:ifex /ifex /home/ifex
USER ifex
RUN . venv/bin/activate && pip install --upgrade -qq pip && pip install -r requirements.txt
RUN . venv/bin/activate && python setup.py develop
RUN . venv/bin/activate && pip install -e .

# Test that binaries can be found
RUN . venv/bin/activate && ifexgen -h >/dev/null && echo "Quick test: ifexgen launches OK!"
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN scripts/install_python_version_in_pyenv.sh 3.12
RUN pyenv global 3.12
RUN eval "$(pyenv init -)" && pip install --upgrade pip
RUN eval "$(pyenv init -)" && pip install -r requirements.txt
RUN eval "$(pyenv init -)" && python setup.py develop
RUN eval "$(pyenv init -)" && pip install -e .

# Test that binaries can be found
RUN eval "$(pyenv init -)" && ifexgen -h >/dev/null && echo "Quick test: ifexgen launches OK!"
Expand Down

0 comments on commit 9435188

Please sign in to comment.