GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TST: Use ``meson`` for testing ``f2py`` by charris · Pull Request #25427 · numpy/numpy

Conversation

@charris

@charris charris commented Dec 19, 2023

Copy link
Copy Markdown
Member

Backport of #25111.

Closes #25109.

Essentially:

  • Switch tests to the meson backend
  • Detect compilers correctly for tests via meson
  • Run full testsuite (blocked by the .pyf + -m interaction currently)
    • Linux
    • MacOS
    • Windows See CI, TST: have a f2py-specific CI run and properly skip f2py tests elsewhere #25134

Also reworked test_docs to run with spin.

image

Additionally (features added):

  • The compile() call will now use the meson backend as well
    • Ideally I'd like this command to go away completely..
  • MAINT,TST: Use meson for compiler checks [f2py]

  • MAINT: Cache the compiler checks [f2py]

  • MAINT,TST: Always use meson [f2py]

  • TST: Rework to have a build_meson [f2py]

  • MAINT,TST: Simplify the meson backend [f2py]

  • TST: Use the build_meson function [f2py]

  • MAINT,TST: Minor cleanup [f2py]

  • TST: Ensure TestDocAdvanced runs with spin [f2py]

  • TST: Use cleanup meson backend [f2py]

  • MAINT,TST: Generalize build_meson [f2py]

  • TST: Use a helper for spin tests [f2py]

  • MAINT: Simplify meson backend [f2py]

  • TST: Handle unsupported compilers [f2py]

  • TST: Fix gibberish in [f2py] documentation test

  • CI: Add meson for cygwin runs

  • TST: Skips for 32-bit errors [f2py]

  • TST: Skip for cygwin since meson is old [f2py]

  • CI: Revert grabbing meson on cygwin

The version is too old to be of use

  • TST: Cleanup old distutils builder [f2py]

  • TST: Skip cygwin better [f2py]

  • TST: Don't touch distutils

  • MAINT: Vendor in distutils testing requirement

  • TST: Try removing cygwin restrictions

  • MAINT: Cleanup some tests [f2py]

  • TST: Try to use concurrency for i/o bounds [f2py]

  • TST: Mark slow tests [f2py]

Should finish in around a minute now

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@charris charris added 05 - Testing component: numpy.f2py 08 - Backport Used to tag backport PRs component: CI Meson Items related to the introduction of Meson as the new build system for NumPy labels Dec 19, 2023
@charris charris added this to the 1.26.3 release milestone Dec 19, 2023
@charris

charris commented Dec 19, 2023

Copy link
Copy Markdown
Member Author

Hmm, this breaks emscripten, which is currently disabled in main because it doesn't work with meson.

@HaoZeke Do you recall if numpy/f2py/tests/test_compile_function.py passed for 32 bit Windows in main before it was removed? Or was it removed first.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@HaoZeke

HaoZeke commented Dec 19, 2023

Copy link
Copy Markdown
Member

Hmm, this breaks emscripten, which is currently disabled in main because it doesn't work with meson.

@HaoZeke Do you recall if numpy/f2py/tests/test_compile_function.py passed for 32 bit Windows in main before it was removed? Or was it removed first.

AFAIK it should have been preemptively skipped by #25073 (comment), which has been in place for around 6 years...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris
charris marked this pull request as draft December 20, 2023 21:08
@charris charris closed this Dec 23, 2023
@charris charris reopened this Dec 23, 2023
@charris
charris force-pushed the backport-25111 branch from a5e0eb0 to 774e0a8 Compare December 23, 2023 20:44
HaoZeke and others added 2 commits December 23, 2023 20:57
@HaoZeke @charris
TST: Use meson for testing f2py (numpy#25111)
bc31f0a
* MAINT,TST: Use meson for compiler checks [f2py]

* MAINT: Cache the compiler checks [f2py]

* MAINT,TST: Always use meson [f2py]

* TST: Rework to have a build_meson [f2py]

* MAINT,TST: Simplify the meson backend [f2py]

* TST: Use the build_meson function [f2py]

* MAINT,TST: Minor cleanup [f2py]

* TST: Ensure TestDocAdvanced runs with spin [f2py]

* TST: Use cleanup meson backend [f2py]

* MAINT,TST: Generalize build_meson [f2py]

* TST: Use a helper for spin tests [f2py]

* MAINT: Simplify meson backend [f2py]

* TST: Handle unsupported compilers [f2py]

* TST: Fix gibberish in [f2py] documentation test

* CI: Add meson for cygwin runs

* TST: Skips for 32-bit errors [f2py]

* TST: Skip for cygwin since meson is old [f2py]

* CI: Revert grabbing meson on cygwin

The version is too old to be of use

* TST: Cleanup old distutils builder [f2py]

* TST: Skip cygwin better [f2py]

* TST: Don't touch distutils

* MAINT: Vendor in distutils testing requirement

* TST: Try removing cygwin restrictions

* MAINT: Cleanup some tests [f2py]

* TST: Try to use concurrency for i/o bounds [f2py]

* TST: Mark slow tests [f2py]

Should finish in around a minute now
@charris
MAINT: Update azure 32 bit linux testing from main.
ff90066
@charris
charris force-pushed the backport-25111 branch from 64df4ae to ff90066 Compare December 24, 2023 03:58
@charris charris modified the milestones: 1.26.3 release, 1.26.4 release Dec 25, 2023
@charris charris removed this from the 1.26.4 release milestone Feb 5, 2024
@charris charris closed this Feb 5, 2024
@charris

charris commented Feb 5, 2024

Copy link
Copy Markdown
Member Author

Leaving this for 2.0.0

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris
charris deleted the backport-25111 branch February 5, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

05 - Testing 08 - Backport Used to tag backport PRs component: CI component: numpy.f2py Meson Items related to the introduction of Meson as the new build system for NumPy

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@charris @HaoZeke
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.