Skip to content

Commit f53147f

Browse files
committed
remove tomlkit from poetry-core
tomli is smaller, faster, and being adopted by the standard library. poetry-core has no need of the extra features that tomlkit brings.
1 parent b5d1934 commit f53147f

36 files changed

+919
-5309
lines changed

poetry.lock

+13-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ vendoring = {version = "^1.0", python = "^3.8"}
5252
build = "^0.7.0"
5353
mypy = ">=0.960"
5454
setuptools = ">=60"
55+
tomli-w = "^1.0.0"
5556
types-jsonschema = ">=4.4.4"
5657
types-setuptools = ">=57.4.14"
5758

@@ -92,7 +93,6 @@ exclude = "(?x)(^tests/.*/fixtures | ^src/poetry/core/_vendor)"
9293
[[tool.mypy.overrides]]
9394
module = [
9495
'lark.*',
95-
'tomlkit.*',
9696
'virtualenv.*',
9797
]
9898
ignore_missing_imports = true

src/poetry/core/_vendor/tomli/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Taneli Hukkinen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: MIT
2+
# SPDX-FileCopyrightText: 2021 Taneli Hukkinen
3+
# Licensed to PSF under a Contributor Agreement.
4+
5+
__all__ = ("loads", "load", "TOMLDecodeError")
6+
__version__ = "2.0.1" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
7+
8+
from ._parser import TOMLDecodeError, load, loads
9+
10+
# Pretend this exception was created here.
11+
TOMLDecodeError.__module__ = __name__

0 commit comments

Comments
 (0)