Skip to content

Commit

Permalink
Merge pull request #32 from UDST/tlz
Browse files Browse the repository at this point in the history
Remove zbox from dependencies
  • Loading branch information
pksohn authored Jun 22, 2017
2 parents 05d0cbd + 558fbd7 commit 6e7c4a7
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 20 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ before_install:
- |
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION cytoolz flask pandas pip pygments pytables pytest six
- source activate test-environment
- pip install zbox
- pip install pytest-cov coveralls pycodestyle
- bin/build_js_bundle.sh complete
install:
Expand Down
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.5.0
======

* Remove `zbox` from dependencies.

v1.4.0
======

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install:
- conda info -a
- "conda create -q -n test-environment python=%PYTHON_VERSION% cytoolz flask pandas pip pygments pytables pytest six"
- activate test-environment
- pip install zbox pycodestyle
- pip install pycodestyle
- pip install .

test_script:
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
# built documents.
#
# The short X.Y version.
version = '1.4'
version = '1.5'
# The full version, including alpha/beta/rc tags.
release = '1.4.0'
release = '1.5.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
8 changes: 3 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ Orca offers some conveniences for streamlining the construction of pipelines:
Installation
------------

Orca depends on Pandas, PyTables, toolz (or cytoolz), and zbox.
Orca depends on Pandas, PyTables, and toolz (or cytoolz).
Pandas and PyTables are included in `Anaconda <http://docs.continuum.io/anaconda/>`__.
Toolz and zbox may be installed with `pip <https://pip.pypa.io/en/latest/index.html>`__,
Toolz may be installed with `pip <https://pip.pypa.io/en/latest/index.html>`__,
and both toolz and cytoolz are can be installed by
`conda <http://conda.pydata.org/>`__ (if you are using Anaconda or miniconda).

Expand All @@ -131,9 +131,7 @@ With the dependencies installed, install Orca with pip::

Orca may also be installed with conda::

conda install --channel jiffyclub orca

(The jiffyclub channel is included for install zbox.)
conda install -c udst orca

Add the server option to include the optional server dependencies::

Expand Down
2 changes: 1 addition & 1 deletion orca/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .orca import *

version = __version__ = '1.4.0'
version = __version__ = '1.5.0'
4 changes: 2 additions & 2 deletions orca/orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import pandas as pd
import tables
from zbox import toolz as tz
import tlz as tz

from . import utils
from .utils.logutil import log_start_finish
Expand Down Expand Up @@ -1893,7 +1893,7 @@ def write_tables(fname, table_names=None, prefix=None, compress=False, local=Fal
complib = compress and 'zlib' or None
complevel = compress and 1 or 0

with pd.get_store(fname, mode='a', complib=complib, complevel=complevel) as store:
with pd.HDFStore(fname, mode='a', complib=complib, complevel=complevel) as store:
for t in tables:
# if local arg is True, store only local columns
columns = None
Expand Down
10 changes: 5 additions & 5 deletions orca/tests/test_orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,13 +916,13 @@ def step(table):
step_tables = orca.get_step_table_names(['step'])

orca.write_tables(store_name, step_tables, None)
with pd.get_store(store_name, mode='r') as store:
with pd.HDFStore(store_name, mode='r') as store:
assert 'table' in store
pdt.assert_frame_equal(store['table'], df)

orca.write_tables(store_name, step_tables, 1969)

with pd.get_store(store_name, mode='r') as store:
with pd.HDFStore(store_name, mode='r') as store:
assert '1969/table' in store
pdt.assert_frame_equal(store['1969/table'], df)

Expand All @@ -931,7 +931,7 @@ def test_write_all_tables(df, store_name):
orca.add_table('table', df)
orca.write_tables(store_name)

with pd.get_store(store_name, mode='r') as store:
with pd.HDFStore(store_name, mode='r') as store:
for t in orca.list_tables():
assert t in store

Expand All @@ -952,7 +952,7 @@ def step(iter_var, table):
orca.run(
['step'], iter_vars=range(11), data_out=store_name, out_interval=3)

with pd.get_store(store_name, mode='r') as store:
with pd.HDFStore(store_name, mode='r') as store:
for year in range(0, 11, 3):
key = '{}/table'.format(year)
assert key in store
Expand Down Expand Up @@ -984,7 +984,7 @@ def step(iter_var, table, table2):
out_base_tables=table_names,
out_run_tables=['table'])

with pd.get_store(store_name, mode='r') as store:
with pd.HDFStore(store_name, mode='r') as store:

for t in table_names:
assert 'base/{}'.format(t) in store
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run(self):

setup(
name='orca',
version='1.4.0',
version='1.5.0',
description='A pipeline orchestration tool with Pandas support',
long_description=long_description,
author='UrbanSim Inc.',
Expand All @@ -69,8 +69,7 @@ def run(self):
install_requires=[
'pandas >= 0.15.0',
'tables >= 3.1.0',
'toolz >= 0.7.0',
'zbox >= 1.2'
'toolz >= 0.7.0'
],
extras_require={
'server': ['flask >= 0.10', 'pygments >= 2.0', 'six >= 1.9.0']
Expand Down

0 comments on commit 6e7c4a7

Please sign in to comment.