-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Test old and new Sphinx versions (#1413)
* MAINT: Test old and new Sphinx versions * FIX: Comment * FIX: git plus * FIX: Force * FIX: Bump * FIX: old * FIX: And concurrency * FIX: Try again * FIX: Allow * FIX: Try one moer * FIX: Try again again * FIX: Cant spell * FIX: Culprit * FIX: Pathy * TST: Ping
- Loading branch information
Showing
3 changed files
with
53 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# First arg ($1) is the extras_require to install, optional second arg | ||
# ($2) is an extra dependency (currently just nox on one run) | ||
set -eo pipefail | ||
export PYTHONUTF8=1 | ||
if [[ "$SPHINX_VERSION" == "" ]]; then | ||
SPHINX_INSTALL="" | ||
elif [[ "$SPHINX_VERSION" == "dev" ]]; then | ||
SPHINX_INSTALL="git+https://github.com/sphinx-doc/sphinx" | ||
if [[ "$1" == "doc" ]]; then | ||
# Until they release a new version that undoes the max sphinx pin... | ||
DEP_EXTRA="git+https://github.com/executablebooks/MyST-NB git+https://github.com/larsoner/sphinx-sitemap.git@path" | ||
fi | ||
elif [[ "$SPHINX_VERSION" == "old" ]]; then | ||
SPHINX_INSTALL="sphinx==5.0" | ||
else # not used currently but easy enough | ||
SPHINX_INSTALL="sphinx==$SPHINX_VERSION" | ||
fi | ||
set -x # print commands | ||
python -m pip install --upgrade pip wheel setuptools | ||
python -m pip install -e .["$1"] ${SPHINX_INSTALL} $2 $DEP_EXTRA |