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 — DOC: ``f2py`` CLI documentation enhancements by HaoZeke · Pull Request #25124 · numpy/numpy

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 12, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

f2py CLI documentation enhancements:

  • Removes 1.16 CLI arguments
  • Help text for f2py now mentions [NO_MESON] options
  • Removed an absoft flag from the help text
  • Added basic documentation, partially addressing BUG: f2py - Invalid command line options do not warn or error on Python 3.12 #24874 (comment)
  • Closes BUG,DOC: F2PY CLI usage discrepancy #20520.

Sorry, something went wrong.

Uh oh!

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

All reactions
@HaoZeke
MAINT: Kill 1.16 cliargs [f2py] [skip ci]
a794b59
@HaoZeke HaoZeke added component: numpy.f2py 03 - Maintenance labels Nov 12, 2023
HaoZeke added 3 commits November 12, 2023 05:19
@HaoZeke
MAINT: [f2py] CLI signals meson flags [skip ci]
5945fba
@HaoZeke
MAINT: Remove absoft flag [skip ci]
25527f9
Not handled outside distutils anyway
@HaoZeke
DOC: Document the new CLI options [f2py]
9947aca
@HaoZeke
HaoZeke requested a review from melissawm November 12, 2023 06:08
@HaoZeke HaoZeke changed the title MAINT: Kill 1.16 cliargs [f2py] [skip ci] DOC: f2py CLI documentation enhancements Nov 12, 2023
@HaoZeke
DOC: Add a note about only: and skip:
3fd12f3
Close numpygh-20520
mattip
mattip reviewed Nov 13, 2023
View reviewed changes
Comment thread numpy/f2py/auxfuncs.py Outdated
Comment on lines +6 to +7
Copyright 1999,2000 Pearu Peterson all rights reserved,
Pearu Peterson <[email protected]>
Copyright 1999 - 2011 Pearu Peterson all rights reserved.
Copyright 2011 - 2023 NumPy Developers.

@mattip mattip Nov 13, 2023

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have precedent for adding another copyright line to modified files? I think this is covered by the overall project license, but if you feel strongly then perhaps we should simply remove the dates altogether, as suggested here to prevent additional yearly maintenance burden.

Sorry, something went wrong.

Uh oh!

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

All reactions

@HaoZeke HaoZeke Nov 13, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can / should remove Pearu's original copyright line, but at the same time I wanted to emphasize the current state of maintenance. Does 2012--present sound alright?

Edit: Note that the License.txt has both beginning (2005) and end (2023) dates.

Sorry, something went wrong.

Uh oh!

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

All reactions
mattip
mattip reviewed Nov 13, 2023
View reviewed changes
Comment thread numpy/f2py/auxfuncs.py Outdated
Comment on lines +6 to +7
Copyright 1999 - 2011 Pearu Peterson all rights reserved.
Copyright 2011 - 2023 NumPy Developers.

@mattip mattip Nov 13, 2023

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove the years, they only add maintenance burden without really affecting the legal status of the statement (see the link above). So something like this, or even without the NumPy developers line (which is covered by the regular license).

Suggested change
Copyright 1999 - 2011 Pearu Peterson all rights reserved.
Copyright 2011 - 2023 NumPy Developers.
Copyright Pearu Peterson all rights reserved.
Copyright NumPy Developers.

Sorry, something went wrong.

Uh oh!

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

All reactions

@HaoZeke HaoZeke Nov 13, 2023

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the argument in the link, but here it would be nonsensical to have both all rights reserved under one name and also have the other. The years are important in the sense that it shows a transition in the copyright holders. So I would probably prefer 1999-2011 for Pearu and 2012 onwards or 2012--present for NumPy

Sorry, something went wrong.

Uh oh!

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

All reactions

@mattip mattip Nov 13, 2023

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IANAL. I think the whole change is not needed, but am open to accepting other views.

Sorry, something went wrong.

Uh oh!

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

All reactions

@HaoZeke HaoZeke Nov 13, 2023

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, it was a single commit I'm happy to revert, the rest of this really needs to be in ASAP, lots of confusion regarding the meson backend and f2py.

Sorry, something went wrong.

Uh oh!

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

All reactions

@HaoZeke HaoZeke Nov 13, 2023

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted for now, though I think its worth a discussion, opened #25137 for later.

Sorry, something went wrong.

Uh oh!

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

mattip reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@HaoZeke
HaoZeke force-pushed the f2pyCLIcruft branch from 34d99b8 to 14ca2cb Compare November 13, 2023 13:38
@HaoZeke
DOC: Remove dead comments [f2py]
d36e8a7
@HaoZeke
HaoZeke force-pushed the f2pyCLIcruft branch from 14ca2cb to d36e8a7 Compare November 13, 2023 13:39
@HaoZeke
HaoZeke requested a review from mattip November 13, 2023 13:39
@HaoZeke HaoZeke mentioned this pull request Nov 13, 2023
MAINT,DOC: Updating inline f2py licenses #25137
Closed
@mattip

mattip commented Nov 13, 2023

Copy link
Copy Markdown
Member

Seems reasonable from what I can see. I am troubled by the lack of test coverage. Did you try this out both on distutils-based pre-3.12 and on meson?

All reactions

Sorry, something went wrong.

Uh oh!

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

@HaoZeke

HaoZeke commented Nov 13, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member Author

Seems reasonable from what I can see. I am troubled by the lack of test coverage. Did you try this out both on distutils-based pre-3.12 and on meson?

Yup, I tested (and passed CI with distutils) in the original implementation (#24532). Tests formeson required a rewrite of the testing interface, this was done in #25111 (just waiting on some of the other PRs). The switch from distutils to meson for tests makes sense in the larger context of meson being the build system for the CI (#23838) and is thus now always present. Plus we really want users to switch to meson ASAP.

The documented changes here are already in the code (in an ideal world they should have been part of the 1.26 release where the meson backend was introduced). We don't have very comprehensive tests for the CLI AFAIK, just for the functions themselves, which is why bugs like #25123 snuck in. CLI tests are a relatively recent feature, I started adding them (around 70% coverage) two years ago (#20668). The GSoC summer work included some front-end testing (#21835), but since the rewrite stalled (#21923) in favor of the backend work, tests were not covered. I think we ought to test more of the CLI. Should be a different issue though. Since documentation seems alright I guess it would be best to have it in, can be iterated on later.

All reactions

Sorry, something went wrong.

Uh oh!

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

@mattip
mattip merged commit 5b1317c into numpy:main Nov 13, 2023
@mattip

mattip commented Nov 13, 2023

Copy link
Copy Markdown
Member

Thanks @HaoZeke

HaoZeke reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

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

@HaoZeke
HaoZeke deleted the f2pyCLIcruft branch November 13, 2023 15:58
@rgommers rgommers added this to the 2.0.0 release milestone Nov 15, 2023
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Dec 24, 2023
@charris charris changed the title DOC: f2py CLI documentation enhancements DOC: f2py CLI documentation enhancements Dec 24, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Dec 24, 2023
@HaoZeke
HaoZeke restored the f2pyCLIcruft branch June 15, 2024 23:40
@HaoZeke
HaoZeke deleted the f2pyCLIcruft branch November 10, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@melissawm melissawm Awaiting requested review from melissawm
@mattip mattip Awaiting requested review from mattip

Uh oh!

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

Assignees

No one assigned

Labels

03 - Maintenance component: numpy.f2py

Projects

None yet

Milestone

2.0.0 release

Development

Successfully merging this pull request may close these issues.

BUG,DOC: F2PY CLI usage discrepancy

Uh oh!

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

4 participants

@HaoZeke @mattip @charris @rgommers
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.