Skip to content

Commit

Permalink
MAINT: update license/manifest/readme, move calendar_helpers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vikram-narayan committed Jun 15, 2018
1 parent 25daeb7 commit 14e217f
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 104 deletions.
11 changes: 6 additions & 5 deletions travis.yml → .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@ before_install:
install:
- conda create -n testenv --yes -c quantopian pip python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION pandas=$PANDAS_VERSION scipy=$SCIPY_VERSION libgfortran=$LIBGFORTRAN_VERSION
- source activate testenv

before_script:
- "flake8 ."
- CACHE_DIR="$HOME/.cache/.pip/pip_np""$CONDA_NPY"
- python -m pip install --upgrade pip coveralls --cache-dir=$CACHE_DIR

script:
- flake8 trading_calendars tests
- nosetests tests
- source deactivate

after_success:
- coveralls

notifications:
email: false

branches:
only:
- reorg_calendars
- master
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2018 Quantopian, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ include LICENSE

include etc/requirements*.txt

include trading_calendars/resources *.csv
include tests/resources *.csv
include versioneer.py
include trading_calendars/_version.py
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,22 @@ conda install trading-calendars
## Usage
```python
from trading_calendars import get_calendar

# US Stock Exchanges (includes NASDAQ)
nyse_calendar = get_calendar('NYSE')
# London Stock Exchange
lse_calendar = get_calendar('LSE')
# Toronto Stock Exchange
tsx_calendar = get_calendar('TSX')

# US Futures
us_futures_calendar = get_calendar('us_futures')
# Chicago Mercantile Exchange
cme_calendar = get_calendar('CME')
# Intercontinental Exchange
ice_calendar = get_calendar('ICE')
# CBOE Futures Exchange
cfe_calendar = get_calendar('CFE')
# Brazilian Mercantile and Futures Exchange
bmf_calendar = get_calendar('BMF')
```
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

[metadata]
description-file = README.md
license_file = LICENSE

[versioneer]
VCS = git
style = pep440
versionfile_source = trading_calendars/_version.py
versionfile_build = trading_calendars/_version.py
tag_prefix = ""
parentdir_prefix = trading_calendars-
parentdir_prefix = trading_calendars-
95 changes: 0 additions & 95 deletions trading_calendars/_calendar_helpers.pyx

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion trading_calendars/trading_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
DatetimeIndex,
)
from pandas.tseries.offsets import CustomBusinessDay
from trading_calendars._calendar_helpers import (
from trading_calendars.calendar_helpers import (
compute_all_minutes,
is_open,
next_divider_idx,
Expand Down

0 comments on commit 14e217f

Please sign in to comment.