From 54f150ff4976453d26efee55434b1bf4ff073c77 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Wed, 29 Jun 2022 10:54:01 +0800 Subject: [PATCH] chore: reword the changelog fragments, add `break` entry type --- news/1072.dep.md | 2 +- news/1083.break.md | 1 + news/1083.feature.md | 1 - news/1091.misc.md | 1 - news/{1096.feature.md => 1096.feature.1.md} | 0 news/{1096.refactor.md => 1096.feature.2.md} | 0 news/1098.feature.md | 2 +- news/1153.dep.md | 2 +- news/1156.feature.md | 1 + news/1156.fix.md | 1 - news/1157.feature.md | 2 +- news/1160.misc.md | 2 +- news/1161.break.md | 1 + news/1161.fix.md | 1 - news/593.feature.md | 2 +- pyproject.toml | 12 ++++++------ 16 files changed, 15 insertions(+), 16 deletions(-) create mode 100644 news/1083.break.md delete mode 100644 news/1083.feature.md delete mode 100644 news/1091.misc.md rename news/{1096.feature.md => 1096.feature.1.md} (100%) rename news/{1096.refactor.md => 1096.feature.2.md} (100%) create mode 100644 news/1156.feature.md delete mode 100644 news/1156.fix.md create mode 100644 news/1161.break.md delete mode 100644 news/1161.fix.md diff --git a/news/1072.dep.md b/news/1072.dep.md index 0d050b61e6..0cdb723ee5 100644 --- a/news/1072.dep.md +++ b/news/1072.dep.md @@ -1 +1 @@ -Prefer tomllib on Python 3.11 +Prefer `tomllib` on Python 3.11 diff --git a/news/1083.break.md b/news/1083.break.md new file mode 100644 index 0000000000..708cbed07b --- /dev/null +++ b/news/1083.break.md @@ -0,0 +1 @@ +Editable dependencies in the `[project]` table is not allowed, according to PEP 621. They are however still allowed in the `[tool.pdm.dev-dependencies]` table. PDM will emit a warning when it finds editable dependencies in the `[project]` table, or will abort when you try to add them into the `[project]` table via CLI. diff --git a/news/1083.feature.md b/news/1083.feature.md deleted file mode 100644 index 73417f3296..0000000000 --- a/news/1083.feature.md +++ /dev/null @@ -1 +0,0 @@ -*BREAKING*: Editable dependencies in the `[project]` table is not allowed, according to PEP 621. They are however still allowed in the `[tool.pdm.dev-dependencies]` table. PDM will emit a warning when it finds editable dependencies in the `[project]` table, or will abort when you try to add them into the `[project]` table via CLI. diff --git a/news/1091.misc.md b/news/1091.misc.md deleted file mode 100644 index 7b4534b1bd..0000000000 --- a/news/1091.misc.md +++ /dev/null @@ -1 +0,0 @@ -Extract the compatibility import statements into `compat` module. diff --git a/news/1096.feature.md b/news/1096.feature.1.md similarity index 100% rename from news/1096.feature.md rename to news/1096.feature.1.md diff --git a/news/1096.refactor.md b/news/1096.feature.2.md similarity index 100% rename from news/1096.refactor.md rename to news/1096.feature.2.md diff --git a/news/1098.feature.md b/news/1098.feature.md index 9831ca1fd9..e908b4d799 100644 --- a/news/1098.feature.md +++ b/news/1098.feature.md @@ -1 +1 @@ -Lazy load the candidates returned by `find_matches()` to speed up the resolution. +Lazily load the candidates returned by `find_matches()` to speed up the resolution. diff --git a/news/1153.dep.md b/news/1153.dep.md index c7a3da9f29..c71d6a3bf0 100644 --- a/news/1153.dep.md +++ b/news/1153.dep.md @@ -1 +1 @@ -Update dependency version `pdm-pep517` to 1.0.0. +Update dependency version `pdm-pep517` to `1.0.0`. diff --git a/news/1156.feature.md b/news/1156.feature.md new file mode 100644 index 0000000000..9552382adc --- /dev/null +++ b/news/1156.feature.md @@ -0,0 +1 @@ +Retrieve the candidate metadata by parsing the `pyproject.toml` rather than building it. diff --git a/news/1156.fix.md b/news/1156.fix.md deleted file mode 100644 index af63d2122f..0000000000 --- a/news/1156.fix.md +++ /dev/null @@ -1 +0,0 @@ -Try parsing the candidate metadata from `pyproject.toml` before building it. diff --git a/news/1157.feature.md b/news/1157.feature.md index 5786eb123b..4aad6433d4 100644 --- a/news/1157.feature.md +++ b/news/1157.feature.md @@ -1 +1 @@ -Update the converters to support the new `[tool.pdm.build]` table. +Update the format converters to support the new `[tool.pdm.build]` table. diff --git a/news/1160.misc.md b/news/1160.misc.md index d5da6b0589..b99a86cbad 100644 --- a/news/1160.misc.md +++ b/news/1160.misc.md @@ -1 +1 @@ -Provides a `tox.ini` file for easier local testing against all Python versions. +Provide a `tox.ini` file for easier local testing against all Python versions. diff --git a/news/1161.break.md b/news/1161.break.md new file mode 100644 index 0000000000..d3debcf1b1 --- /dev/null +++ b/news/1161.break.md @@ -0,0 +1 @@ +Now the paths to the global configurations and global project are calculated according to platform standards. diff --git a/news/1161.fix.md b/news/1161.fix.md deleted file mode 100644 index 8aa1991392..0000000000 --- a/news/1161.fix.md +++ /dev/null @@ -1 +0,0 @@ -Ensure all app/user path related are computed according to platform standards. diff --git a/news/593.feature.md b/news/593.feature.md index 6dc9d163d7..ac8d04e7be 100644 --- a/news/593.feature.md +++ b/news/593.feature.md @@ -1 +1 @@ -Configuration item to respect the source order in the `pyproject.toml` file. Packages will be returned by source earlier in the order or later ones if not found. +Add project configuration `respect-source-order` under `[tool.pdm.resolution]` to respect the source order in the `pyproject.toml` file. Packages will be returned by source earlier in the order or later ones if not found. diff --git a/pyproject.toml b/pyproject.toml index 4ed8239bb8..f8d85e7556 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,6 +125,11 @@ title_format = "Release v{version} ({project_date})" template = "news/towncrier_template.md" underlines = "-~^" + [[tool.towncrier.type]] + directory = "break" + name = "Breaking Changes" + showcontent = true + [[tool.towncrier.type]] directory = "feature" name = "Features & Improvements" @@ -137,7 +142,7 @@ underlines = "-~^" [[tool.towncrier.type]] directory = "doc" - name = "Improved Documentation" + name = "Documentation" showcontent = true [[tool.towncrier.type]] @@ -155,11 +160,6 @@ underlines = "-~^" name = "Miscellany" showcontent = true - [[tool.towncrier.type]] - directory = "refactor" - name = "Refactor" - showcontent = true - [build-system] requires = ["pdm-pep517>=1.0"] build-backend = "pdm.pep517.api"