Skip to content

Commit

Permalink
Remove setuptools dependency
Browse files Browse the repository at this point in the history
setuptools is still required for pip-sync if pip needs it, but pip-tools
code iteself doesn't require it anymore.
  • Loading branch information
vphilippon committed Mar 23, 2018
1 parent 5c26e9f commit ac2a89a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions piptools/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import sys

from pkg_resources import Requirement
from pip._vendor.packaging.requirements import Requirement

from .exceptions import PipToolsError
from .locations import CACHE_DIR
Expand Down Expand Up @@ -159,6 +159,6 @@ def _reverse_dependencies(self, cache_keys):
"""
# First, collect all the dependencies into a sequence of (parent, child) tuples, like [('flake8', 'pep8'),
# ('flake8', 'mccabe'), ...]
return lookup_table((key_from_req(Requirement.parse(dep_name)), name)
return lookup_table((key_from_req(Requirement(dep_name)), name)
for name, version_and_extras in cache_keys
for dep_name in self.cache[name][version_and_extras])
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def read_file(filename):
'click>=6',
'first',
'six',
'setuptools'
],
zip_safe=False,
entry_points={
Expand Down

0 comments on commit ac2a89a

Please sign in to comment.