File: setup.py

package info (click to toggle)
jupyter-server-mathjax 0.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: python: 126; javascript: 73; makefile: 12
file content (37 lines) | stat: -rw-r--r-- 828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from pathlib import Path
from setuptools import setup
from jupyter_packaging import (
    wrap_installers,
    npm_builder,
    get_version,
)


NAME = "jupyter_server_mathjax"
here = Path(__file__).absolute().parent
version = get_version(here / NAME / "__version__.py")

jstargets = [
    here.joinpath(NAME, "static", "MathJax.js"),
    # if we are distributing MathJax, we need to include its license:
    here.joinpath(NAME, "static", "LICENSE"),
]

# Handle datafiles
builder = npm_builder(here)
cmdclass = wrap_installers(
    pre_develop=builder,
    pre_dist=builder,
    ensured_targets=jstargets
)

setup_args = dict(
    version=version,
    cmdclass=cmdclass,
)

if __name__ == "__main__":
    setup(**setup_args)