Revision 1148689648dcffda75d3d035e040eb7e2b389ef3 authored by Daniel Himmelstein on 24 September 2018, 01:27:22 UTC, committed by GitHub on 24 September 2018, 01:27:22 UTC
Merges https://github.com/greenelab/manubot/pull/56

* Move code in __init__.py submodule files to util.py.

Enables manubot CLI to be called without running these files and
triggering the imports

Creates slightly more aesthetic import statements such as
`import manubot.cite.util` rather than `import manubot.cite.cite`.

* Configure subcommand argparsers in command.py

Submodules are now lazily imported, when using the manubot CLI.

* Use string function specs for citeproc_retrievers

Enables lazy import of citation_retreiver functions.

* manubot.cite: expose citation_to_citeproc & standardize_citation

Define __all__ in manubot.cite.__init__.py to silence flake8
warning as per https://stackoverflow.com/a/49266468/4651668.
1 parent b46e16b
Raw File
LICENSE.md
# BSD 3-Clause License

_Copyright © 2017, The Greene Lab at the University of Pennsylvania_
<br>
_All rights reserved._

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
back to top