Skip to content

Commit

Permalink
Merge pull request blaze#1168 from cpcloud/tarball
Browse files Browse the repository at this point in the history
Fix 0.8.1 tarball
  • Loading branch information
cpcloud committed Jul 9, 2015
2 parents dcbd449 + f046024 commit 3ed91d4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ recursive-include docs *.rst
include requirements.txt
include requirements-strict.txt
include setup.py
include README.md
include README.rst
include LICENSE.txt
include MANIFEST.in

Expand Down
3 changes: 3 additions & 0 deletions all.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ test:
- dask
- dynd-python
- pytables
- yaml
- pyyaml
- h5py

commands:
- py.test -vx --doctest-modules --doctest-ignore-import-errors --pyargs blaze -rsxX
Expand Down
17 changes: 9 additions & 8 deletions blaze/compute/tests/test_sparksql.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import itertools
import shutil

from distutils.version import StrictVersion

from py4j.protocol import Py4JJavaError
import numpy as np
import pandas as pd
Expand Down Expand Up @@ -244,14 +242,17 @@ def test_column_arithmetic(ctx, db):

# pyspark doesn't use __version__ so we use this kludge
# should submit a bug report upstream to get __version__
fail_on_spark_one_two = pytest.mark.xfail(not hasattr(pyspark.sql, 'types'),
raises=py4j.protocol.Py4JJavaError,
reason=('math functions only '
'supported in HiveContext'))
def fail_on_spark_one_two(x):
if hasattr(pyspark.sql, 'types'):
return x
else:
return pytest.mark.xfail(x, raises=py4j.protocol.Py4JJavaError,
reason=('math functions only supported in '
'HiveContext'))


@pytest.mark.parametrize('func', map(fail_on_spark_one_two,
[sin, cos, tan, exp]))
@pytest.mark.parametrize('func', list(map(fail_on_spark_one_two,
[sin, cos, tan, exp])))
def test_math(ctx, db, func):
expr = func(db.t.amount)
result = compute(expr, ctx)
Expand Down
3 changes: 3 additions & 0 deletions core.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ test:
- dask
- dynd-python
- pytables
- yaml
- pyyaml
- h5py

commands:
- py.test -vx --doctest-modules --doctest-ignore-import-errors --pyargs blaze -rsxX
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sys
from fnmatch import fnmatch

import setuptools
from distutils.core import setup

import versioneer
Expand Down

0 comments on commit 3ed91d4

Please sign in to comment.