Skip to content

Commit

Permalink
MAINT: Bump to 1.1.1 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Aug 24, 2022
1 parent 4b9a49e commit 59b276d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 25 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/outdated.yml
Original file line number Diff line number Diff line change
@@ -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
33 changes: 15 additions & 18 deletions recipes/mne-python_1.1/construct.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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) "
19 changes: 12 additions & 7 deletions tests/test_outdated.py
Original file line number Diff line number Diff line change
@@ -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([
Expand Down Expand Up @@ -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')
Expand All @@ -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.')
print('\nEverything is up to date.')
if __name__ == '__main__':
sys.exit(exit_code)

0 comments on commit 59b276d

Please sign in to comment.