#!/usr/bin/env python3
# -*- encoding: utf-8 -*-

from setuptools import setup, find_packages

requires = ['itsdangerous', 'Jinja2', 'misaka>=2.0,<3.0', 'html5lib',
            'werkzeug>=1.0', 'bleach', 'Flask-Caching>=1.9', 'Flask']

setup(
    name='isso',
    version='0.12.5',
    author='Martin Zimmermann',
    author_email='info@posativ.org',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    url='https://github.com/posativ/isso/',
    license='MIT',
    description='lightweight Disqus alternative',
    python_requires='>=3.5',
    classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: Internet",
        "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9"
    ],
    install_requires=requires,
    entry_points={
        'console_scripts':
            ['isso = isso:main'],
    }
)

@@ -43,16 +43,80 @@
 -8 -*-%0A%0A
+import os%0Aimport setuptools.command.build_py%0Aimport subprocess%0A%0A
 from set
@@ -293,16 +293,311 @@
 lask'%5D%0A%0A
+%0Aclass NpmBuildCommand(setuptools.command.build_py.build_py):%0A    %22%22%22Prefix Python build with node-based asset build%22%22%22%0A%0A    def run(self):%0A        if 'TOX_ENV' not in os.environ:%0A            subprocess.check_call(%5B'make', 'init', 'js'%5D)%0A        setuptools.command.build_py.build_py.run(self)%0A%0A%0A
 setup(%0A 
@@ -1553,11 +1553,71 @@
 %5D,%0A    %7D
+,%0A    cmdclass=%7B%0A        'build_py': NpmBuildCommand,%0A    %7D,
 %0A)%0A

Build JavaScript files during python package build (#697)