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
183258c1
Unverified
Commit
183258c1
authored
Oct 04, 2019
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remaining calls to Poetry.create()
parent
4dfd66a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
poetry/installation/pip_installer.py
+4
-2
poetry/utils/inspector.py
+2
-2
No files found.
poetry/installation/pip_installer.py
View file @
183258c1
...
@@ -163,7 +163,7 @@ class PipInstaller(BaseInstaller):
...
@@ -163,7 +163,7 @@ class PipInstaller(BaseInstaller):
def
install_directory
(
self
,
package
):
def
install_directory
(
self
,
package
):
from
poetry.masonry.builder
import
SdistBuilder
from
poetry.masonry.builder
import
SdistBuilder
from
poetry.
poetry
import
Poet
ry
from
poetry.
factory
import
Facto
ry
from
poetry.utils._compat
import
decode
from
poetry.utils._compat
import
decode
from
poetry.utils.env
import
NullEnv
from
poetry.utils.env
import
NullEnv
from
poetry.utils.toml_file
import
TomlFile
from
poetry.utils.toml_file
import
TomlFile
...
@@ -196,7 +196,9 @@ class PipInstaller(BaseInstaller):
...
@@ -196,7 +196,9 @@ class PipInstaller(BaseInstaller):
# file since pip, as of this comment, does not support
# file since pip, as of this comment, does not support
# build-system for editable packages
# build-system for editable packages
# We also need it for non-PEP-517 packages
# We also need it for non-PEP-517 packages
builder
=
SdistBuilder
(
Poetry
.
create
(
pyproject
.
parent
),
NullEnv
(),
NullIO
())
builder
=
SdistBuilder
(
Factory
()
.
create_poetry
(
pyproject
.
parent
),
NullEnv
(),
NullIO
()
)
with
open
(
setup
,
"w"
,
encoding
=
"utf-8"
)
as
f
:
with
open
(
setup
,
"w"
,
encoding
=
"utf-8"
)
as
f
:
f
.
write
(
decode
(
builder
.
build_setup
()))
f
.
write
(
decode
(
builder
.
build_setup
()))
...
...
poetry/utils/inspector.py
View file @
183258c1
...
@@ -144,11 +144,11 @@ class Inspector:
...
@@ -144,11 +144,11 @@ class Inspector:
pyproject
=
TomlFile
(
sdist_dir
/
"pyproject.toml"
)
pyproject
=
TomlFile
(
sdist_dir
/
"pyproject.toml"
)
if
pyproject
.
exists
():
if
pyproject
.
exists
():
from
poetry.
poetry
import
Poet
ry
from
poetry.
factory
import
Facto
ry
pyproject_content
=
pyproject
.
read
()
pyproject_content
=
pyproject
.
read
()
if
"tool"
in
pyproject_content
and
"poetry"
in
pyproject_content
[
"tool"
]:
if
"tool"
in
pyproject_content
and
"poetry"
in
pyproject_content
[
"tool"
]:
package
=
Poetry
.
create
(
sdist_dir
)
.
package
package
=
Factory
()
.
create_poetry
(
sdist_dir
)
.
package
return
{
return
{
"name"
:
package
.
name
,
"name"
:
package
.
name
,
"version"
:
package
.
version
.
text
,
"version"
:
package
.
version
.
text
,
...
...
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