Skip to content

Commit

Permalink
parse_requirements needs a session. Fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
kmarekspartz committed Jul 26, 2016
1 parent d77973f commit 032e170
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ python:
# command to install dependencies
install: "pip install -r requirements.txt && pip install flake8"
# command to run tests
script: flake8 . && python -m unittest -f tests
script: flake8 . && python -m unittest -f tests && python setup.py install
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ RUN cd /widely && pip install flake8
ADD . /widely
RUN cd /widely && flake8 .
RUN cd /widely && python -m unittest -f tests
RUN cd /widely && python setup.py install
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
requirements_path = os.path.join(basedir, 'requirements.txt')

# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_requirements = parse_requirements(requirements_path)
install_requirements = parse_requirements(
requirements_path, session=False
)

# Convert to setup's list of strings format:
requirements = [str(ir.req) for ir in install_requirements]
Expand Down

0 comments on commit 032e170

Please sign in to comment.