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
.appveyor.yml
environment:

  image: Visual Studio 2017

  matrix:
    - PYTHON: "C:\\Python36"
      PYTHON_VERSION: "3.6.x"
      PYTHON_ARCH: "32"
    - PYTHON: "C:\\Python36-x64"
      PYTHON_VERSION: "3.6.x"
      PYTHON_ARCH: "64"
    - PYTHON: "C:\\Python37-x64"
      PYTHON_VERSION: "3.7.x"
      PYTHON_ARCH: "64"

build: off

install:
  - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
  - "python -m pip install --upgrade pip"
  - "%CMD_IN_ENV% pip install ."

before_test:
  - "%CMD_IN_ENV% pip install pytest"
  - cinst pandoc
  - ps: $env:Path += ";C:\Program Files (x86)\Pandoc\"

test_script:
  - "%CMD_IN_ENV% pytest"
back to top