Commit Graph
100 Commits
Author SHA1 Message Date
Jonathan Kamens 5ab89ff25d BLD: Use https to download ta-lib source 2016-11-25 12:12:33 -05:00
Jonathan Kamens f5d6060bb4 MAINT: Upgrade six, futures, requests-futures, piprot versions
Upgrade six 1.9.0 -> 1.10.0 in requirements.txt, and futures 3.0.3 ->
3.0.5, requests-futures 0.9.5 -> 0.9.7, and piprot 0.9.1 -> 0.9.6 in
requirements_dev.txt.
2016-02-27 11:46:51 -05:00
Jonathan Kamens 369a24aaec MAINT: Remove obsolete comment from requirements.txt
There was a comment in requirements.txt warning not to use
python-dateutil 2.4.0, which was necessary when we were using 2.3.x
and 2.4.0 was broken for us, but now we're using 2.4.2 which is fixed,
so the comment is no longer needed.
2016-02-27 11:45:44 -05:00
Jonathan Kamens d8bbaec5a8 BLD: Disable Travis build cache 2016-02-16 15:23:13 -05:00
Jonathan Kamens 740bc4a520 BLD: Update conda meta for logbook 0.12.5 2016-02-16 14:40:00 -05:00
Jonathan Kamens 11465d907d MAINT: Upgrade Logbook version
Upgrade Logbook to 0.12.5. This required changing a usage of
`logbook.NullHandler()` which passed `bubble=True`, since
`NullHandler` no longer supports the `bubble` argument.
2016-02-16 13:32:25 -05:00
Jonathan Kamens 0c2a1a1654 MAINT: Upgrade sphinx to 1.3.4 in dev requirements. 2016-01-23 19:13:58 -05:00
Jonathan Kamens 2ee40db0ec MAINT: Upgrade requests 2.7.0 -> 2.9.1 2016-01-06 22:33:33 -05:00
Jonathan Kamens 510dc2ae7b TST: test_finance.py can't handle being parallelized 2015-09-08 08:49:11 -04:00
Jonathan Kamens 2521263c06 TST: Prevent some test cases from being split 2015-08-25 11:56:36 -04:00
Jonathan KamensandScott Sanderson ee47ec1d3d BLD: Package all zipline.* modules when building eggs.
Rather than specifying only the package "zipline" in setup.py, use
`find_packages` to find all the subpackages as well, so they (or, most
specifically, their `__init__.py` files) are properly packaged in the
egg file.
2015-08-19 10:38:11 -04:00
Jonathan KamensandScott Sanderson f2d5f42a6b BLD: Lazy-load Cython and numpy when installing package.
Modify setup.py to defer the use of Cython and numpy until
`setup_requires` has already been processed, so that Cython and numpy
are available when they are needed.
2015-08-19 10:37:25 -04:00
Jonathan Kamens dca679edcb BUG: Logbook 0.10.0 requires explicit handler
As of logbook 0.10.0, logbook no longer installs a default handler,
which means that if the application doesn't install one, log messages
disappear into the ether.

Therefore, all of our scripts with `__main__` endpoints need to push a
`logbook.StderrHandler` if they're not already pushing some other
handler.
2015-07-28 04:38:41 -04:00
Jonathan Kamens 576e4184d7 BLD: Update mock to release 1.3.0 2015-07-24 12:28:51 -04:00
Jonathan Kamens 393ea35e46 BLD: Switch back to PyPI version of xlrd
The bug which prompted us to use our own version of xlrd is patched in
the current PyPI release, so switch back to it.
2015-07-24 12:28:12 -04:00
Jonathan Kamens 622144fa75 BLD: Add "--exists-action w" to pip invocations 2015-07-23 15:58:13 -04:00
Jonathan Kamens 21610053e6 MAINT: Upgrade PyPI versions of tornado, mistune, mock, patsy 2015-07-23 14:51:25 -04:00
Jonathan Kamens 5e796aacf1 DEV: Add piprot and its deps to requirements_dev.txt 2015-07-23 14:34:03 -04:00
Jonathan Kamens b2fc9da1c8 PyPI updates 2015-07-14 17:19:03 -04:00
Jonathan Kamens f30c249e0e Upgrade versions of pbr and mock 2015-07-12 15:54:24 -04:00
Jonathan Kamens 7adba53f54 MAINT: pip<7.1.0 is incompatible with mock 1.1 2015-07-10 16:24:28 -04:00
Jonathan Kamens 38112aebc4 MAINT: Fix typos in etc/requirements_dev.txt 2015-07-10 10:47:05 -04:00
Jonathan Kamens 996ea19315 MAINT: Add more packages required by mock to requirements_dev.txt 2015-07-10 10:29:18 -04:00
Jonathan Kamens cb1bc4aa19 MAINT: Update mock and pull in all the packages it requires 2015-07-10 09:26:44 -04:00
Jonathan Kamens 5b0a7ae5a5 MAINT: Upgrade nose-parameterized to 0.5.0 2015-07-10 02:21:10 -04:00
Jonathan Kamens 50d557975d MAINT: Upgrade Cython to 0.22.1 2015-07-09 14:41:57 -04:00
Jonathan Kamens 6820fa704a MAINT: Upgrade nose-parameterized to 0.4.2 2015-07-09 14:00:29 -04:00
Jonathan Kamens ed8b3b6c8c MAINT: Upgrade mistune to 0.6 2015-06-17 18:46:08 -04:00
Jonathan Kamens 3a88da28ca MAINT: Upgrade mccabe to 0.3.1 2015-06-15 08:34:17 -04:00
Jonathan Kamens 5ff04c4ea6 Old version of pyflakes required by flake8 2.4.1 2015-06-09 19:21:48 -04:00
Jonathan Kamens 7411ca2b26 MAINT: Upgrade tornado, TA-Lib versions 2015-06-09 17:29:34 -04:00
Jonathan Kamens a9affd5cfc MAINT: Upgrade nose and pyflakes 2015-06-09 13:31:05 -04:00
Jonathan Kamens 1097c37e3d MAINT: Peg pip version and fix incompatibility with pip 7.0.3
In d01e718373, we made a change for
compatibility with a change introduced in pip 7.0.0. Then the pip
maintainers went and reverted the change in pip 7.0.2, thereby
breaking our requirements file for the second time in ten days. This
change reverts the prior change so that we are once again compatible
with the current version of pip.

Also, to make it easier for people to avoid pip compatibility issues,
we're now specifying pip>=7.0.3 in etc/requirements.txt.
2015-06-03 14:50:56 -04:00
Jonathan Kamens d01e718373 MAINT: PIP requirements syntax change for current PIP compatibility 2015-05-26 15:48:42 -04:00
Jonathan Kamens 723e3e299a MAINT: Upgrade flake8 to 2.4.1 2015-05-19 10:27:20 -04:00
Jonathan Kamens ec395d84f6 MAINT: Switch to python-excel/xlrd.git 2015-05-17 10:24:51 -04:00
Jonathan Kamens 8188d9c975 MAINT: Upgrade pytz to 2015.4 2015-05-13 22:55:10 -04:00
Jonathan Kamens 3790a5631f MAINT: Upgrade certifi to 2015.4.28 2015-05-13 06:04:53 -04:00
Jonathan Kamens 9dab742725 MAINT: Upgrade pandas to 0.16.1 and requests to 2.7.0 2015-05-12 21:21:28 -04:00
Jonathan Kamens e32d79807f TEST: Object serialization test requires a trading environment
The object serialization test case requires a trading environment
because risk report generation requires treasury curves.
2015-05-12 15:25:44 -04:00
Jonathan Kamens 63169961b7 MAINT: Upgrade Logbook to 0.9.1 2015-05-12 14:46:55 -04:00
Jonathan Kamens b3faa1dd3f BLD: New xlrd commitish 2015-05-12 13:56:28 -04:00
Jonathan Kamens cd98b52454 BUG: Correct method for finding security lists directory
The correct thing to look at to figure out where the root of the
zipline tree is, is `zipline.__file__`, not `zipline.__path__`. The
latter could contain multiple directories in it, and is not intended
to be `os.path.join()`ed as the previous code was doing.
2015-05-04 10:42:40 -04:00
Jonathan Kamens fd0530d889 MAINT: Flake8 2015-05-01 11:03:01 -04:00
Jonathan Kamens 557e6a3009 Every setup_logger needs a teardown_logger 2015-05-01 07:38:42 -04:00
Jonathan Kamens 656bd86c17 TST: One more overwrite_sim_params=False needed 2015-04-30 15:38:09 -04:00
Jonathan Kamens c94880af2c TST: Suppress warnings in test_history_add_field_* tests
Temporarily suppress warnings for one line of the
test_history_add_field_* tests to work around #576 until it's fixed.
2015-04-30 15:31:21 -04:00
Jonathan Kamens 5c546b4f6c TST: overwrite_sim_params=False in tests when using list of sources
When specifying a list of sources to algorithm.py:run in a unit test,
specify overwrite_sim_params=False to suppress the unnessary
UserWarning.
2015-04-30 15:30:19 -04:00
Jonathan Kamens 8f9f65bdc6 MAINT: Flake8 2015-04-30 14:31:01 -04:00
Jonathan Kamens 73459333ef TST: Fix DeprecationWarning in xlrd by using custom version of it 2015-04-30 14:24:47 -04:00
Jonathan Kamens dcb8aa06af TST: Simplify test_examples and convert to unittest TestCase
Also, remove use of os.chdir() in the test, which causes other tests
to break by changing the current directory in the middle of the test
run.
2015-04-30 14:24:30 -04:00
Jonathan Kamens 7bb2677a9d TST: Convert test_munge.py tests to unittest format 2015-04-30 13:27:46 -04:00
Jonathan Kamens 865a20099a MAINT: Use "difference" instead of "-" to make Pandas happy 2015-04-30 13:19:00 -04:00
Jonathan Kamens ca0f906b11 TST: Don't modify master security lists directory during tests
Rather than drop files temporarily into the master security lists
directory during unit tests, create temporary directories for the
tests. This avoids issues when the tests are being run at the same
time as other code that uses the real security lists data.
2015-04-29 21:41:32 -04:00
Jonathan Kamens e5a93b6f7e MAINT: Upgrade requests to 2.6.2 2015-04-24 07:12:07 -04:00
Jonathan Kamens 5ea4886dc1 MAINT: Upgrade requests to 2.6.1 2015-04-23 10:56:54 -04:00
Jonathan Kamens 74306f5d2d MAINT: Upgrade Markdown to 2.6.2 2015-04-22 21:12:44 -04:00
Jonathan Kamens 8ee7f6bd79 List dependencies before the things that depend on them
Because we use ordered_pip.sh to install requirements files, we want
dependencies in requirements_dev.txt to be listed _before_ the things
that depend on them, rather than after. Otherwise, with
ordered_pip.sh, stuff will get installed implicitly, and perhaps the
wrong version.
2015-04-22 16:06:33 -04:00
Jonathan Kamens 09c787829b MAINT: Upgrade nose to 1.3.6 2015-04-06 12:13:03 -04:00
Jonathan Kamens 80a704ff80 MAINT: Upgrade python-dateutil to 2.4.2 2015-04-02 20:16:36 -04:00
Jonathan Kamens 3b56a62660 MAINT: PyPI package updates, incl. pandas 0.16.0 2015-03-24 05:04:40 -04:00
Jonathan Kamens b3a2809bee BLD: ordered_pip.sh: don't count blank/comment lines as packages! 2015-03-23 09:56:31 -04:00
Jonathan Kamens 9b6fc00c5a BLD: Make backports.ssl-match-hostname line ok for ordered_pip.sh
Remove whitespace from the backports.ssl-match-hostname line in
requirements_dev.txt to make it more palatable to ordered_pip.sh.
2015-03-23 09:11:22 -04:00
Jonathan Kamens fa755d54a7 STY: Flake8 2015-03-19 17:21:25 -04:00
Jonathan Kamens 3a62db8ca8 BLD: Don't hard-code a Cython version in setup.py 2015-03-19 17:21:25 -04:00
Jonathan Kamens d109e81d3b MAINT: Update a bunch of PyPI package versions 2015-03-19 17:21:25 -04:00
Jonathan Kamens e942275108 STY: Flake8
Upgrade the version of the flake8, pep8, and mccabe PyPI packages, and
make the code changes necessary for compatibility with the updated
packages.
2015-03-19 17:21:25 -04:00
Jonathan Kamens 6cd2f4f1f2 TEST: Update Security class unit tests for Python3 compatibility 2015-03-12 10:32:26 -04:00
Jonathan Kamens e19f02a2ec BUG: Handle all possible types of Security object __richcmp__ args
A cython __richcmp__ function isn't allowed to assume that its first
argument is the same as the type of the class to which it belongs, so
our code needs to account for either of its two arguments being of the
wrong type.

Furthermore, the correct way for __richcmp__ to handle when it doesn't
know how to do a comparison is to return NotImplemented.
2015-03-10 20:36:52 -04:00
Jonathan Kamens c46a3afa3c BUG: Don't download benchmarks / treasury curves unnecessary
Fix an off-by-one error which was causing us to download the benchmark
and treasury curves over and over again even when they weren't needed.
2015-03-08 09:31:50 -04:00
Jonathan Kamens aa585b1cf8 BUG: Fix Python 3 support for Cythonized Security object
Python 3 for some reason doesn't like usage of the cmp() built-in, so
instead of using cmp(), just subtract the two ints being compared.

In addition to making this work with Python 3, it should also be more
performant since it no longer requires calling the cmp() method.
2015-03-08 09:31:50 -04:00
Jonathan Kamens 716bdbb7cd BUG: Fix >= comparison for Cythonized Security object
The >= comparison for the Cythonized Security object was actually
doing <=. Fix this and add unit tests for all the Security object rich
comparison operators.
2015-03-08 09:31:50 -04:00
Jonathan Kamens a3d7483488 MAINT: Upgrade to requests 2.5.1 2014-12-26 10:02:28 -05:00
Jonathan KamensandScott Sanderson 1d3a8759bc MAINT: Remove use of deprecated getchildren method on xml element
Rather than calling getchildren on xml.etree.ElementTree elements,
we're now supposed to just itegrate over the elements.
2014-10-08 11:39:48 -04:00
Jonathan Kamens 96d8ebec3d BLD: List patsy before statsmodels in requirements.txt 2014-05-21 05:25:05 -04:00
Jonathan Kamens 03e40fd057 BLD: statsmodels requires patsy
Since statsmodels requires patsy, and statsmodels is now in
requirements.txt instead of requirements_dev.txt, patsy also needs to
be in requirements.txt instead of requirements_dev.txt.
2014-05-21 05:15:56 -04:00
Jonathan Kamens e9dbffbbaa MAINT: Upgrade Logbook to 0.6.0. 2013-11-18 16:16:51 -05:00
Jonathan KamensandEddie Hebert 73faf9133e MAINT: Clean up imports of zipline.finance.trading
Use "from zipline.finance import trading" instead of "import
zipline.finance.trading as trading".
2013-10-29 13:50:14 -04:00
Jonathan Kamens 0a7539b6de MAINT: flake8 2013-10-29 12:02:51 -04:00
Jonathan Kamens c3ddbc258d ENH: Accept simulation parameters and benchmark source args to create_test_zipline 2013-10-29 11:39:07 -04:00
Jonathan Kamens e36f70f541 ENH: Allow market data loader to be specified to create_simulation_parameters 2013-10-29 11:17:41 -04:00
Jonathan KamensandEddie Hebert 3541115b4e BUG: Trading calendar dates should always be midnight UTC
For consistency, datetimes returned by the trading calendar should
always show HHMMSS of midnight UTC. Not only is this useful for
consistency, but it also allows us to check if a particular date() is
in an array of these datetimes, because they will hash to the same
thing. For example:

early_closes = get_early_closes()
... later ...
if current_bar_datetime.date() in early_closes:
    ... today closes early ...

If if the datetimes returned by the trading calendar functions don't
have 00:00:00 for HHMMSS, then the "in" check above will fail because
the date and the datetimes in early_closes won't hash to the same
thing.
2013-08-06 15:53:41 -04:00
Jonathan Kamens 2ca4d3cff7 MAINT: Update Dev requirements
Upgrade matplotlib in Dev requirements to 1.3.0, and add tornado==3.1
and pyparsing==2.0.1 which are required by matplotlib.
2013-08-06 11:59:26 -04:00
Jonathan Kamens 4c3c753680 Merge pull request #206 from quantopian/out_of_sequence_early_close
Trading calendar fixes
2013-07-24 09:57:00 -07:00
Jonathan Kamens 86682b4097 ENH: Use sort() instead of sorted() for efficiency 2013-07-24 12:43:26 -04:00
Jonathan Kamens a1a1fbf21f BUG: Don't include out-of-range date in early closes
Don't include New Year's Eve 1999 in the early closes returned to the
user if it's outside the range of dates requested by the user.
2013-07-24 12:40:28 -04:00
Jonathan Kamens 948846c254 MAINT: Upgrade pep8, pyflakes 2013-07-12 14:20:59 -04:00
Jonathan Kamens d833503e50 BUG: Use context in lieu of "use_environment" decorator
The "use_environment" decorator is too side-effectful (e.g.,
connecting to Yahoo! Finance or another data source) to be used as a
decorator to a function that gets evaluated during module load. This
causes problems, e.g., if Zipline is being used in a gevent
environment, when the trading environment created by the decorator
argument tries to use greenlets when gevent hasn't been fully
initialized.

Since the decorator is nothing more than a context-manager wrapper,
this commit removes the decorator and replaces its use with contexts,
i.e., "with" statements.
2013-06-24 17:13:14 -04:00
Jonathan Kamens 9ee0d5e3a3 Upgrade Logbook to 0.4.2 2013-06-04 13:30:42 -04:00
Jonathan Kamens efadc6cf68 MAINT: blotter shouldn't allow orders of more than 1e+11 shares 2013-05-30 11:24:29 -04:00
Jonathan Kamens f9580316c9 MAINT: Reformat comment to make flake8 happy 2013-05-30 10:06:23 -04:00
Jonathan Kamens 3390c017bb MAINT: Upgrade dependent package versions, add pip-tools
pandas==0.11.0, Cython==0.19.1, TA-Lib==0.4.6, requests==1.2.3,
delorean==0.2.1, nose-parameterized==0.3, pyflakes==0.7.2

Also add pip-tools==0.3.4 to requirements_dev.txt.
2013-05-30 09:38:28 -04:00
Jonathan Kamens 48a7ce5310 BUG: Improve check for orders for zero shares
The check to filter out orders for zero shares wasn't truncated the
number of shares to an integer before checking, so if a fractional
amount less than 1 was being passed in, it wasn't being filtered out
even though it should have been. This is now fixed.
2013-05-29 12:46:24 -04:00
Jonathan Kamens 16e75a31d4 TST: Fix check() test utility function to detect all list differences
The check() function in zipline.utils.test_utils was only comparing
lists up to the length of the shortest list. This fix uses
izip_longest instead of izip so it compares up to the length of the
longest list, which among other things means that it will now
correctly report when one list is empty and the other is not.
2013-04-30 21:13:18 -04:00
Jonathan Kamens d61c6c0af5 MAINT: nit: "nose==1.3.0" instead of "nose==1.3" 2013-04-10 10:35:16 -04:00
Jonathan Kamens 790e588911 MAINT: Upgrade nose==1.3, numpy==1.7.1 2013-04-09 11:55:11 -04:00
Jonathan Kamens 564c81f4a7 MAINT: PyPI upgrade mccabe==0.2.1 2013-04-04 16:13:48 -04:00
Jonathan Kamens a021d6d259 MAINT: Add --use-mirrors to Travis CI build script 2013-04-04 15:37:50 -04:00
Jonathan Kamens 4971d8478e MAINT: Specify --use-mirrors to pip install 2013-04-04 11:40:47 -04:00
Jonathan Kamens 9ad33ec941 MAINT: PyPI updates: six==1.3.0, delorean==0.2.0 2013-03-19 09:13:56 -04:00