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

sage.categories: Modularization fixes for imports #35279

Merged

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Mar 14, 2023

📚 Description

We should be able to import Python modules from sage.categories even if implementation modules are not installed; that's the premise of the distribution sagemath-categories.
Here we make changes to avoid module-level dependencies on some higher-level functionality, such as symbolic functions, linear algebra, etc.

#35275 takes care of some other imports.

Part of

📝 Checklist

  • I have made sure that the title is self-explanatory and the description concisely explains the PR.
  • I have linked an issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

⌛ Dependencies

@mkoeppe mkoeppe force-pushed the sage_categories_modularization_fixes branch from 296762f to df0507d Compare March 14, 2023 02:37
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 88.88% and project coverage change: -0.01 ⚠️

Comparison is base (f449b14) 88.62% compared to head (df0507d) 88.62%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #35279      +/-   ##
===========================================
- Coverage    88.62%   88.62%   -0.01%     
===========================================
  Files         2148     2148              
  Lines       398653   398663      +10     
===========================================
- Hits        353308   353307       -1     
- Misses       45345    45356      +11     
Impacted Files Coverage Δ
src/sage/categories/rings.py 77.37% <50.00%> (-0.41%) ⬇️
...age/categories/finite_complex_reflection_groups.py 79.12% <100.00%> (ø)
...ries/finite_dimensional_lie_algebras_with_basis.py 83.54% <100.00%> (+0.25%) ⬆️
src/sage/categories/loop_crystals.py 96.65% <100.00%> (+0.01%) ⬆️
src/sage/categories/pushout.py 89.49% <100.00%> (ø)

... and 29 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

Documentation preview for this PR is ready! 🎉
Built with commit: 8722462

Copy link
Collaborator

@kwankyu kwankyu 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
Contributor Author

mkoeppe commented Mar 31, 2023

Thank you!

@vbraun vbraun merged commit 1d591ea into sagemath:develop Apr 1, 2023
@mkoeppe mkoeppe added this to the sage-10.0 milestone Apr 1, 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.

4 participants