Skip to content

Commit

Permalink
Merge 620e7f8 into 033546b
Browse files Browse the repository at this point in the history
  • Loading branch information
ajduberstein committed Apr 23, 2019
2 parents 033546b + 620e7f8 commit c5461e5
Show file tree
Hide file tree
Showing 23 changed files with 686 additions and 32 deletions.
78 changes: 46 additions & 32 deletions .travis.yml
@@ -1,32 +1,46 @@
language: node_js
dist: precise
os: linux
group: stable
sudo: required
dist: trusty
env:
- CXX=g++-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- mesa-utils
- xvfb
- libgl1-mesa-dri
- libglapi-mesa
- libosmesa6
- libxi-dev
install:
- yarn bootstrap
node_js:
- 8.9.4
- 10.4.0
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
- ulimit -c unlimited -S # enable core dumps
script:
- npm run test ci
after_success:
- cat coverage/lcov.info | coveralls
matrix:
include:
- language: node_js
dist: precise
os: linux
group: stable
sudo: required
dist: trusty
env:
- CXX=g++-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- mesa-utils
- xvfb
- libgl1-mesa-dri
- libglapi-mesa
- libosmesa6
- libxi-dev
install:
- yarn bootstrap
node_js:
- 8.9.4
- 10.4.0
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
- ulimit -c unlimited -S # enable core dumps
script:
- npm run test ci
after_success:
- cat coverage/lcov.info | coveralls

- language: python
before_install:
- cd bindings/python/pydeck
python:
- '3.5'
- '2.7'
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install .
script: pytest --cov=pydeck
161 changes: 161 additions & 0 deletions bindings/python/.gitignore
@@ -0,0 +1,161 @@
*.pyc

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask instance folder
instance/

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/
docs/source/_static/embed-bundle.js
docs/source/_static/embed-bundle.js.map

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


# NPM
# ----

**/node_modules/
pydeck/pydeck/nbextension/static/index.js.map
*.tgz

# Coverage data
# -------------
**/coverage/

# Packed lab extensions
*pydeck/labextension
*pydeck/docs/source/_static/embed-bundle.js
*pydeck/docs/source/_static/embed-bundle.js.map
pydeck/pydeck/nbextension/static/index.js
2 changes: 2 additions & 0 deletions bindings/python/pydeck/.coveragerc
@@ -0,0 +1,2 @@
[run]
omit = pydeck/tests/*
27 changes: 27 additions & 0 deletions bindings/python/pydeck/LICENSE.txt
@@ -0,0 +1,27 @@
Copyright (c) 2019 Uber Technologies Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 changes: 31 additions & 0 deletions bindings/python/pydeck/MANIFEST.in
@@ -0,0 +1,31 @@
include LICENSE.txt
include README.md

include setupbase.py
include pytest.ini
include .coverage.rc

include package.json
include webpack.config.js
include pydeck/labextension/*.tgz

# Examples
graft examples

# Tests
graft tests
prune tests/build

# Javascript files
graft pydeck/nbextension
graft src
prune **/node_modules
prune coverage
prune lib

# Patterns to exclude from any directory
global-exclude *~
global-exclude *.pyc
global-exclude *.pyo
global-exclude .git
global-exclude .ipynb_checkpoints
15 changes: 15 additions & 0 deletions bindings/python/pydeck/README.md
@@ -0,0 +1,15 @@
# pydeck: A Python wrapper for deck.gl

[![Build Status](https://travis-ci.org/uber/pydeck.svg?branch=master)](https://travis-ci.org/uber/pydeck)
[![codecov](https://codecov.io/gh/uber/pydeck/branch/master/graph/badge.svg)](https://codecov.io/gh/uber/deck.gl)

A series of lightweight objects that can be combined to create a JSON blob that
is compliant with the deck.gl JSON API viewable in this repo at `modules/json`.

## Installation

This package is not yet published on PyPI but you can install it locally.

```bash
pip install -e .
```
12 changes: 12 additions & 0 deletions bindings/python/pydeck/codecov.yml
@@ -0,0 +1,12 @@
comment: off
# show coverage in CI status, but never consider it a failure
coverage:
status:
project:
default:
target: 0%
patch:
default:
target: 0%
ignore:
- "pydeck/tests"
13 changes: 13 additions & 0 deletions bindings/python/pydeck/pydeck/__init__.py
@@ -0,0 +1,13 @@
#!/usr/bin/env python
# coding: utf-8

# Copyright (c) Uber Technologies, Inc.
# Distributed under the terms of the Modified BSD License.

from .bindings import ( # noqa
Deck,
Layer,
LightSettings,
View,
ViewState
)
7 changes: 7 additions & 0 deletions bindings/python/pydeck/pydeck/_version.py
@@ -0,0 +1,7 @@
#!/usr/bin/env python

# Copyright (c) Uber Technologies, Inc.
# Distributed under the terms of the Modified BSD License.

version_info = (0, 1, 0, 'dev')
__version__ = '.'.join(map(str, version_info))
5 changes: 5 additions & 0 deletions bindings/python/pydeck/pydeck/bindings/__init__.py
@@ -0,0 +1,5 @@
from .deck import Deck # noqa
from .layer import Layer # noqa
from .light_settings import LightSettings # noqa
from .view import View # noqa
from .view_state import ViewState # noqa

0 comments on commit c5461e5

Please sign in to comment.