Giter Club home page Giter Club logo

invenio-memento's Introduction

invenio-memento's People

Contributors

jirikuncar avatar tiborsimko avatar dinosk avatar cg-cnu avatar

Stargazers

Nikolaus Schlemm avatar

Watchers

Piotr Praczyk avatar Joe Blaylock avatar Johnny Mariéthoz avatar  avatar  avatar  avatar Wojciech Ziółek avatar Eamonn Maguire avatar Travis Brooks avatar Fredrik Carlsen avatar Roman Chyla avatar RobAtkinson avatar Mihai Bivol avatar  avatar Javier Martin Montull avatar Esteban J. G. Gabancho avatar Jose Benito Gonzalez Lopez avatar James Cloos avatar Alberto Accomazzi avatar Nikos Kasioumis avatar Lars Holm Nielsen avatar Alex Ioannidis avatar João Gonçalves avatar Kai Woerner avatar Grzegorz Szpura avatar Nicola avatar Rémi Ducceschi avatar Jan Iwaszkiewicz avatar Audun Bjørkøy avatar Micha Moskovic avatar Konstantinos Kostis avatar Georgios Kokosioulis avatar Kamil Neczaj avatar Harris Tzovanakis avatar Georgios Papoutsakis avatar Antonios Manaras avatar Jaime García avatar  avatar Ludmila Marian avatar Rokas Maciulaitis avatar Eirini Psallida avatar Javier Delgado Fernández avatar Pamfilos Fokianos avatar Robert avatar  avatar Theodoros Theodoropoulos avatar  avatar  avatar Stefan Hesselbach avatar  avatar Flavio avatar Achintya Rao avatar  avatar Niklas Persson avatar Jan avatar  avatar  avatar Werner Greßhoff avatar Spyridon Delviniotis avatar Oliver Knodel avatar  avatar Ania avatar Aboubakr Aly Badr avatar Karolina avatar

invenio-memento's Issues

Entry point initialization for invenio_memento.view:blueprint

Trying to run a cli command for invenio memento gave me this:

Traceback (most recent call last):
  File "/Users/dinossimpson/.environments/ils2/bin/invenio", line 11, in <module>
    sys.exit(cli())
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/flask/cli.py", line 374, in main
    return AppGroup.main(self, *args, **kwargs)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/click/core.py", line 1061, in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/click/core.py", line 1100, in resolve_command
    cmd = self.get_command(ctx, cmd_name)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/flask/cli.py", line 345, in get_command
    rv = info.load_app().cli.get_command(ctx, name)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/flask/cli.py", line 223, in load_app
    rv = self.create_app(self)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/invenio_base/app.py", line 159, in create_cli_app
    app = create_app(debug=get_debug_flag())
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/invenio_base/app.py", line 127, in _create_app
    modules=blueprints,
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/invenio_base/app.py", line 193, in blueprint_loader
    ), entry_points=entry_points, modules=modules)
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/invenio_base/app.py", line 230, in _loader
    init_func(ep.load())
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2302, in load
    return self.resolve()
  File "/Users/dinossimpson/.environments/ils2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2308, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'invenio_memento.view' 

Possibly a typo, fixed in #19

tests: simplify doctest execution

The following cookiecutter change:

inveniosoftware/cookiecutter-invenio-module#98

should be propagated to this Invenio module.

Namely, in run-tests.sh, the sphinx for doctests is invoked after pytest run:

$ tail -3 ./\{\{\ cookiecutter.project_shortname\ \}\}/run-tests.sh
sphinx-build -qnNW docs docs/_build/html && python setup.py test && sphinx-build -qnNW -b doctest docs docs/_build/doctest

This sometimes led to problems on Travis CI with the second sphinx-build run due
to "disappearing" dependencies after the example application was tested.

A solution that worked for invenio-marc21 (see
inveniosoftware/invenio-marc21#49 (comment))
and that was integrated in cookiecutter (see
inveniosoftware/cookiecutter-invenio-module#98) was to
run doctest execution in pytest, removing the second sphinx-build invocation.

This both solved Travis CI build failures and simplified test suite execution.

Note that this change may necessitate to amend the code tests etc so that things
would be executed with the Flask application context (see
inveniosoftware/invenio-marc21@09e98fc).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.