Skip to content

Commit

Permalink
Fix setup.py to work with pip 6.x
Browse files Browse the repository at this point in the history
The parse_requirements function has changed, and requires a session
parameter to be supplied. See this for an example of the complaint and a
fix.

jmcarp/robobrowser#32
  • Loading branch information
barneydesmond committed Jan 13, 2015
1 parent 20e08fc commit 78f2d3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import uuid
from setuptools import setup
from pip.req import parse_requirements

Expand Down Expand Up @@ -35,6 +36,6 @@ def read(fname):
"rabbitmq = ceilometer_publisher_rabbitmq.queue:QueuePublisher",
],
},
install_requires=[str(req.req) for req in parse_requirements("requirements.txt")],
install_requires=[str(req.req) for req in parse_requirements("requirements.txt", session=uuid.uuid1())],
include_package_data=True
)

1 comment on commit 78f2d3f

@reversefold
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you using uuid.uuid1() as the session? It should be a pip.download.PipSession().

Please sign in to comment.