Skip to content

Commit

Permalink
Drop the plotting module (separate package?)
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Jan 19, 2023
1 parent 1fa5c62 commit 0f2e536
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 2,435 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
pip install -U pip setuptools wheel
pip install -U git+https://github.com/zheller/flake8-quotes
pip install -U .[interactive,develop,gmpy,exports,plot,docs]
pip install -U .[interactive,develop,gmpy,exports,docs]
- name: Install ~/.python_history
run: touch ~/.python_history
- name: Linting with flake8 and pylint
Expand Down
17 changes: 0 additions & 17 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
import diofant


try:
import matplotlib
matplotlib.rc('figure', max_open_warning=0)
del matplotlib
except ImportError:
collect_ignore_glob = ['diofant/plotting/*.py']


def pytest_report_header(config):
return f"""\nDiofant version: {diofant.__version__}
cache: {diofant.core.cache.USE_CACHE}
Expand Down Expand Up @@ -43,15 +35,6 @@ def _set_displayhook():
sys.__displayhook__ = sys.displayhook # https://bugs.python.org/26092


@pytest.fixture(autouse=True, scope='session')
def _enable_mpl_agg_backend():
try:
import matplotlib
matplotlib.use('Agg')
except ImportError:
pass


@pytest.fixture(autouse=True)
def _add_np(doctest_namespace):
for sym in (diofant.symbols('a:d t x:z') +
Expand Down
12 changes: 4 additions & 8 deletions diofant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@
primepi, primerange, primitive_root, primorial,
quadratic_residues, randprime, sieve, sqrt_mod,
sqrt_mod_iter, square_factor, totient, trailing)
from .plotting import (plot, plot3d, plot3d_parametric_line,
plot3d_parametric_surface, plot_backends, plot_implicit,
plot_parametric)
from .polys import (LC, LM, LT, BasePolynomialError, CoercionFailedError,
ComputationFailedError, DomainError, EvaluationFailedError,
ExactQuotientFailedError, ExtraneousFactorsError,
Expand Down Expand Up @@ -291,11 +288,10 @@
'RGS_enum', 'RGS_rank', 'RGS_unrank', 'RubikGroup', 'Subset',
'SymmetricGroup', 'alternating', 'cube', 'cyclic', 'dihedral',
'dodecahedron', 'icosahedron', 'octahedron', 'symmetric', 'tetrahedron',
'plot', 'plot3d', 'plot3d_parametric_line', 'plot3d_parametric_surface',
'plot_backends', 'plot_implicit', 'plot_parametric', 'StrPrinter', 'ccode',
'dotprint', 'fcode', 'latex', 'mathematica_code', 'mathml', 'octave_code',
'pprint', 'pprint_use_unicode', 'pretty', 'pretty_print', 'python', 'srepr',
'sstr', 'sstrrepr', 'init_printing', 'ExtendedReals', 'IntegerModRing')
'StrPrinter', 'ccode', 'dotprint', 'fcode', 'latex', 'mathematica_code',
'mathml', 'octave_code', 'pprint', 'pprint_use_unicode', 'pretty',
'pretty_print', 'python', 'srepr', 'sstr', 'sstrrepr', 'init_printing',
'ExtendedReals', 'IntegerModRing')

__version__ = pkg_resources.get_distribution(__name__).version
del pkg_resources
10 changes: 0 additions & 10 deletions diofant/plotting/__init__.py

This file was deleted.

0 comments on commit 0f2e536

Please sign in to comment.