Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsignell committed Feb 13, 2020
0 parents commit 7a49aef
Show file tree
Hide file tree
Showing 21 changed files with 2,615 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
omit =
tests/*.py
*/_version.py
source =
dask_geopandas
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dask_geopandas/_version.py export-subst
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.hypothesis
*.py[cod]
__pycache__/
*.egg-info
dask-worker-space/
docs/build
build/
dist/
.idea/
log.*
log
.pytest_cache/
.coverage
.DS_Store
*.swp
*.swo
.cache/
.ipynb_checkpoints
.vscode/
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https:/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7

- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
language_version: python3.7
45 changes: 45 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
language: generic
sudo: false
dist: trusty
os: linux

_base_envs:
- &test TEST='true'
- &test_and_lint TEST='true' LINT='true'
- &no_coverage COVERAGE='false'

jobs:
fast_finish: true
include:
- env: &py36_env
- PYTHON_VERSION=3.6
- ENV_FILE=continuous_integration/travis/travis-36.yaml
- *test
- *no_coverage

- env: &py37_env
- PYTHON_VERSION=3.7
- ENV_FILE=continuous_integration/travis/travis-37.yaml
- *test_and_lint
- *no_coverage

- env: &py38_env
- PYTHON_VERSION=3.8
- ENV_FILE=continuous_integration/travis/travis-38.yaml
- *test
- *coverage

install:
- if [[ $TEST == 'true' ]]; then source continuous_integration/travis/install.sh; fi

script:
- if [[ $TEST == 'true' ]]; then source continuous_integration/travis/run_tests.sh; fi
- if [[ $LINT == 'true' ]]; then python -m pip install flake8 ; flake8 dask; fi
- if [[ $LINT == 'true' ]]; then python -m pip install black ; black dask --check; fi

after_success:
- codecov
- source continuous_integration/travis/after_success.sh

notifications:
email: false
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Dask is a community maintained project. We welcome contributions in the form of bug reports, documentation, code, design proposals, and more.

Also for general information on how to contribute to Dask projects see https://docs.dask.org/en/latest/develop.html.
27 changes: 27 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2020, Dask Developers
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 OWNER 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.
8 changes: 8 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
recursive-include dask_geopandas *.py
recursive-include dask_geopandas *.yaml

include versioneer.py
include setup.py
include README.rst
include LICENSE
include dask_geopandas/_version.py
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dask-geopandas
============

Parallel GeoPandas with Dask


This is a new project that builds off the exploration done in
https:/mrocklin/dask-geopandas
6 changes: 6 additions & 0 deletions continuous_integration/travis/after_success.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
if [[ $COVERAGE == 'true' ]]; then
coverage report --show-missing
python -m pip install coveralls
coveralls
fi
20 changes: 20 additions & 0 deletions continuous_integration/travis/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set -xe

#!/usr/bin/env bash
# Install miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
export BOTO_CONFIG=/dev/null
conda config --set always_yes yes --set changeps1 no --set remote_max_retries 10

# Create conda environment
conda env create -q -n test-environment -f $ENV_FILE
source activate test-environment

# Install
python -m pip install --quiet --no-deps -e .
echo conda list
conda list

set +xe
13 changes: 13 additions & 0 deletions continuous_integration/travis/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

if [[ $COVERAGE == 'true' ]]; then
echo "coverage run `which py.test`"
coverage run `which py.test`
else
echo "py.test tests -v"
py.test tests -v
fi

set +e
11 changes: 11 additions & 0 deletions continuous_integration/travis/travis-36.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test-environment
channels:
- conda-forge
dependencies:
# required dependencies
- python=3.6
- dask
- distributed
- geopandas
# test dependencies
- pytest
11 changes: 11 additions & 0 deletions continuous_integration/travis/travis-37.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test-environment
channels:
- conda-forge
dependencies:
# required dependencies
- python=3.7
- dask
- distributed
- geopandas
# test dependencies
- pytest
11 changes: 11 additions & 0 deletions continuous_integration/travis/travis-38.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test-environment
channels:
- conda-forge
dependencies:
# required dependencies
- python=3.8
- dask
- distributed
- geopandas
# test dependencies
- pytest
Empty file added dask_geopandas/__init__.py
Empty file.
Loading

0 comments on commit 7a49aef

Please sign in to comment.