Skip to content

Commit

Permalink
Fix installation issue with pip 10, test on py3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenstad committed Apr 15, 2018
1 parent b83f51e commit b63443b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ python:
- 2.7
- 3.4
- 3.5
- 3.6
install:
- pip install -r requirements-dev.txt
- pip install -r requirements.txt
Expand Down
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@
# the License.

from setuptools import setup, find_packages
from pip.req import parse_requirements
import uuid

# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())

# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]
with open("requirements.txt", "r") as fs:
reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]

version = '0.52'

Expand Down

0 comments on commit b63443b

Please sign in to comment.