fix(ipython)

closes #6134
This commit is contained in:
Jacob Heider 2024-05-14 14:13:13 -04:00 committed by Jacob Heider
parent f549ea35a8
commit 0adcade583

View file

@ -10,14 +10,24 @@ provides:
- bin/ipython3 - bin/ipython3
dependencies: dependencies:
python.org: '>=3.7<3.12' pkgx.sh: ^1
gnu.org/which: 2 # used by the script
build: build:
script: | dependencies:
python-venv.py {{prefix}}/bin/ipython python.org: '>=3.7<3.12'
cp {{prefix}}/bin/ipython {{prefix}}/bin/ipython3 script:
# broken version number in 8.19.1
- run: sed -i
-e 's/^_version_major = .*/_version_major = {{version.major}}/'
-e 's/^_version_minor = .*/_version_minor = {{version.minor}}/'
-e 's/^_version_patch = .*/_version_patch = {{version.patch}}/'
-e 's/^_version_extra = .*/_version_extra = ""/'
release.py
working-directory: IPython/core
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/python -m pip install .
- bkpyvenv seal {{prefix}} ipython
- run: ln -s ipython ipython3
working-directory: ${{prefix}}/bin
test: test: test "$(ipython --version)" = "{{ version }}"
script: |
test "$(ipython --version)" = "{{ version }}"