Coder Social home page Coder Social logo

html5tagger's Issues

Version issues with PyInstaller

I'm experimenting with using PyInstaller with Sanic, and I'm getting this strange error.

pkg_resources.DistributionNotFound: The 'html5tagger>=1.2.1' distribution was not found and is required by tracerite
[22687] Failed to execute script 'main' due to unhandled exception!

It's strange because I've installed html5tagger==1.3.0

% pip freeze | grep html5tagger
html5tagger==1.3.0

It's also strange because html5tagger is being picked up by pyinstaller

1123 INFO: Packages required by sanic:
['sanic_routing', 'httptools', 'aiofiles', 'websockets', 'multidict', 'html5tagger', 'tracerite', 'uvloop']
1224 INFO: Packages required by tracerite:
['html5tagger']

I noticed that the __version__ appears to be hard coded in this project (despite the PyPI version being 1.3.0):

__version__ = "1.2.0"

Ref: https://github.com/sanic-org/html5tagger/blob/main/html5tagger/__init__.py#L4

and that differs from something like, tracerite, where it's using pkg_resources:

import pkg_resources

__version__ = pkg_resources.require(__name__)[0].version

Ref: https://github.com/sanic-org/tracerite/blob/main/tracerite/__init__.py#L8

I don't know enough about packaging to say that for sure, but perhaps that's an issue in this situation?

Add real world examples

Hi,

Adding some more advanced examples would be nice.

  • How does it play together with web frameworks like sanic, flask or fastapi?
  • How can I replace jinja2 with html5tagger
  • Does it work with htmx?

Thanks :-)

Adding script shouldn't escape &&

Current work around:

builder.script(HTML("... && ..."))

When adding script, we shouldn't escape entities as it messes with the rendered Javascript.

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.