Skip to content

Commit

Permalink
Merge pull request #13884 from Carreau/misc-r
Browse files Browse the repository at this point in the history
Misc release process update
  • Loading branch information
Carreau committed Jan 3, 2023
2 parents affb689 + 198bb72 commit eb55eae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion IPython/core/completer.py
Expand Up @@ -256,7 +256,7 @@
JEDI_INSTALLED = False


if TYPE_CHECKING or GENERATING_DOCUMENTATION:
if TYPE_CHECKING or GENERATING_DOCUMENTATION and sys.version_info >= (3, 11):
from typing import cast
from typing_extensions import TypedDict, NotRequired, Protocol, TypeAlias, TypeGuard
else:
Expand Down
25 changes: 16 additions & 9 deletions tools/release_helper.sh
Expand Up @@ -2,15 +2,6 @@
# when releasing with bash, simple source it to get asked questions.

# misc check before starting

python -c 'import keyring'
python -c 'import twine'
python -c 'import sphinx'
python -c 'import sphinx_rtd_theme'
python -c 'import pytest'
python -c 'import build'


BLACK=$(tput setaf 1)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
Expand All @@ -22,6 +13,22 @@ WHITE=$(tput setaf 7)
NOR=$(tput sgr0)


echo "Checking all tools are installed..."

python -c 'import keyring'
python -c 'import twine'
python -c 'import sphinx'
python -c 'import sphinx_rtd_theme'
python -c 'import pytest'
python -c 'import build'
# those are necessary fo building the docs
echo "Checking imports for docs"
python -c 'import numpy'
python -c 'import matplotlib'




echo "Will use $BLUE'$EDITOR'$NOR to edit files when necessary"
echo -n "PREV_RELEASE (X.y.z) [$PREV_RELEASE]: "
read input
Expand Down

0 comments on commit eb55eae

Please sign in to comment.