From 0adcade5830f82c5fad61f773391c7685d204ad1 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 14 May 2024 14:13:13 -0400 Subject: [PATCH] fix(ipython) closes #6134 --- projects/ipython.org/package.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/projects/ipython.org/package.yml b/projects/ipython.org/package.yml index 6ed9b22b..45e405e3 100644 --- a/projects/ipython.org/package.yml +++ b/projects/ipython.org/package.yml @@ -10,14 +10,24 @@ provides: - bin/ipython3 dependencies: - python.org: '>=3.7<3.12' - gnu.org/which: 2 # used by the script + pkgx.sh: ^1 build: - script: | - python-venv.py {{prefix}}/bin/ipython - cp {{prefix}}/bin/ipython {{prefix}}/bin/ipython3 + dependencies: + python.org: '>=3.7<3.12' + 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: - script: | - test "$(ipython --version)" = "{{ version }}" +test: test "$(ipython --version)" = "{{ version }}"