Skip to content

Commit

Permalink
Try using travis CI natively, too many issues with tox.
Browse files Browse the repository at this point in the history
  • Loading branch information
robren committed Jan 30, 2017
1 parent af017db commit fbda0a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ language: python
python:
- "2.7"
- "3.4"

env:
- TOXENV=py36
- TOXENV=py35
- TOXENV=py34
- TOXENV=py27
- "3.5"
- "3.6"

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis
install:
- pip install -r requirements_dev.txt


# command to run tests, e.g. python setup.py test
script: tox -e ${TOXENV}
script: pytest

# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
Expand Down
5 changes: 5 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ Sphinx==1.4.8
cryptography==1.7
PyYAML==3.11
pytest==3.0.5
bs4
docopt>=0.6.0
lxml
pandas
requests
8 changes: 4 additions & 4 deletions sec_edgar_download/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# the imports have to be under the docstring
# otherwise the docopt module does not work.
from docopt import docopt
from indexer import SecIndexer, get_cik
from sec_edgar_download import indexer as ix


def main(args=None):
Expand All @@ -55,7 +55,7 @@ def main(args=None):
else:
to_month = 12

indexer = SecIndexer(work_dir)
indexer = ix.SecIndexer(work_dir)
indexer.download_sec_feeds(from_year, to_year, from_month, to_month)

elif arguments['getxbrl']:
Expand All @@ -64,11 +64,11 @@ def main(args=None):
cik = int(cik)
ticker = arguments['--ticker']
if ticker is not None:
cik = get_cik(ticker)
cik = ix.get_cik(ticker)

form_type = arguments['--ft']

indexer = SecIndexer(work_dir)
indexer = ix.SecIndexer(work_dir)
indexer.download_xbrl_data(cik, from_year, to_year, form_type)


Expand Down

0 comments on commit fbda0a4

Please sign in to comment.