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

Drop the plotting module (separate package?) #1284

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.