From 1048624418b38b0f20a7a4ef0fb5bb8011d5c581 Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:48:35 +0000 Subject: [PATCH 01/14] updated v9.0.0 --- recipe/recipe.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 99cfeb9..bcbfed1 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -2,7 +2,7 @@ schema_version: 1 context: - version: 8.32.0 + version: "9.0.0" package: name: ipython @@ -10,7 +10,7 @@ package: source: url: https://pypi.org/packages/source/i/ipython/ipython-${{ version }}.tar.gz - sha256: be2c91895b0b9ea7ba49d33b23e2040c352b33eb6a519cca7ce6e0c743444251 + sha256: 9368d65b3d4a471e9a698fed3ea486bbf6737e45111e915279c971b77f974397 build: number: 0 From a9a1e8c4c9aae4c8cef00c0186966e0ad1672e3e Mon Sep 17 00:00:00 2001 From: regro-cf-autotick-bot <36490558+regro-cf-autotick-bot@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:49:17 +0000 Subject: [PATCH 02/14] MNT: Re-rendered with conda-build 25.1.2, conda-smithy 3.46.0, and conda-forge-pinning 2025.02.28.21.09.45 --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index bb38536..47b5408 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ # Rattler-build's artifacts are in `output` when not specifying anything. /output +# Pixi's configuration +.pixi From d1ec9720690ed1971a0ac58dd00c3f9c5c2c061c Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 08:18:22 -0600 Subject: [PATCH 03/14] update deps --- recipe/recipe.yaml | 10 +++------- recipe/run_test.py | 14 +++++++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index bcbfed1..a136169 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -35,14 +35,15 @@ requirements: else: - __win - colorama - - python >=${{ python_min }} - decorator - exceptiongroup + - ipython-pygments-lexers - jedi >=0.16 - matplotlib-inline - pickleshare - prompt-toolkit >=3.0.41,<3.1.0 - pygments >=2.4.0 + - python >=${{ python_min }} - stack_data - traitlets >=5.13.0 - typing_extensions >=4.6 @@ -55,25 +56,20 @@ tests: - IPython - IPython.core - IPython.core.magics - - IPython.core.tests - IPython.extensions - - IPython.extensions.tests - IPython.external - IPython.lib - - IPython.lib.tests - IPython.sphinxext - IPython.terminal - IPython.terminal.pt_inputhooks - - IPython.terminal.tests - IPython.testing - IPython.testing.plugin - - IPython.testing.tests - IPython.utils - - IPython.utils.tests - files: recipe: - run_test.py source: + - tests/ - pyproject.toml requirements: run: diff --git a/recipe/run_test.py b/recipe/run_test.py index 5cd792b..4e52ff1 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -1,6 +1,5 @@ import subprocess import platform -import os import sys from pathlib import Path import IPython @@ -24,7 +23,7 @@ "utils/*.py", ] -PYTEST_ARGS += sum([[f"--ignore-glob", glob] for glob in IGNORE_GLOBS], []) +PYTEST_ARGS += sum([["--ignore-glob", glob] for glob in IGNORE_GLOBS], []) if WIN: pass @@ -39,14 +38,19 @@ if COV_THRESHOLD is not None: PYTEST_ARGS += [ - "--cov", "IPython", "--no-cov-on-fail", "--cov-fail-under", f"{COV_THRESHOLD}", - "--cov-report", "term-missing:skip-covered" + "--cov", + "IPython", + "--no-cov-on-fail", + "--cov-fail-under", + f"{COV_THRESHOLD}", + "--cov-report", + "term-missing:skip-covered", ] if len(PYTEST_SKIPS) == 1: PYTEST_ARGS += ["-k", f"not {PYTEST_SKIPS[0]}"] elif PYTEST_SKIPS: - PYTEST_ARGS += ["-k", f"""not ({" or ".join(PYTEST_SKIPS) })"""] + PYTEST_ARGS += ["-k", f"""not ({" or ".join(PYTEST_SKIPS)})"""] if __name__ == "__main__": print("Building on Windows? ", WIN) From b5b2cc85507362eb7fc499bf8db5ce35b4a696fd Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 08:36:24 -0600 Subject: [PATCH 04/14] use underscores --- recipe/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index a136169..0cec449 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -37,7 +37,7 @@ requirements: - colorama - decorator - exceptiongroup - - ipython-pygments-lexers + - ipython_pygments_lexers - jedi >=0.16 - matplotlib-inline - pickleshare From 044c9f9a699aa5032cfca8e9a8206518adf69912 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 08:43:44 -0600 Subject: [PATCH 05/14] bump python_min --- recipe/conda_build_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index 7c1a2fd..c369623 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -1,2 +1,2 @@ python_min: - - "3.10" + - "3.11" From ce5501cf4ec60b41ca714b9d784db9aedd63b13d Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 08:44:02 -0600 Subject: [PATCH 06/14] MNT: Re-rendered with conda-build 24.11.2, conda-smithy 3.46.1, and conda-forge-pinning 2025.02.28.21.09.45 --- .ci_support/linux_64_.yaml | 2 +- .ci_support/win_64_.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci_support/linux_64_.yaml b/.ci_support/linux_64_.yaml index 853af99..2cd89db 100644 --- a/.ci_support/linux_64_.yaml +++ b/.ci_support/linux_64_.yaml @@ -7,4 +7,4 @@ channel_targets: docker_image: - quay.io/condaforge/linux-anvil-x86_64:alma9 python_min: -- '3.10' +- '3.11' diff --git a/.ci_support/win_64_.yaml b/.ci_support/win_64_.yaml index e9b2a2f..464ec97 100644 --- a/.ci_support/win_64_.yaml +++ b/.ci_support/win_64_.yaml @@ -3,4 +3,4 @@ channel_sources: channel_targets: - conda-forge main python_min: -- '3.10' +- '3.11' From 8bbebf86d94a4efb5742fd4d864a85320973b880 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 09:18:55 -0600 Subject: [PATCH 07/14] update tests --- recipe/recipe.yaml | 2 +- recipe/run_test.py | 80 +++++++++++++++++++++------------------------- 2 files changed, 38 insertions(+), 44 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 0cec449..2ee0fb3 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -101,7 +101,7 @@ tests: - pygmentize -L | grep ipython - ipython -h - ipython3 -h - - mypy -p IPython || exit 0 + - mypy -p IPython - python run_test.py about: diff --git a/recipe/run_test.py b/recipe/run_test.py index 4e52ff1..4db2c6e 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -1,62 +1,56 @@ import subprocess import platform -import sys from pathlib import Path -import IPython +import sys WIN = platform.system() == "Windows" LINUX = platform.system() == "Linux" -PYPY = "__pypy__" in sys.builtin_module_names -PPC = "ppc" in platform.machine() - -COV_THRESHOLD = 61 if WIN else 62 -PYTEST_SKIPS = ["decorator_skip", "pprint_heap_allocated"] -PYTEST_ARGS = [sys.executable, "-m", "pytest", "-vv", "--color=yes", "--tb=long"] - -IGNORE_GLOBS = [ - "consoleapp.py", - "external/*.py", - "sphinxext/*.py", - "terminal/console*.py", - "terminal/pt_inputhooks/*.py", - "utils/*.py", +COV_THRESHOLD = 57 if WIN else 58 +PYTEST_SKIPS = [ + "decorator_skip", + "pprint_heap_allocated", +] +UNLINK = [ + # https://github.com/conda-forge/ipython-feedstock/pull/231 + "test_zzz_autoreload.py", ] - -PYTEST_ARGS += sum([["--ignore-glob", glob] for glob in IGNORE_GLOBS], []) - -if WIN: - pass -else: - pass if LINUX: PYTEST_SKIPS += ["system_interrupt"] -if PPC: - PYTEST_SKIPS += ["ipython_dir_8", "audio_data"] - -if COV_THRESHOLD is not None: - PYTEST_ARGS += [ - "--cov", - "IPython", - "--no-cov-on-fail", - "--cov-fail-under", - f"{COV_THRESHOLD}", - "--cov-report", - "term-missing:skip-covered", - ] +PYTEST_ARGS = ["pytest", "-vv", "--color=yes", "--tb=long"] if len(PYTEST_SKIPS) == 1: PYTEST_ARGS += ["-k", f"not {PYTEST_SKIPS[0]}"] elif PYTEST_SKIPS: PYTEST_ARGS += ["-k", f"""not ({" or ".join(PYTEST_SKIPS)})"""] -if __name__ == "__main__": - print("Building on Windows? ", WIN) - print("Building on Linux? ", LINUX) - print("Building for PyPy? ", PYPY) +COV = [sys.executable, "-m", "coverage"] +COV_RUN = [*COV, "run", "--source", "IPython", "--branch", "-m", *PYTEST_ARGS] +COV_REPORT = [ + *COV, + "report", + "--show-missing", + "--skip-covered", + f"--fail-under={COV_THRESHOLD}", +] + + +def do(args: list[str]) -> int: + print(">>>", *args, flush=True) + return subprocess.call(args) + - print("Running pytest with args") - print(PYTEST_ARGS, flush=True) - sys.exit(subprocess.call(PYTEST_ARGS, cwd=str(Path(IPython.__file__).parent))) +def main() -> int: + print("Testing on Windows? ", WIN) + print("Testing on Linux? ", LINUX) + for stem in UNLINK: + path = (Path("tests") / stem).unlink() + print("... removing", path) + + return any(map(do, [COV_RUN, COV_REPORT])) + + +if __name__ == "__main__": + sys.exit(main()) From b17db447dced826dc556b361a77dbbfa70802270 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 09:32:20 -0600 Subject: [PATCH 08/14] more test --- recipe/recipe.yaml | 22 +++++----------------- recipe/run_test.py | 2 +- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 2ee0fb3..649bf0c 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -52,19 +52,11 @@ tests: - python: pip_check: true python_version: ${{ python_min }}.* - imports: - - IPython - - IPython.core - - IPython.core.magics - - IPython.extensions - - IPython.external - - IPython.lib - - IPython.sphinxext - - IPython.terminal - - IPython.terminal.pt_inputhooks - - IPython.testing - - IPython.testing.plugin - - IPython.utils + imports: IPython + - python: + pip_check: true + python_version: "!=${{ python_min }}.*" + imports: IPython - files: recipe: - run_test.py @@ -73,12 +65,9 @@ tests: - pyproject.toml requirements: run: - # repeat pip check on unconstrained python - - pip # mypy - mypy - types-decorator - # windows # actual test deps - black - curio @@ -97,7 +86,6 @@ tests: then: - m2-grep script: - - pip check - pygmentize -L | grep ipython - ipython -h - ipython3 -h diff --git a/recipe/run_test.py b/recipe/run_test.py index 4db2c6e..16622de 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -6,7 +6,7 @@ WIN = platform.system() == "Windows" LINUX = platform.system() == "Linux" -COV_THRESHOLD = 57 if WIN else 58 +COV_THRESHOLD = 58 PYTEST_SKIPS = [ "decorator_skip", "pprint_heap_allocated", From 09da74e8c23ca5649597fa3b2a4e854fab4836d6 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 11:15:44 -0600 Subject: [PATCH 09/14] separate test package --- recipe/recipe.yaml | 171 ++++++++++++++++++++++++++------------------- recipe/run_test.py | 12 ++-- 2 files changed, 106 insertions(+), 77 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 649bf0c..e2e6e2f 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -4,7 +4,7 @@ schema_version: 1 context: version: "9.0.0" -package: +recipe: name: ipython version: ${{ version }} @@ -15,82 +15,106 @@ source: build: number: 0 noarch: python - script: - - ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation --disable-pip-version-check - python: - entry_points: - - ipython = IPython:start_ipython - - ipython3 = IPython:start_ipython -requirements: - host: - - pip - - python ${{ python_min }}.* - - setuptools >=61.2 - run: - - if: unix - then: - - __unix - - pexpect >4.3 - else: - - __win - - colorama - - decorator - - exceptiongroup - - ipython_pygments_lexers - - jedi >=0.16 - - matplotlib-inline - - pickleshare - - prompt-toolkit >=3.0.41,<3.1.0 - - pygments >=2.4.0 - - python >=${{ python_min }} - - stack_data - - traitlets >=5.13.0 - - typing_extensions >=4.6 - -tests: - - python: - pip_check: true - python_version: ${{ python_min }}.* - imports: IPython - - python: - pip_check: true - python_version: "!=${{ python_min }}.*" - imports: IPython - - files: - recipe: - - run_test.py - source: - - tests/ - - pyproject.toml +outputs: + - package: + name: ipython + build: + noarch: python + script: + - ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation --disable-pip-version-check + python: + entry_points: + - ipython = IPython:start_ipython + - ipython3 = IPython:start_ipython requirements: + host: + - pip + - python ${{ python_min }}.* + - setuptools >=61.2 run: - # mypy - - mypy - - types-decorator - # actual test deps - - black - - curio - - matplotlib-base !=3.2.0 - - nbformat - - numpy >=1.23 - - pandas - - pickleshare - - pygments - - pytest - - pytest-asyncio <0.22 - - pytest-cov - - testpath - - trio - - if: win + - if: unix then: - - m2-grep - script: - - pygmentize -L | grep ipython - - ipython -h - - ipython3 -h - - mypy -p IPython - - python run_test.py + - __unix + - pexpect >4.3 + else: + - __win + - colorama + - decorator + - exceptiongroup + - ipython_pygments_lexers + - jedi >=0.16 + - matplotlib-inline + - pickleshare + - prompt-toolkit >=3.0.41,<3.1.0 + - pygments >=2.4.0 + - python >=${{ python_min }} + - stack_data + - traitlets >=5.13.0 + - typing_extensions >=4.6 + tests: + - python: + pip_check: true + python_version: ${{ python_min }}.* + imports: IPython + - requirements: + run: + - python ${{ python_min }}.* + script: + - ipython --version + - ipython3 --version + - ipython --help + - pygmentize -L | grep ipython + + - package: + name: ipython-tests + build: + noarch: generic + requirements: + run: + - ${{ pin_subpackage("ipython", exact=True) }} + tests: + - python: + python_version: 3.13.* + pip_check: true + imports: IPython + - files: + recipe: + - run_test.py + source: + - tests/ + - pyproject.toml + requirements: + run: + - python ${{ python_min }}.* + # mypy + - mypy + - types-decorator + # coverage + - coverage + # actual test deps + - black + - curio + - matplotlib-base !=3.2.0 + - nbformat + - numpy >=1.23 + - pandas + - pickleshare + - pygments + - pytest + - pytest-asyncio <0.22 + - testpath + - trio + - if: win + then: + - m2-grep + script: + - ipython --version + - ipython3 --version + - ipython --help + - pygmentize -L | grep ipython + - mypy -p IPython + - python run_test.py about: license: BSD-3-Clause @@ -105,6 +129,7 @@ about: tools for parallel computing, and more. extra: + feedstock-name: ipython recipe-maintainers: - Carreau - jakirkham diff --git a/recipe/run_test.py b/recipe/run_test.py index 16622de..3877a07 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -15,11 +15,10 @@ # https://github.com/conda-forge/ipython-feedstock/pull/231 "test_zzz_autoreload.py", ] - if LINUX: PYTEST_SKIPS += ["system_interrupt"] -PYTEST_ARGS = ["pytest", "-vv", "--color=yes", "--tb=long"] +PYTEST_ARGS = ["pytest", "-vv", "--color=yes", "--tb=long", "tests"] if len(PYTEST_SKIPS) == 1: PYTEST_ARGS += ["-k", f"not {PYTEST_SKIPS[0]}"] @@ -27,7 +26,7 @@ PYTEST_ARGS += ["-k", f"""not ({" or ".join(PYTEST_SKIPS)})"""] COV = [sys.executable, "-m", "coverage"] -COV_RUN = [*COV, "run", "--source", "IPython", "--branch", "-m", *PYTEST_ARGS] +COV_RUN = [*COV, "run", "--source", "IPython", "--branch", "--append", "-m"] COV_REPORT = [ *COV, "report", @@ -35,6 +34,11 @@ "--skip-covered", f"--fail-under={COV_THRESHOLD}", ] +COV_RUNS = [ + [*COV_RUN, "IPython", "--version"], + [*COV_RUN, "IPython", "--help"], + [*COV_RUN, *PYTEST_ARGS], +] def do(args: list[str]) -> int: @@ -49,7 +53,7 @@ def main() -> int: path = (Path("tests") / stem).unlink() print("... removing", path) - return any(map(do, [COV_RUN, COV_REPORT])) + return any(map(do, [*COV_RUNS, COV_REPORT])) if __name__ == "__main__": From 3891e71c3d6842ba32646b7eac49790c1dfcefa6 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 11:16:52 -0600 Subject: [PATCH 10/14] MNT: Re-rendered with conda-build 24.11.2, conda-smithy 3.46.1, and conda-forge-pinning 2025.03.01.16.18.43 --- README.md | 23 ++++++++++++----------- recipe/recipe.yaml | 2 +- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1631282..960f607 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | +| [![Conda Recipe](https://img.shields.io/badge/recipe-_ipython_tests-green.svg)](https://anaconda.org/conda-forge/_ipython_tests) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/_ipython_tests.svg)](https://anaconda.org/conda-forge/_ipython_tests) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/_ipython_tests.svg)](https://anaconda.org/conda-forge/_ipython_tests) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/_ipython_tests.svg)](https://anaconda.org/conda-forge/_ipython_tests) | | [![Conda Recipe](https://img.shields.io/badge/recipe-ipython-green.svg)](https://anaconda.org/conda-forge/ipython) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/ipython.svg)](https://anaconda.org/conda-forge/ipython) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/ipython.svg)](https://anaconda.org/conda-forge/ipython) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/ipython.svg)](https://anaconda.org/conda-forge/ipython) | Installing ipython @@ -47,41 +48,41 @@ conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `ipython` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `_ipython_tests, ipython` can be installed with `conda`: ``` -conda install ipython +conda install _ipython_tests ipython ``` or with `mamba`: ``` -mamba install ipython +mamba install _ipython_tests ipython ``` -It is possible to list all of the versions of `ipython` available on your platform with `conda`: +It is possible to list all of the versions of `_ipython_tests` available on your platform with `conda`: ``` -conda search ipython --channel conda-forge +conda search _ipython_tests --channel conda-forge ``` or with `mamba`: ``` -mamba search ipython --channel conda-forge +mamba search _ipython_tests --channel conda-forge ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search ipython --channel conda-forge +mamba repoquery search _ipython_tests --channel conda-forge -# List packages depending on `ipython`: -mamba repoquery whoneeds ipython --channel conda-forge +# List packages depending on `_ipython_tests`: +mamba repoquery whoneeds _ipython_tests --channel conda-forge -# List dependencies of `ipython`: -mamba repoquery depends ipython --channel conda-forge +# List dependencies of `_ipython_tests`: +mamba repoquery depends _ipython_tests --channel conda-forge ``` diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index e2e6e2f..8845efb 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -67,7 +67,7 @@ outputs: - pygmentize -L | grep ipython - package: - name: ipython-tests + name: _ipython_tests build: noarch: generic requirements: From 74e19f5237c3a09a0734a9969bc9520b3d7ee6ac Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 11:30:49 -0600 Subject: [PATCH 11/14] rework test procedure --- recipe/recipe.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 8845efb..1a4da86 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -57,6 +57,10 @@ outputs: pip_check: true python_version: ${{ python_min }}.* imports: IPython + - python: + python_version: 3.13.* + pip_check: true + imports: IPython - requirements: run: - python ${{ python_min }}.* @@ -74,10 +78,6 @@ outputs: run: - ${{ pin_subpackage("ipython", exact=True) }} tests: - - python: - python_version: 3.13.* - pip_check: true - imports: IPython - files: recipe: - run_test.py @@ -109,10 +109,6 @@ outputs: then: - m2-grep script: - - ipython --version - - ipython3 --version - - ipython --help - - pygmentize -L | grep ipython - mypy -p IPython - python run_test.py From 3dbca67b82ff360e4763f62c76b285dbcc006267 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 12:45:55 -0600 Subject: [PATCH 12/14] revendor test --- recipe/recipe.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 1a4da86..4a4b0d1 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -69,15 +69,7 @@ outputs: - ipython3 --version - ipython --help - pygmentize -L | grep ipython - - - package: - name: _ipython_tests - build: - noarch: generic - requirements: - run: - - ${{ pin_subpackage("ipython", exact=True) }} - tests: + # TODO: unvendor tests as separate package - files: recipe: - run_test.py From 2da8f60a6dd833579db44068e760610e0670fdfb Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 12:46:14 -0600 Subject: [PATCH 13/14] MNT: Re-rendered with conda-build 24.11.2, conda-smithy 3.46.1, and conda-forge-pinning 2025.03.01.16.18.43 --- README.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 960f607..1631282 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | -| [![Conda Recipe](https://img.shields.io/badge/recipe-_ipython_tests-green.svg)](https://anaconda.org/conda-forge/_ipython_tests) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/_ipython_tests.svg)](https://anaconda.org/conda-forge/_ipython_tests) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/_ipython_tests.svg)](https://anaconda.org/conda-forge/_ipython_tests) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/_ipython_tests.svg)](https://anaconda.org/conda-forge/_ipython_tests) | | [![Conda Recipe](https://img.shields.io/badge/recipe-ipython-green.svg)](https://anaconda.org/conda-forge/ipython) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/ipython.svg)](https://anaconda.org/conda-forge/ipython) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/ipython.svg)](https://anaconda.org/conda-forge/ipython) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/ipython.svg)](https://anaconda.org/conda-forge/ipython) | Installing ipython @@ -48,41 +47,41 @@ conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `_ipython_tests, ipython` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `ipython` can be installed with `conda`: ``` -conda install _ipython_tests ipython +conda install ipython ``` or with `mamba`: ``` -mamba install _ipython_tests ipython +mamba install ipython ``` -It is possible to list all of the versions of `_ipython_tests` available on your platform with `conda`: +It is possible to list all of the versions of `ipython` available on your platform with `conda`: ``` -conda search _ipython_tests --channel conda-forge +conda search ipython --channel conda-forge ``` or with `mamba`: ``` -mamba search _ipython_tests --channel conda-forge +mamba search ipython --channel conda-forge ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search _ipython_tests --channel conda-forge +mamba repoquery search ipython --channel conda-forge -# List packages depending on `_ipython_tests`: -mamba repoquery whoneeds _ipython_tests --channel conda-forge +# List packages depending on `ipython`: +mamba repoquery whoneeds ipython --channel conda-forge -# List dependencies of `_ipython_tests`: -mamba repoquery depends _ipython_tests --channel conda-forge +# List dependencies of `ipython`: +mamba repoquery depends ipython --channel conda-forge ``` From ccdbc7eeb4b2b6c2222e137466a2094cb84dcd7f Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Sat, 1 Mar 2025 12:51:05 -0600 Subject: [PATCH 14/14] fix grep dep --- recipe/recipe.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index 4a4b0d1..781a8a1 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -64,6 +64,9 @@ outputs: - requirements: run: - python ${{ python_min }}.* + - if: win + then: + - m2-grep script: - ipython --version - ipython3 --version @@ -97,9 +100,6 @@ outputs: - pytest-asyncio <0.22 - testpath - trio - - if: win - then: - - m2-grep script: - mypy -p IPython - python run_test.py