Commit Graph
44 Commits
Author SHA1 Message Date
Scott Sanderson d444f593cd BLD: Take advantage of pip download caching. 2015-08-19 10:39:20 -04:00
Scott Sanderson d7635fb75c BLD: Install coverage during builds. 2015-08-19 10:39:20 -04:00
Scott Sanderson de4446425f BLD: Build on travis' container infrastructure.
It's supposedly faster.
2015-08-19 10:39:20 -04:00
Scott Sanderson a801547122 BLD: Read requirements from setup.py
- Parse our requirements.txt to keep install_requires up to date.
- Create extras builds for talib and dev.
- Use pip install -e .[dev] on Travis to install Zipline before testing.
2015-08-19 03:31:29 -04:00
Scott Sanderson ef4f642e62 ENH: Compute engine architecture for FFC API.
This patch lays the groundwork for a compute engine designed to
facilitate construction of factor-based universe screening and portfolio
allocation.  It contains:

A new module, `zipline.modelling`, containing entities that can be used
to express computations as dependency graphs.  Each node in such a graph
is an instance of the base `Term` class, defined in
`zipline.modelling.term`.  Dependency graphs are executed by instances
of `FFCEngine`, defined in `zipline.modelling.engine`.

A new module, `zipline.data.ffc`, containing loaders and dataset
definitions for inputs to the modelling API.

New `TradingAlgorithm` api methods: `add_factor`, and `add_filter`.
These methods can only be called from `initialize`, and are used to
inform the algorithm that each day it should compute the given terms.
Computed factor results are made available through a new attribute of
the `data` object in `before_trading_start` and `handle_data`.  Computed
filter results control which assets are available in the factor matrix
on each day.
2015-07-29 12:30:46 -04:00
Eddie Hebert a05253b1b6 BLD: Add contextlib2 to TravisCI build config.
Need to extract the value specified by requiremenst.txt so that TravisCI
will install the library.
2015-07-02 10:31:54 -04:00
Eddie Hebert 246b8bdcdc BLD: Fix Travis nosetests ability to use plugins.
In Python 3 builds, the miniconda version of nose was being used, which
was not finding the pip installed plugins.

Force the install of nose into the non-miniconda part of the
environment where the plugns are installed.
2015-03-31 14:09:21 -04:00
Eddie Hebert d4cf40099f BLD: Reduce the number of Travis build permutations.
Now that the pandas and numpy upgrade is complete, no longer need to
test for forwards and backwards compatibility.

Also, now that Cython is part of the build, the existence of Cython can
be assumed for building cyordereddict.
2015-03-31 14:08:56 -04:00
Dale Jung d593bde668 BLD: Remove conda installing nose if we're just uninstalling and then
reinstalling with pinned PIP version
2015-03-19 10:58:25 -04:00
jfkirk 0375b350b8 ENH: Adds Security cython class in new package 'zipline.assets'
The class is not yet used. Adding this class is part of the effort to allow Zipline
simulation of more types of assets than stocks.

DEV: Adds build_ext to .travis.yml
2015-03-04 14:19:29 -05:00
Dale Jung 913fbb0568 PERF: Replaced use of a pandas.Series for dict-like duties to a cython
based OrderedDict. Series/ndarray can only be sped up so much because
they weren't designed for fast iterative mutations.

This also cut down on the # of intermediate Series being generated
during perf stat generation. Things like s[s > 0] will create a new
Series for s > 0.

Moved cython to requirements.txt and added cyordereddict
2015-02-23 11:57:07 -05:00
Dale Jung 6020220adb TST: added pandas 13.1, 14.1 to travis 2015-02-13 11:27:17 -05:00
Dale Jung 009f45ee67 Moved to use Quantopian binstar, failing on ta-lib built on wrong numpy 2015-02-13 11:27:17 -05:00
Dale Jung 3391331d6d Upped min numpy from 1.7.0 -> 1.7.1 2015-02-13 11:27:17 -05:00
Dale Jung e2dd8ee23a Wrote an explicit matrix for 2 tests 2015-02-13 11:27:17 -05:00
Dale Jung f49210bb49 Update test matrix to test both pandas 0.12.0 and 0.15.2 2015-02-13 11:27:17 -05:00
Thomas Wiecki a5eefc7f8c TST: Add nose-timer to travis. 2015-01-21 18:25:14 +01:00
Delaney Granizo-Mackenzie bed1ff3bce BUG: Miniconda was breaking the travis build. Updated version. 2014-12-17 14:22:31 -05:00
Thomas Wiecki 69a66f776e BLD: Trying to fix travis. 2014-09-17 19:21:29 +02:00
Thomas Wiecki 49b511558d BLD: Remove numpy 1.8.1 requirement from travis. 2014-09-17 16:23:17 +02:00
Thomas Wiecki 1b571a53a5 BLD: Second try at coverage integration. 2014-06-18 20:20:59 +02:00
Thomas Wiecki d4e05090a3 BLD: Add coverage integration. 2014-06-18 19:59:06 +02:00
Scott Sanderson 0b37663fed Revert "MAINT: Peg .travis.yml packages to specific versions in line with requirements.txt."
This reverts commit 450dded491.
2014-06-04 14:48:59 -04:00
Scott Sanderson 450dded491 MAINT: Peg .travis.yml packages to specific versions in line with requirements.txt. 2014-06-04 13:58:03 -04:00
Scott Sanderson 1fb78a34cd MAINT: Bump numpy version in .travis.yml. 2014-06-04 10:54:50 -04:00
Eddie Hebert 93acee4091 BLD: Keep Travis lint and test packages in sync with requirements file.
Instead of hard-coding the package versions in the Travis config,
grep the version number out of the requirements_dev.txt file,
so that the versions do not drift.
2014-05-30 14:11:44 -04:00
Eddie Hebert c77e840833 BLD: Peg CI versions of lint checker libraries.
Match the revisions found in the dev requirements file, so that the
versions used during development and continuous integration.

Pegging the versions in two separate places may end being brittle,
but suppress the build failure because the unpegged installation
of flake8 pulled in newer versions of pyflakes and pep8.
2014-04-10 04:36:23 -04:00
twiecki e4caa43128 BLD: Added conda build files. 2014-02-16 11:00:51 -05:00
Eddie Hebert 10bf5e3012 BLD: Use Python 3 on Travis.
To help prevent regressions when a changes are developed using
Python 2.7, also test Python 3 during continuous integration.
2014-01-07 12:07:49 -05:00
David Stephens 108ffc6608 BLD: Add LD_LIBRARY_PATH to fix Travis CI failures. 2013-12-10 15:47:36 -05:00
Eddie Hebert 41f1200dbd BLD: Exclude test_examples from Travis-CI, also exclude scipy.
scipy build was getting too heavyweight for the Travis-CI build.

Removes test_examples from Travis-CI run, since the examples
depend on scipy and other compiled libraries.

Please, still run test_examples before submitting patches.
2013-05-07 21:20:55 -04:00
Eddie Hebert e3c783e163 BLD: Add scipy to test requirements.
For example scripts. Though compiling scipy for TravisCI may be the
straw that breaks the camel's back as far as total suite run time.
2013-05-03 13:32:30 -04:00
Eddie Hebert ae6e40499b BLD: Add build ta-lib to Travis config.
So that TALibTransforms tested on Travis.
2013-04-30 17:36:53 -04:00
Jonathan Kamens a021d6d259 MAINT: Add --use-mirrors to Travis CI build script 2013-04-04 15:37:50 -04:00
Richard Frank 54063854aa Forward-fill missing treasury data
To handle, for instance, Columbus Day (Oct 10),
on which there is no treasury data.

We're only forward-filling data now, and
no longer searching both back and forward in time.
2012-12-14 17:29:27 -05:00
Eddie Hebert 0617e53d69 Upgrades flake8 from 1.5 -> 1.6
Also, removes flake8 ignores, since the warnings that were
at odds with eachother now work.
2012-11-19 12:49:09 -05:00
Eddie Hebert 7904773d00 Updates flake8 to latest.
The latest flake8 release in now 1.5, which pulls in pep8: 1.3.4a0

The upgrade pep8 has changes to what it picks up as lint.
Making code base compatible, so that new devs can install pep8
from PyPI and not have friction over the version difference.

Currently using these ignores in the config file:

```
[pep8]
ignore = E124,E125,E126
```

Ignoring these since they are difficult to squash while maintaining
an 80 char line length, and appear spurious.
Should address later.

Updates Travis config, README, and pip requirements to reflect change.
2012-10-22 11:57:16 -04:00
Eddie Hebert 23e7b0661c Fixes typo in nosetests invocation in Travis config. 2012-10-19 15:41:50 -04:00
Eddie Hebert a789e8d6ff "sudo install me a gfortran" 2012-10-19 15:25:58 -04:00
Eddie Hebert 14104a3866 Moves Travis gfortran install to "before" step so that it has root. 2012-10-19 15:23:26 -04:00
Eddie Hebert f1cfacd6e4 Adds gfortran to Travis CI env so that it's available to numpy.
Also drops ipython (which is used for desktop development) and
nose (which is installed by default by Travis CI) from list of
dev packages to be installed during a Travis build.
2012-10-19 15:14:27 -04:00
Eddie Hebert fc27793ee6 Removes typo of 'pip install' prefix from Travis CI config. 2012-10-19 14:02:30 -04:00
Eddie Hebert 1334913a33 Uses ordered pip for Travis CI. 2012-10-19 13:50:10 -04:00
Eddie Hebert 8ead20b6b1 Adds configuration for Travis CI.
Using public continuous integration at https://travis-ci.org/
2012-10-19 13:44:42 -04:00