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

Commit

Permalink
sage.features: Add headers for the reference manual
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Nov 23, 2021
1 parent b8eb3ff commit 322e7c9
Show file tree
Hide file tree
Showing 28 changed files with 51 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/doc/en/reference/misc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ Features
:maxdepth: 1

sage/features
sage/features/all
sage/features/join_feature
sage/features/all
sage/features/sagemath
sage/features/bliss
sage/features/csdp
Expand Down
3 changes: 3 additions & 0 deletions src/sage/features/all.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
r"""
Enumeration of all defined features
"""

def all_features():
r"""
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/bliss.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Checks for bliss
Features for testing the presence of ``bliss``
"""
from . import CythonFeature, PythonModule
from .join_feature import JoinFeature
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/csdp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Testing for CSDP at runtime
Feature for testing the presence of ``csdp``
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/databases.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Testing for databases at runtime
Features for testing the presence of various databases
"""


Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/dvipng.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for dvipng
Feature for testing the presence of ``dvipng``
"""
# ****************************************************************************
# Copyright (C) 2021 Sebastien Labbe <slabqc@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/fes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Checks for FES
Features for testing the presence of ``fes``
"""

from . import CythonFeature, PythonModule
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/ffmpeg.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for FFmpeg
Feature for testing the presence of ``ffmpeg``
"""
# ****************************************************************************
# Copyright (C) 2018 Sebastien Labbe <slabqc@gmail.com>
Expand Down
4 changes: 4 additions & 0 deletions src/sage/features/four_ti_2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
r"""
Features for testing the presence of ``4ti2``
"""

from . import Executable
from .join_feature import JoinFeature

Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/gap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for GAP features
Features for testing the presence of GAP packages
"""

from . import Feature, FeatureTestResult
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/graph_generators.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check various graph generator programs
Features for testing the presence of various graph generator programs
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/graphviz.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for graphviz
Features for testing the presence of ``graphviz``
"""
# ****************************************************************************
# Copyright (C) 2018 Sebastien Labbe <slabqc@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/imagemagick.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for imagemagick
Feature for testing the presence of ``imagemagick``
Currently we only check for the presence of ``convert``. When needed other
commands like ``magick``, ``magick-script``, ``convert``, ``mogrify``,
Expand Down
4 changes: 4 additions & 0 deletions src/sage/features/internet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
r"""
Feature for testing if the Internet is available
"""

from . import Feature, FeatureTestResult


Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/kenzo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for Kenzo
Feature for testing the presence of ``kenzo``
"""

from . import Feature, FeatureTestResult
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/latex.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for pdflatex and equivalent programs
Features for testing the presence of ``latex`` and equivalent programs
"""
# ****************************************************************************
# Copyright (C) 2021 Sebastien Labbe <slabqc@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/latte.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for LattE
Features for testing the presence of ``latte_int``
"""
from . import Executable
from .join_feature import JoinFeature
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/lrs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for lrs
Feature for testing the presence of ``lrslib``
"""

import os
Expand Down
4 changes: 4 additions & 0 deletions src/sage/features/mcqd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
r"""
Features for testing the presence of ``mcqd``
"""

from . import PythonModule
from .join_feature import JoinFeature

Expand Down
6 changes: 5 additions & 1 deletion src/sage/features/meataxe.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
r"""
Feature for testing the presence of ``meataxe``
"""

from . import PythonModule
from .join_feature import JoinFeature


class Meataxe(JoinFeature):
r"""
A :class:`sage.features.Feature` describing the presence of ``MeatAxe``.
A :class:`sage.features.Feature` describing the presence of ``meataxe``.
EXAMPLES::
Expand Down
4 changes: 4 additions & 0 deletions src/sage/features/mip_backends.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
r"""
Features for testing the presence of :class:`MixedIntegerLinearProgram` backends
"""

from . import Feature, FeatureTestResult
from .join_feature import JoinFeature

Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/normaliz.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
r"""
Check for pynormaliz
Feature for testing the presence of ``pynormaliz``
"""
from . import PythonModule
from .join_feature import JoinFeature
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/pandoc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for pandoc
Feature for testing the presence of ``pandoc``
"""
# ****************************************************************************
# Copyright (C) 2018 Thierry Monteil <sage!lma.metelu.net>
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/pdf2svg.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for pdf2svg
Feature for testing the presence of ``pdf2svg``
"""
# ****************************************************************************
# Copyright (C) 2021 Sebastien Labbe <slabqc@gmail.com>
Expand Down
3 changes: 3 additions & 0 deletions src/sage/features/polymake.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
r"""
Feature for testing the presence of the Python interface to polymake
"""
from . import PythonModule
from .join_feature import JoinFeature

Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/rubiks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
r"""
Check for rubiks
Features for testing the presence of ``rubiks``
"""
# ****************************************************************************
# This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/sagemath.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
r"""
Check for SageMath Python modules
Features for testing the presence of Python modules in the Sage library
"""
from . import PythonModule
from .join_feature import JoinFeature
Expand Down
4 changes: 4 additions & 0 deletions src/sage/features/tdlib.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
r"""
Features for testing the presence of ``tdlib``
"""

from . import PythonModule
from .join_feature import JoinFeature

Expand Down

0 comments on commit 322e7c9

Please sign in to comment.