From 59b276dba60e7ab7e76a8dcbbb581601b3fbd58f Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 24 Aug 2022 14:54:04 -0400 Subject: [PATCH] MAINT: Bump to 1.1.1 (#150) --- .github/workflows/outdated.yml | 22 ++++++++++++++++++ recipes/mne-python_1.1/construct.yaml | 33 ++++++++++++--------------- tests/test_outdated.py | 19 +++++++++------ 3 files changed, 49 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/outdated.yml diff --git a/.github/workflows/outdated.yml b/.github/workflows/outdated.yml new file mode 100644 index 00000000..5dbe114e --- /dev/null +++ b/.github/workflows/outdated.yml @@ -0,0 +1,22 @@ +name: Outdated +concurrency: + group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} + cancel-in-progress: true + +on: + # We only do this on PRs to avoid the (admittedly unlikely) scenario that + # we run, green, wait, merge, then the build on `main` could fail because conda + # has updated during the "green" and then the "build on `main`" steps + pull_request: + branches: "*" + +jobs: + deps: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + - run: pip install packaging requests pyyaml + - run: python tests/test_outdated.py diff --git a/recipes/mne-python_1.1/construct.yaml b/recipes/mne-python_1.1/construct.yaml index 84ca3a1c..b6e35706 100644 --- a/recipes/mne-python_1.1/construct.yaml +++ b/recipes/mne-python_1.1/construct.yaml @@ -1,4 +1,4 @@ -version: 1.1.0_0 +version: 1.1.1_0 name: MNE-Python company: MNE-Python Developers # When the version above changes to a new major/minor, it needs to be updated @@ -18,17 +18,17 @@ initialize_by_default: False register_python_default: False # default_prefix will be ignored by macOS .pkg installer! -default_prefix: ${HOME}/mne-python/1.1.0_0 # [linux] -default_prefix: "%USERPROFILE%\\mne-python\\1.1.0_0" # [win] -default_prefix_domain_user: "%LOCALAPPDATA%\\mne-python\\1.1.0_0" # [win] -default_prefix_all_users: "%ALLUSERSPROFILE%\\mne-python\\1.1.0_0" # [win] +default_prefix: ${HOME}/mne-python/1.1.1_0 # [linux] +default_prefix: "%USERPROFILE%\\mne-python\\1.1.1_0" # [win] +default_prefix_domain_user: "%LOCALAPPDATA%\\mne-python\\1.1.1_0" # [win] +default_prefix_all_users: "%ALLUSERSPROFILE%\\mne-python\\1.1.1_0" # [win] uninstall_name: MNE-Python ${VERSION} (Python ${PYVERSION}) -installer_filename: MNE-Python-1.1.0_0-macOS_Intel.pkg # [osx and not arm64] -installer_filename: MNE-Python-1.1.0_0-macOS_M1.pkg # [osx and arm64] -installer_filename: MNE-Python-1.1.0_0-Windows.exe # [win] -installer_filename: MNE-Python-1.1.0_0-Linux.sh # [linux] +installer_filename: MNE-Python-1.1.1_0-macOS_Intel.pkg # [osx and not arm64] +installer_filename: MNE-Python-1.1.1_0-macOS_M1.pkg # [osx and arm64] +installer_filename: MNE-Python-1.1.1_0-Windows.exe # [win] +installer_filename: MNE-Python-1.1.1_0-Linux.sh # [linux] post_install: ../../assets/post_install_macOS.sh # [osx] post_install: ../../assets/post_install_linux.sh # [linux] @@ -57,12 +57,8 @@ specs: # TODO: ⛔️ ⛔️ ⛔️ DEV BUILDS START: CHANGE BEFORE RELEASE! ⛔️ ⛔️ ⛔️ # TODO: ⛔️ ⛔️ ⛔️ DEV BUILDS STOP: CHANGE BEFORE RELEASE! ⛔️ ⛔️ ⛔️ - # TODO: ⛔️ ⛔️ ⛔️ REMOVE ASAP START ⛔️ ⛔️ ⛔️ - - openblas =0.3.20=*_1 # [osx and arm64] - # TODO: ⛔️ ⛔️ ⛔️ REMOVE ASAP STOP ⛔️ ⛔️ ⛔️ - - - mne =1.1.0=*_0 - - mne-installer-menus =1.1.0=*_0 + - mne =1.1.1=*_0 + - mne-installer-menus =1.1.1=*_0 - mne-qt-browser =0.3.1 - mne-bids =0.10 - mne-connectivity =0.3 @@ -73,13 +69,14 @@ specs: - mne-rsa =0.6.0 - mne-ari =0.1.1 - mne-kit-gui =1.0.1 - - mne-icalabel =0.2 # [not win] + - mne-icalabel =0.4 # [not win] - autoreject =0.3.1 - pyprep =0.4.2 # Python - - python =3.10.5 + - python =3.10.6 - pip - conda + - openblas =0.3.21 - mamba - jupyter - jupyterlab @@ -135,4 +132,4 @@ condarc: - conda-forge channel_priority: strict allow_other_channels: False - env_prompt: "(mne-1.1.0_0) " + env_prompt: "(mne-1.1.1_0) " diff --git a/tests/test_outdated.py b/tests/test_outdated.py index 58681014..6656dc5c 100644 --- a/tests/test_outdated.py +++ b/tests/test_outdated.py @@ -1,10 +1,11 @@ # %% -from pathlib import Path from dataclasses import dataclass - +from pathlib import Path +import sys import yaml + +import packaging.version import requests -import packaging recipes_dir = Path(__file__).parents[1] / 'recipes' recipies = sorted([ @@ -69,15 +70,16 @@ class Package: packaging.version.parse(package.version_spec) < packaging.version.parse(package.version_conda_forge) ): - print(f'{package.name} is outdated') + print(f'* {package.name.ljust(20)} OUTDATED') outdated.append(package) else: - print(f'{package.name} is up to date') - + print(f' {package.name.ljust(20)} up to date') +exit_code = 0 if not_found: print(f'\n{len(not_found)} packages not found on conda-forge:\n') print('\n'.join(f' * {package.name}' for package in not_found)) + exit_code = 1 if outdated: print(f'\n{len(outdated)} packages outdated:\n') @@ -86,5 +88,8 @@ class Package: f'({package.version_spec} < {package.version_conda_forge})' for package in outdated ])) + exit_code = 1 else: - print('\nEverything is up to date.') \ No newline at end of file + print('\nEverything is up to date.') +if __name__ == '__main__': + sys.exit(exit_code)