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

Remove database and host components. #576

Merged
merged 3 commits into from
Jul 30, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ To upgrade the package, simply execute the same command with the ``--upgrade`` o

$ pip install signac --user --upgrade

Consider installing optional dependencies:

.. code:: bash

$ pip install pymongo passlib bcrypt --user

Consider installing :ref:`optional dependencies <optional_dependencies>`.

Source Code Installation
========================
Expand All @@ -80,10 +75,5 @@ Extra features with dependencies:

.. glossary::

MongoDB database backend
required: ``pymongo``

recommended: ``passlib``, ``bcrypt``

HDF5 integration
required: ``h5py``
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ select = E,F,W
ignore = E123,E126,E203,E226,E241,E704,W503,W504

[pydocstyle]
match = ^((?!\.sync-zenodo-metadata|setup|benchmark|connection|crypt|host|indexing).)*\.py$
match-dir = ^((?!\.|tests|configobj|db).)*$
match = ^((?!\.sync-zenodo-metadata|setup|benchmark|indexing).)*\.py$
match-dir = ^((?!\.|tests|configobj).)*$
ignore-decorators = "deprecated"
add-ignore = D105, D107, D203, D204, D213

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
# Supported versions are determined according to NEP 29.
# https://numpy.org/neps/nep-0029-deprecation_policy.html
python_requires=">=3.6, <4",
extras_require={"db": ["pymongo>=3.0"], "h5": ["h5py"]},
extras_require={"h5": ["h5py"]},
entry_points={"console_scripts": ["signac = signac.__main__:main"]},
)
5 changes: 1 addition & 4 deletions signac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
collectively accessible.
"""

from . import cite, contrib, db, errors, sync, testing, warnings
from . import cite, contrib, errors, sync, testing, warnings
from .contrib import (
Collection,
MainCrawler,
Expand All @@ -30,7 +30,6 @@
init_project,
)
from .core.h5store import H5Store, H5StoreManager
from .db import get_database
from .diff import diff_jobs
from .synced_collections.backends.collection_json import (
BufferedJSONAttrDict as JSONDict,
Expand All @@ -47,7 +46,6 @@
__all__ = [
"__version__",
"contrib",
"db",
"errors",
"warnings",
"sync",
Expand All @@ -58,7 +56,6 @@
"init_project",
"get_job",
"diff_jobs",
"get_database",
"fetch",
"export_one",
"export",
Expand Down
Loading