File: setup.py

package info (click to toggle)
jupyter-sphinx-theme 0.0.6%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 316 kB
  • sloc: makefile: 170; python: 120; sh: 6
file content (67 lines) | stat: -rw-r--r-- 2,135 bytes parent folder | download | duplicates (4)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
"""Sphinx Bootstrap Theme package."""
import os
from setuptools import setup, find_packages

from jupyter_sphinx_theme import __version__

###############################################################################
# Environment and Packages.
###############################################################################
# Don't copy Mac OS X resource forks on tar/gzip.
os.environ['COPYFILE_DISABLE'] = "true"

# Packages.
MOD_NAME = "jupyter_sphinx_theme"
PKGS = [x for x in find_packages() if x.split('.')[0] == MOD_NAME]


###############################################################################
# Helpers.
###############################################################################
def read_file(name):
    """Read file name (without extension) to string."""
    cur_path = os.path.dirname(__file__)
    exts = ('txt', 'rst', 'md')
    for ext in exts:
        path = os.path.join(cur_path, '.'.join((name, ext)))
        if os.path.exists(path):
            with open(path, 'rt') as file_obj:
                return file_obj.read()

    return ''


###############################################################################
# Setup.
###############################################################################
setup(
    name="jupyter-sphinx-theme",
    version=__version__,
    use_2to3=True,
    description="Jupyter Sphinx Theme.",
    long_description=read_file("README"),
    url="http://github.com/jupyter/sphinx-theme",

    author="Ryan Roemer, Project Jupyter, and contributors",
    author_email="jupyter@googlegroups.com",

    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Web Environment",
        "Intended Audience :: Developers",
        "Intended Audience :: System Administrators",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Internet",
        "Topic :: Software Development :: Documentation",
    ],

    install_requires=[
        "setuptools",
        "recommonmark==0.4.0",
        "nbsphinx"
    ],

    packages=PKGS,
)