Skip to content

Commit

Permalink
Fix error with git dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Apr 18, 2018
1 parent eea601c commit 2ee91b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Fixed a bug where dependencies constraints in lock were too strict.
- Fixed unicode error in `search` command for Python 2.7.
- Fixed error with git dependencies.


## [0.8.3] - 2018-04-16
Expand Down
4 changes: 2 additions & 2 deletions poetry/installation/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ def _execute_update(self, operation): # type: (Update) -> None
' - Updating <info>{}</> (<comment>{}</> -> <comment>{}</>)'
.format(
target.pretty_name,
source.pretty_version,
target.pretty_version
source.full_pretty_version,
target.full_pretty_version
)
)

Expand Down
3 changes: 3 additions & 0 deletions poetry/puzzle/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def search_for_vcs(self, dependency): # type: (VCSDependency) -> List[Package]
name = info['name']
version = info['version']
package = Package(name, version, version)
package.source_type = dependency.vcs
package.source_url = dependency.source
package.source_reference = dependency.reference
for req_name, req_constraint in info['dependencies'].items():
if req_name == 'python':
package.python_versions = req_constraint
Expand Down
2 changes: 1 addition & 1 deletion poetry/vcs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def config(self): # type: () -> GitConfig
return self._config

def clone(self, repository, dest): # type: (...) -> str
return self.run('clone', repository, dest)
return self.run('clone', repository, str(dest))

def checkout(self, rev, folder=None): # type: (...) -> str
args = []
Expand Down

0 comments on commit 2ee91b6

Please sign in to comment.