-
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup CI services, packaging * Fixups * Fix warnings, cleanup * BUG: fix scale assignment * Added tox
- Loading branch information
1 parent
9e85ba2
commit 8e2600d
Showing
18 changed files
with
175 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
language: python | ||
env: | ||
matrix: | ||
- PYTHON=3.6 | ||
- PYTHON=3.5 | ||
- PYTHON=2.7 | ||
before_install: | ||
- export PATH="$HOME/miniconda3/bin:$PATH" | ||
install: | ||
- ci/install-travis.sh | ||
script: | ||
- echo "script start" | ||
- source activate test-environment | ||
- pytest tests | ||
- flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include MANIFEST.in | ||
include LICENSE.md | ||
include README.rst | ||
include setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
echo "[install-travis]" | ||
|
||
# install iniconda | ||
MINICONDA_DIR="$HOME/miniconda3" | ||
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1 | ||
time bash miniconda.sh -b -p "$MINICONDA_DIR" || exit 1 | ||
|
||
echo | ||
echo "[show conda]" | ||
which conda | ||
|
||
echo | ||
echo "[update conda]" | ||
conda config --set always_yes true --set changeps1 false || exit 1 | ||
conda update -q conda | ||
|
||
echo | ||
echo "[conda build]" | ||
conda install conda-build anaconda-client --yes | ||
|
||
echo | ||
echo "[add channels]" | ||
conda config --add channels conda-forge || exit 1 | ||
|
||
conda create -q -n test-environment python=${PYTHON} | ||
source activate test-environment | ||
|
||
conda install -q \ | ||
coverage \ | ||
flake8 \ | ||
pytest \ | ||
pytest-cov \ | ||
pytest-mock \ | ||
mock \ | ||
numpy \ | ||
pandas \ | ||
scikit-learn \ | ||
|
||
# development dask, distributed | ||
pip install git+https://github.com/dask/dask | ||
pip install git+https://github.com/dask/distributed | ||
|
||
pip install -e . | ||
conda list test-environment | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
coverage | ||
flake8 | ||
pytest | ||
pytest-cov | ||
pytest-mock | ||
mock | ||
numpy | ||
pandas | ||
scikit-learn | ||
scipy | ||
git+https://github.com/dask/dask | ||
git+https://github.com/dask/distributed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
|
||
[flake8] | ||
exclude = tests/data,docs,benchmarks,scripts | ||
|
||
[tool:pytest] | ||
addopts = -rsx -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import sys | ||
import os | ||
from codecs import open | ||
|
||
from setuptools import setup, find_packages | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
# Get the long description from the README file | ||
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
install_requires = ['dask', 'distributed', 'numpy', 'pandas', 'scikit-learn'] | ||
|
||
# Optional Requirements | ||
|
||
|
||
doc_requires = ['sphinx', 'numpydoc', 'sphinx-rtd-theme'] | ||
test_requires = ['coverage', 'pytest', 'pytest-mock'] | ||
dev_requires = doc_requires + test_requires | ||
|
||
if sys.version_info.major == 2: | ||
test_requires.append("mock") | ||
|
||
|
||
extra_requires = { | ||
'docs': doc_requires, | ||
'test': test_requires, | ||
'dev': dev_requires, | ||
} | ||
|
||
setup( | ||
name='daskml', | ||
description='A library for distributed and parallel machine learning', | ||
long_description=long_description, | ||
url='https://github.com/dask/dask-ml', | ||
|
||
author='Tom Augspurger', | ||
author_email='taugspurger@anaconda.com', | ||
license='BSD', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Topic :: Database', | ||
'Topic :: Scientific/Engineering', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
], | ||
packages=find_packages(exclude=['docs', 'tests']), | ||
use_scm_version=True, | ||
setup_requires=['setuptools_scm'], | ||
install_requires=install_requires, | ||
extras_require=extra_requires, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[tox] | ||
envlist=py27,py36 | ||
[testenv] | ||
deps=-rci/requirements_dev.txt | ||
commands=pytest |