Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support networkx 3.2 #36544

Merged
merged 1 commit into from
Nov 5, 2023
Merged

Support networkx 3.2 #36544

merged 1 commit into from
Nov 5, 2023

Conversation

tornaria
Copy link
Contributor

In networkx 3.2 the output for cycle_basis() has changed.

After a discussion in #36486 it seems that checking that the output is correct would not be easy. In the spirit of supporting networkx 3.2 at the same time as networkx 3.1, the easiest way is to mark these five tests as random output.

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.

Fixes: #36486

In networkx 3.2 the output for cycle_basis() has changed.

After a discussion in sagemath#36486 it
seems that checking that the output is correct would not be easy. In the
spirit of supporting networkx 3.2 at the same time as networkx 3.1, the
easiest way is to mark these five tests as random output.
@kiwifb
Copy link
Member

kiwifb commented Oct 25, 2023

If we want to have a chance of getting this in 10.2 (in these state or any other) we need to give it a priority boost. Which is why I labelled it major, feel free to move it to critical if you think it is worth it.

@github-actions
Copy link

Documentation preview for this PR (built with commit fe163ac; changes) is ready! 🎉

@tobiasdiez
Copy link
Contributor

Could you please also increase/remove the version constraint of networkx in ̀ conda.txt` (probably best based on #36513).

@tornaria
Copy link
Contributor Author

Could you please also increase/remove the version constraint of networkx in ̀ conda.txt` (probably best based on #36513).

It seems out of scope for this PR. I'm not running or testing conda so I wouldn't be able to test it.

I noticed that there are (at least) two version constraint files, and they are out of sync (build/pkgs/networkx/install-requires.txt and build/pkgs/networkx/distros/conda.txt).

Copy link
Member

@mkoeppe mkoeppe left a comment

Choose a reason for hiding this comment

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

LGTM

@mkoeppe
Copy link
Member

mkoeppe commented Oct 29, 2023

Updating the version constraints can be done in a follow-up of #36544 and #36513.

@mkoeppe mkoeppe mentioned this pull request Oct 29, 2023
5 tasks
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 1, 2023
    
In networkx 3.2 the output for cycle_basis() has changed.

After a discussion in sagemath#36486 it
seems that checking that the output is correct would not be easy. In the
spirit of supporting networkx 3.2 at the same time as networkx 3.1, the
easiest way is to mark these five tests as random output.

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.

Fixes: sagemath#36486
    
URL: sagemath#36544
Reported by: Gonzalo Tornaría
Reviewer(s): Matthias Köppe
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 1, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36544 (merged here)
- Depends on sagemath#36513 (merged here)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36577
Reported by: Matthias Köppe
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 2, 2023
    
In networkx 3.2 the output for cycle_basis() has changed.

After a discussion in sagemath#36486 it
seems that checking that the output is correct would not be easy. In the
spirit of supporting networkx 3.2 at the same time as networkx 3.1, the
easiest way is to mark these five tests as random output.

### 📝 Checklist

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.

Fixes: sagemath#36486
    
URL: sagemath#36544
Reported by: Gonzalo Tornaría
Reviewer(s): Matthias Köppe
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 2, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36544 (merged here)
- Depends on sagemath#36513 (merged here)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36577
Reported by: Matthias Köppe
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 5, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36544 (merged here)
- Depends on sagemath#36513 (merged here)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36577
Reported by: Matthias Köppe
Reviewer(s): Tobias Diez
@vbraun vbraun merged commit 540e835 into sagemath:develop Nov 5, 2023
40 of 41 checks passed
@mkoeppe mkoeppe added this to the sage-10.2 milestone Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doctest failures with networkx 3.2
5 participants