Commit 714c09dd by David Hotham Committed by Bjorn Neergaard

Remove deprecated Factory.create_config()

parent 7e231205
......@@ -3,7 +3,6 @@ from __future__ import annotations
import contextlib
import logging
import re
import warnings
from typing import TYPE_CHECKING
from typing import Any
......@@ -60,12 +59,7 @@ class Factory(BaseFactory):
)
# Loading global configuration
with warnings.catch_warnings():
# 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()
config = Config.create()
# Loading local configuration
local_config_file = TOMLFile(base_poetry.file.parent / "poetry.toml")
......@@ -116,16 +110,6 @@ class Factory(BaseFactory):
return ProjectPackage(name, version, version)
@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(
cls,
poetry: Poetry,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment