Example #1
0
"""
Short script which prints the mpld3 version to stdout

This is used within the Javascript build system.
"""
from _mpld3_setup import get_version
print(get_version())
Example #2
0
    from distutils.core import setup

from _mpld3_setup import (require_clean_submodules, UpdateSubmodules,
                          check_js_build_status, BuildJavascript, get_version)

DESCRIPTION = "D3 Viewer for Matplotlib"
LONG_DESCRIPTION = open('README.md').read()
NAME = "mpld3"
AUTHOR = "Jake VanderPlas"
AUTHOR_EMAIL = "*****@*****.**"
MAINTAINER = "Jake VanderPlas"
MAINTAINER_EMAIL = "*****@*****.**"
URL = 'http://mpld3.github.com'
DOWNLOAD_URL = 'http://github.com/jakevdp/mpld3'
LICENSE = 'BSD 3-clause'
VERSION = get_version()

# Make sure submodules are updated and synced
root_dir = os.path.abspath(os.path.dirname(__file__))
require_clean_submodules(root_dir, sys.argv)

# Warn if it looks like JS libs need to be built
if 'buildjs' not in sys.argv:
    check_js_build_status(VERSION, root_dir)

setup(
    name=NAME,
    version=VERSION,
    description=DESCRIPTION,
    long_description=LONG_DESCRIPTION,
    author=AUTHOR,
Example #3
0
    from distutils.core import setup

from _mpld3_setup import (require_clean_submodules, UpdateSubmodules,
                          check_js_build_status, BuildJavascript, get_version)

DESCRIPTION = "D3 Viewer for Matplotlib"
LONG_DESCRIPTION = open('README.md').read()
NAME = "mpld3"
AUTHOR = "Jake VanderPlas"
AUTHOR_EMAIL = "*****@*****.**"
MAINTAINER = "Jake VanderPlas"
MAINTAINER_EMAIL = "*****@*****.**"
URL = 'http://mpld3.github.com'
DOWNLOAD_URL = 'https://github.com/timchepeleff/mpld3'
LICENSE = 'BSD 3-clause'
VERSION = get_version()

# Make sure submodules are updated and synced
root_dir = os.path.abspath(os.path.dirname(__file__))
require_clean_submodules(root_dir, sys.argv)

# Warn if it looks like JS libs need to be built
if 'buildjs' not in sys.argv:
    check_js_build_status(VERSION, root_dir)


setup(name=NAME,
      version=VERSION,
      description=DESCRIPTION,
      long_description=LONG_DESCRIPTION,
      author=AUTHOR,