Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/misc/package.py: Use biopython instead of beautifulsoup4 as …
Browse files Browse the repository at this point in the history
…an example for pip packages
  • Loading branch information
Matthias Koeppe committed Mar 31, 2022
1 parent 2c8fd61 commit b6172cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sage/misc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def list_packages(*pkg_types: str, pkg_sources: List[str] = ['normal', 'pip', 's
'script'
sage: L = list_packages(pkg_sources=['pip'], local=True) # optional - sage_spkg internet
sage: bs4_info = L['beautifulsoup4'] # optional - sage_spkg internet
sage: bs4_info = L['biopython'] # optional - sage_spkg internet
sage: bs4_info.type # optional - sage_spkg internet
'optional'
sage: bs4_info.source # optional - sage_spkg internet
Expand Down Expand Up @@ -561,10 +561,9 @@ def optional_packages():
sage: from sage.misc.package import optional_packages
sage: installed, not_installed = optional_packages() # optional - sage_spkg
doctest:...: DeprecationWarning: ...
sage: 'beautifulsoup4' in installed+not_installed # optional - sage_spkg
sage: 'biopython' in installed + not_installed # optional - sage_spkg
True
sage: 'beautifulsoup4' in installed # optional - sage_spkg beautifulsoup4
sage: 'biopython' in installed # optional - sage_spkg beautifulsoup4
True
"""
from sage.misc.superseded import deprecation
Expand Down

0 comments on commit b6172cf

Please sign in to comment.