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
714c09dd
Commit
714c09dd
authored
Aug 14, 2022
by
David Hotham
Committed by
Bjorn Neergaard
Sep 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated Factory.create_config()
parent
7e231205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
17 deletions
+1
-17
src/poetry/factory.py
+1
-17
No files found.
src/poetry/factory.py
View file @
714c09dd
...
@@ -3,7 +3,6 @@ from __future__ import annotations
...
@@ -3,7 +3,6 @@ from __future__ import annotations
import
contextlib
import
contextlib
import
logging
import
logging
import
re
import
re
import
warnings
from
typing
import
TYPE_CHECKING
from
typing
import
TYPE_CHECKING
from
typing
import
Any
from
typing
import
Any
...
@@ -60,12 +59,7 @@ class Factory(BaseFactory):
...
@@ -60,12 +59,7 @@ class Factory(BaseFactory):
)
)
# Loading global configuration
# Loading global configuration
with
warnings
.
catch_warnings
():
config
=
Config
.
create
()
# this is preserved to ensure export plugin tests pass in ci,
# once poetry-plugin-export version is updated to use one that do not
# use Factory.create_config(), this can be safely removed.
warnings
.
filterwarnings
(
"ignore"
,
category
=
DeprecationWarning
)
config
=
self
.
create_config
()
# Loading local configuration
# Loading local configuration
local_config_file
=
TOMLFile
(
base_poetry
.
file
.
parent
/
"poetry.toml"
)
local_config_file
=
TOMLFile
(
base_poetry
.
file
.
parent
/
"poetry.toml"
)
...
@@ -116,16 +110,6 @@ class Factory(BaseFactory):
...
@@ -116,16 +110,6 @@ class Factory(BaseFactory):
return
ProjectPackage
(
name
,
version
,
version
)
return
ProjectPackage
(
name
,
version
,
version
)
@classmethod
@classmethod
def
create_config
(
cls
,
io
:
IO
|
None
=
None
)
->
Config
:
if
io
is
not
None
:
logger
.
debug
(
"Ignoring provided io when creating config."
)
warnings
.
warn
(
"Use of Factory.create_config() is deprecated, use Config.create() instead"
,
DeprecationWarning
,
)
return
Config
.
create
()
@classmethod
def
configure_sources
(
def
configure_sources
(
cls
,
cls
,
poetry
:
Poetry
,
poetry
:
Poetry
,
...
...
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