Commit Graph

107 Commits

Author SHA1 Message Date
Jonathan Kamens f38ed47773 DEV: List mccabe, pep8, pyflakes (used by flake8) in dev requirements 2013-02-26 11:11:23 -05:00
Jonathan Kamens cfd0fa507b MAINT: Upgrade dev requirements to flake8 2.0 2013-02-25 11:22:48 -05:00
Jonathan Kamens 1a30bdf93a Upgrade msgpack-python to 0.3.0 2013-02-19 23:09:38 -05:00
Jonathan Kamens 8eb92830c9 Don't capitalize delorean in requirements.txt 2013-02-18 14:20:58 -05:00
fawce 2c7355a0dc Refactoring of TradingEnvironment to isolate the global state: index symbol and exchange timezone. Parameters that define the simulation (start, end, and capital base) were put in a new class, SimulationParameters.
Global state for the financial simulation environment is accessed through the
zipline.finance.trading module, which now contains a module variable:
environment.

Parameters are passed into an algorithm as a keyword argument, sim_params.
SimulationParameters creates a trading day index for the test period that
can be used to find trading days, calculate distance between trading days,
and other common operations. The sim params index is just selected from the
global state.

================

Details:

    - adding delorean to the requirements.
    - made index symbol a parameter for loading the benchmark data. changed
    messagepack storage to be symbol specific.
    - ported risk, performance, algorithm, transforms, batch transforms
    and associated tests to use simulation parameters and global environment
    - factory and sim factory use global state and sim params
    - factory method parameter names now reflect the class expected
2013-02-18 10:24:32 -05:00
Jonathan Kamens ccd3ab33e7 Upgrade numpy to 1.7.0 2013-02-14 11:48:05 -05:00
Jonathan Kamens 629b6d6bd8 Upgrade to Pandas 0.10.1 2013-01-24 20:24:44 -05:00
Jonathan Kamens e2f091c96e Upgrade nose-parameterized to 0.2 2013-01-21 09:37:37 -05:00
Eddie Hebert b6779a85c7 Removes Jenkins configurations.
Public repo uses Travis-CI.
2013-01-21 01:01:27 -05:00
Jonathan Kamens 61773a2ebe Upgrade requests module to 1.1.0 2013-01-16 10:30:38 -05:00
Jonathan Kamens 27df611b8e Upgrade pytz 2013-01-04 12:45:53 -05:00
Jonathan Kamens 79c101a32a Remove nosexcover from dev requirements for zipline 2012-12-28 11:45:58 -05:00
Eddie Hebert c6759eb938 Upgrades requests to latest. 1.0.3 -> 1.0.4 2012-12-26 11:01:28 -05:00
Eddie Hebert 32ed8dacad Updates msgpack-python to latest. 0.2.3 -> 0.2.4 2012-12-26 10:59:48 -05:00
Eddie Hebert c85f8147bc Removes coverage being run on each internal build of the project.
coverage provides valuable info, but changing to run it less
frequently than every checkin.
2012-12-26 10:43:54 -05:00
Eddie Hebert 5da5727289 Updates to latest version of flake8. 1.6.2 -> 1.7.0 2012-12-21 21:49:48 -05:00
Eddie Hebert 2cc983a4c7 Moves requests to main requirements. Also upgrades to 1.0.3
Moving to main requirements, since zipline will not run without
the treasury and benchmark data that we requests to fetch.

Upgrade is to keep current with latest release.
2012-12-18 11:27:25 -05:00
Eddie Hebert 7f74d53804 Updates pandas to the latest version. 0.9.1 --> 0.10.0 2012-12-17 12:41:24 -05:00
Eddie Hebert e71c1f5e91 Updates requests to newest release. (1.0.0) 2012-12-17 12:08:36 -05: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 084e04dc56 Removes Cython from requirements list.
zipline doesn't need Cython in stand alone mode.
2012-12-14 14:12:30 -05:00
Eddie Hebert 1d3c10d82f Updates to the latest version of Cython. 2012-12-14 10:26:53 -05:00
Jonathan Kamens 17b1b245f1 Need nosexcover and coverage 2012-12-11 13:50:16 -05:00
Jonathan Kamens 71bcda9ba1 Upgrade to Logbook 0.4.1 2012-12-11 13:29:41 -05:00
Eddie Hebert 3aaa2ef5a2 Updates msgpack-python to latest version. 2012-12-11 11:56:30 -05:00
Eddie Hebert 7edf79f205 Adds dev requirements and goodies.
Adds extra requirements for running IPython.
Adds some goodies for algorithms.
2012-12-10 11:57:14 -05:00
Jonathan Kamens 0771e43736 Explicitly list packages required by pandas. 2012-11-27 11:59:05 -05:00
Eddie Hebert 4d0303cc75 Converts README.md file to ReST for setup's long_description.
So that we can have one README.md in source control, but have
a README that is compatible with PyPI.

Adds pyandoc on which the doc conversion depends.
2012-11-26 14:48:03 -05:00
Eddie Hebert 0e88f6917b Updates flake8 to latest. 1.6 -> 1.6.2 2012-11-26 09:45:59 -05:00
Eddie Hebert 25687ea44a Upgrades Cython to latest version. 0.17.1 -> 0.17.2 2012-11-23 19:38:40 -05:00
Eddie Hebert 8b16f7cfa0 Updates flake8 to latest in requirements txt.
Meant to go with previous flake8 changes.
2012-11-19 20:44:03 -05:00
Eddie Hebert 4c3e0d5081 Brings pandas up to the latest version, 0.9.0 -> 0.9.1 2012-11-15 23:31:46 -05:00
Eddie Hebert 8eecf25985 Removes unittest2 from dev installed packages.
We removed unittest2 from our test suites in favor of the builtin
unittest from Python 2.7+
2012-11-12 10:50:04 -05:00
Eddie Hebert 96ba4c7d6c Upgrades numpy package to latest. 1.6.1 -> 1.6.2 2012-11-05 10:36:49 -05:00
Eddie Hebert bb2811e101 Updates ipython to the latest. 0.12 -> 0.13.1 2012-11-05 10:32:28 -05:00
Eddie Hebert 7e7bf72d76 Updates Logbook package to latest. 0.3 -> 0.4 2012-11-05 10:22:13 -05:00
Eddie Hebert 332d12c7e2 Upgrades Cython package to latest. 0.15.1 -> 0.17.1 2012-11-05 10:18:12 -05:00
Eddie Hebert a81a9bbf27 Upgrades msgpack-python package to latest. 0.1.12 -> 0.2.2 2012-11-05 10:12:25 -05:00
Eddie Hebert 64a190821d Upgrades nose package to latest. 1.1.2 -> 1.2.1 2012-11-05 10:07:40 -05:00
Eddie Hebert aa659772b2 Updates pytz package to latest. 2011n -> 2012h 2012-11-05 10:04:25 -05:00
Eddie Hebert 18d4e61f00 Updates requests package. 0.14.1 -> 0.14.2 2012-11-05 10:01:49 -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 0ab136f1c8 Adds a loader for market data when it doesn't exist locally.
Hopefully, this helps ease ramp up time for developing against
market data, without us distributing the data.

We do a check for the data when attempting to read the msgpack
files, if they don't exist the loader makes a web request and
retrieves and serializes the data for the user.

Provides a loader for:

- curves from data.treasury.gov
- benchmarks from Yahoo! Finance

Adds dependency of requests library in dev requirements.
2012-10-19 11:19:14 -04:00
Jonathan Kamens 7bc1e99ad8 Don't strip #.* from ends of lines
Revert e99ab2e9d07573e24e6d106877ff35eab46cdab1, which was intended to
strip comments from lines fed to pip, but had the unintended side
effect of stripping egg specifiers in URLs. The easiest way to address
this is to simply not put trailing comments in requirements files, so
we'er going to solve the problem that way instead.
2012-10-15 11:36:45 -04:00
Eddie Hebert a7e2accd05 Updates pandas to latest release version. 2012-10-12 16:52:10 -04:00
Jonathan Kamens 7c2bdb7b56 Strip comments from ends of lines before passing to pip 2012-10-11 10:57:27 -04:00
Eddie Hebert e6c2709151 Adds installation of flake8 linter to development installs. 2012-10-05 15:06:32 -04:00
Eddie Hebert 013ab86321 Adds ordered_pip script back in.
The pandas dependency on numpy was causing pandas installation to fail.
Reviving the ordered_pip script in since it helps explicitly install
numpy before pandas.
2012-10-05 14:58:38 -04:00
Eddie Hebert fd2d66f53e Removes unused library of messagepack. 2012-10-05 14:58:11 -04:00
Eddie Hebert a46273ed0f Removes documentation generation from jenkins.sh
The current documentation is not currently used actively.

Also, we are working towards not using Jenkins, in favor of
something like travis-ci when zipline is open sourced, so we will
have to be rethinking the documentation maintenance then.
2012-10-02 00:13:08 -04:00