From 7544c40ba10ef444c4a1265101cd27e5c86e7af1 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Thu, 2 Dec 2021 09:06:13 +0200 Subject: [PATCH 1/3] Dont hardcode module name --- tomli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomli/__init__.py b/tomli/__init__.py index 7bcdbab..72fd480 100644 --- a/tomli/__init__.py +++ b/tomli/__init__.py @@ -6,4 +6,4 @@ from tomli._parser import TOMLDecodeError, load, loads # Pretend this exception was created here. -TOMLDecodeError.__module__ = "tomli" +TOMLDecodeError.__module__ = __name__ From ee4a3f39011738605a45a04306de30566e88f6f2 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Thu, 2 Dec 2021 09:18:59 +0200 Subject: [PATCH 2/3] Improve configs --- pyproject.toml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c4426ef..0aa803f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,16 +34,6 @@ keywords = ["toml"] "Changelog" = "https://github.com/hukkin/tomli/blob/master/CHANGELOG.md" -[tool.flit.sdist] -exclude = [ - "tests/", - "benchmark/", - "fuzzer/", - ".*", - "CHANGELOG.md", -] - - [tool.isort] # Force imports to be sorted by module, independent of import type force_sort_within_sections = true @@ -139,15 +129,15 @@ commands = [tool.coverage.run] branch = true -omit = ["tests/*", "*/site-packages/*"] +source = ['tomli'] [tool.coverage.report] # Regexes for lines to exclude from consideration exclude_lines = [ - # Have to re-enable the standard pragma - "pragma: no cover", + # Re-enable the standard pragma (with extra strictness) + '# pragma: no cover\b', # Code for static type checkers - "if TYPE_CHECKING:", + 'if TYPE_CHECKING:', # Scripts 'if __name__ == .__main__.:', ] From 833b73eae19aa8ccb75cc646d21ef057829de9ed Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Thu, 2 Dec 2021 09:24:07 +0200 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e683a..69598c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 2.0.0 (unreleased) +## 2.0.0 - Removed - Python 3.6 support