Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
592b1479
Unverified
Commit
592b1479
authored
Apr 05, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dependency resolution for custom repositories
parent
2fee2b29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
CHANGELOG.md
+7
-0
poetry/repositories/legacy_repository.py
+3
-1
No files found.
CHANGELOG.md
View file @
592b1479
# Change Log
## [Unreleased]
### Fixed
-
Fixed dependency resolution for custom repositories.
## [0.7.0] - 2018-04-04
### Added
...
...
poetry/repositories/legacy_repository.py
View file @
592b1479
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
...
...
@@ -24,6 +25,7 @@ class LegacyRepository(PyPiRepository):
if
name
==
'pypi'
:
raise
ValueError
(
'The name [pypi] is reserved for repositories'
)
self
.
_packages
=
[]
self
.
_name
=
name
self
.
_url
=
url
command
=
get_pip_command
()
...
...
@@ -169,7 +171,7 @@ class LegacyRepository(PyPiRepository):
)
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
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment