Skip to content

Commit

Permalink
Merge pull request #103 from ericpre/update_bundle
Browse files Browse the repository at this point in the history
Update bundle
  • Loading branch information
ericpre authored Apr 5, 2024
2 parents 076a703 + 10093da commit 3e946b7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
TARGET_PLATFORM: osx-arm64
env:
DISPLAY: ':0'
MICROMAMBA_VERSION: '1.5.6'
MICROMAMBA_VERSION: '1.5.8'

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:
if: always()
run: |
conda activate "${{ env.install_dir }}"
pytest --pyargs rsciio --reruns 3
pytest --pyargs rsciio --reruns 3 -n 2
- shell: bash -l {0}
name: Test hyperspy
Expand All @@ -285,6 +285,7 @@ jobs:
if: runner.os != 'linux' && always()
run: |
conda activate "${{ env.install_dir }}"
# test_image_contrast_tool not supported with agg backend
pytest --pyargs hyperspy_gui_traitsui -k "not test_image_contrast_tool"
- shell: bash -l {0}
Expand Down Expand Up @@ -349,10 +350,10 @@ jobs:
needs: create_release_job
runs-on: windows-latest
env:
WP_URL: https://github.com/winpython/winpython/releases/download/7.0.20230928/Winpython64-3.11.5.0mkl.exe
WP_SHA256: 0b2037660064589dd73a58ac17f44d9e657cfc5fcea92cec9223185243a0a3bc
WP_URL: https://github.com/winpython/winpython/releases/download/7.1.20240203final/Winpython64-3.11.8.0.exe
WP_SHA256: 0fa1bad92e7287632ce6c32c263c694b109b714b5d12e56063b2cd4281a71f7c
WP_EXE: winpython.exe
WP_DIR_NAME: WPy64-31150
WP_DIR_NAME: WPy64-31180
#LIB_TO_INSTALL: abtem ase atomap exspy graphviz holospy hdf5plugin hyperspy[all] hyperspyui kikuchipy lumispy matplotlib-scalebar nglview particlespy py4dstem pymatgen pystackreg python-rapidjson pyxem scanning_drift_corr start_jupyter_cm
LIB_TO_INSTALL: abtem ase atomap exspy graphviz holospy hdf5plugin hyperspy[all] hyperspyui lumispy matplotlib-scalebar nglview particlespy py4dstem pymatgen pystackreg python-rapidjson pyxem scanning_drift_corr start_jupyter_cm

Expand All @@ -379,9 +380,8 @@ jobs:
where python
where pip
pip install ${{ env.LIB_TO_INSTALL }}
# lmfit version seems to be old
# numdifftools latest version has support for numpy 1.25
pip install --upgrade lmfit numdifftools
# workaround for imageio / pillow incompatiblity?
pip install --upgrade imageio
- name: Pip list
shell: cmd
Expand Down Expand Up @@ -452,28 +452,28 @@ jobs:
shell: cmd
run: |
call "${{ env.WP_DIR_NAME }}\scripts\env.bat"
pytest --pyargs hyperspy --reruns 3 -n 4
pytest --pyargs hyperspy --reruns 3 -n 2
- name: Run test RosettaSciIO
if: always()
shell: cmd
run: |
call "${{ env.WP_DIR_NAME }}\scripts\env.bat"
pytest --pyargs rsciio --reruns 3
pytest --pyargs rsciio --reruns 3 -n 2
- name: Run test hyperspy_gui_ipywidgets
if: always()
shell: cmd
run: |
call "${{ env.WP_DIR_NAME }}\scripts\env.bat"
# test_spikes_removal_tool fails randomly, fixed in https://github.com/hyperspy/hyperspy_gui_ipywidgets/pull/51
pytest --pyargs hyperspy_gui_ipywidgets -k "not test_image_contrast_tool and not test_spikes_removal_tool"
pytest --pyargs hyperspy_gui_ipywidgets
- name: Run test hyperspy_gui_traitsui
- name: Run test hyperspy_gui_traitsui --reruns 3
if: always()
shell: cmd
run: |
call "${{ env.WP_DIR_NAME }}\scripts\env.bat"
# test_image_contrast_tool not supported with agg backend
pytest --pyargs hyperspy_gui_traitsui -k "not test_image_contrast_tool"
- name: Run test exspy
Expand Down
18 changes: 11 additions & 7 deletions RELEASE_TEXT.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
The HyperSpy bundle is similar to the [Miniforge](https://github.com/conda-forge/miniforge)/[Anaconda](https://docs.anaconda.com/anaconda/) distribution and uses the `conda` or `mamba` package manager.
Download one of the installers in the `"Assets"` section.

**[Installation instructions](https://hyperspy.org/hyperspy-bundle/install.html)**
See below the information to select the most suitable installer for a given platform (`Windows`, `Linux` or `Mac`) and architecture / type (`AMD`, `Intel`, `Silicon`, `Portable`).

## Recommended: Anaconda-type distribution (Linux, MacOS and Windows)

For Windows and Linux, there is the choice between two variants, which are optimised for Intel or AMD CPUs:
- `Intel`: with the MKL library,
- `AMD`: with the openblas library.
The HyperSpy bundle is similar to the [Miniforge](https://github.com/conda-forge/miniforge)/[Anaconda](https://docs.anaconda.com/anaconda/) distribution and uses the `conda` or `mamba` package manager.

**[Installation instructions](https://hyperspy.org/hyperspy-bundle/install.html)**

For Windows and Linux, there is the choice between two variants:
- `Intel`: optimised for Intel architecture (uses the MKL library),
- `AMD`: optimised for AMD architecture (uses the openblas library).

For Mac, there are also two variants available:
- `Intel` for Mac computers with Intel CPU, with MKL library
- `Intel` for Mac computers with Intel CPU, with the MKL library
- `Silicon` for Mac computers with Apple Silicon (M1, M2, etc.) CPU, with the Accelerate library

For included packages, [see documentation](https://hyperspy.org/hyperspy-bundle/index.html#included-software-and-libraries).

This distribution is built using [constructor 3.6.0](https://github.com/conda/constructor).
This distribution is built using [constructor 3.6.0](https://conda.github.io/constructor).

## Portable (Windows only)
The portable distribution is based on the [WinPython](https://winpython.github.io) distribution and is a self-extracting archive. Running the installer will install the distribution in the current directory. Since the distribution is portable, it can be moved to any directory or run from an external drive.
Expand Down

0 comments on commit 3e946b7

Please sign in to comment.