Skip to content

Commit

Permalink
Fix dependency resolution for custom repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Apr 5, 2018
1 parent 2fee2b2 commit 592b147
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [Unreleased]

### Fixed

- Fixed dependency resolution for custom repositories.


## [0.7.0] - 2018-04-04

### Added
Expand Down
4 changes: 3 additions & 1 deletion poetry/repositories/legacy_repository.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pathlib import Path
from pip._vendor.pkg_resources import RequirementParseError
from piptools.cache import DependencyCache
from piptools.repositories import PyPIRepository
from piptools.resolver import Resolver
Expand All @@ -24,6 +25,7 @@ def __init__(self, name, url):
if name == 'pypi':
raise ValueError('The name [pypi] is reserved for repositories')

self._packages = []
self._name = name
self._url = url
command = get_pip_command()
Expand Down Expand Up @@ -169,7 +171,7 @@ def _get_release_info(self, name: str, version: str) -> dict:
)
try:
requirements = list(resolver._iter_dependencies(ireq))
except InstallationError as e:
except (InstallationError, RequirementParseError):
# setup.py egg-info error most likely
# So we assume no dependencies
requirements = []
Expand Down

0 comments on commit 592b147

Please sign in to comment.