Giter Site home page Giter Site logo

Comments (7)

github-actions avatar github-actions commented on July 20, 2024

Thank you for your contribution! This is very appreciated.

from mkdocs-mermaid2-plugin.

fralau avatar fralau commented on July 20, 2024

Thanks! In practice, how would you call python setup.py install for the test feature?

from mkdocs-mermaid2-plugin.

lofidevops avatar lofidevops commented on July 20, 2024

Good question 🤔 I must admit I didn't test that scenario. Let me play around and confirm it works. How do you do it at the moment? How do you do it with mkdocs_macros_plugin?

from mkdocs-mermaid2-plugin.

lofidevops avatar lofidevops commented on July 20, 2024

To do this from scratch:

cd mkdocs-mermaid2-plugin
virtualenv .venv --python=python3
./.venv/bin/pip install -e .[test]
./.venv/bin/python setup.py test

This installs mkdocs-mermaid2-plugin as an editable library in the virtualenv, with the testing prerequisites. (You can confirm that mkdocs-material and pyyaml both appear in .venv/lib.)

Although I'm pretty sure "setup.py test" is not doing anything. I'm not sure how you trigger your tests?

from mkdocs-mermaid2-plugin.

fralau avatar fralau commented on July 20, 2024

Thanks! If you use pip, would it work as follows?

pip install "mkdocs-mermaid2-plugin[test]"

from mkdocs-mermaid2-plugin.

lofidevops avatar lofidevops commented on July 20, 2024

Yes, that's how you would install it from PyPI.

from mkdocs-mermaid2-plugin.

lofidevops avatar lofidevops commented on July 20, 2024

Hmmm 🤔 if it's required for mkdocs-material users, not just for testing before release, then you probably want another extras definition so they can pip install mkdocs-mermaid2-plugin[material]. Or maybe that's simply a better name than test? Let me know.

from mkdocs-mermaid2-plugin.

Related Issues (20)

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.