From c0994cb4447e3d97b1abcd9eadf69ff12aa13b97 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Fri, 26 Aug 2022 23:28:59 +0200 Subject: [PATCH 1/3] doc(history): add changelog for `1.2.0rc2` --- content/history.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/content/history.md b/content/history.md index ceea1cd..c87f54f 100644 --- a/content/history.md +++ b/content/history.md @@ -4,6 +4,22 @@ layout: single title: History --- +## [1.2.0rc2] - 2022-08-26 + +### Fixed + +- Fixed an issue where virtual environments were created unnecessarily when running `poetry self` commands ([#6226](https://github.com/python-poetry/poetry/pull/6226)) +- Ensure that packages' `pretty_name` are written to the lock file ([#6243](https://github.com/python-poetry/poetry/pull/6243)) + +### Improvements + +- Improved the consistency of `Pool().remove_repository()` to make it easier to write poetry plugins ([#6231](https://github.com/python-poetry/poetry/pull/6231)) + +### Docs + +- Removed mentions of Python 2.7 from docs ([#6235](https://github.com/python-poetry/poetry/pull/6235)) +- Added note about the difference between groups and extras ([#6232](https://github.com/python-poetry/poetry/pull/6232)) + ## [1.2.0rc1] - 2022-08-22 ### Added @@ -1421,9 +1437,13 @@ This release **must** be downloaded via the `get-poetry.py` script and not via t Initial release -[unreleased]: https://github.com/python-poetry/poetry/compare/1.2.0b1...master +[unreleased]: https://github.com/python-poetry/poetry/compare/1.2.0rc2...master +[1.2.0rc2]: https://github.com/python-poetry/poetry/releases/tag/1.2.0rc2 +[1.2.0rc1]: https://github.com/python-poetry/poetry/releases/tag/1.2.0rc1 [1.1.15]: https://github.com/python-poetry/poetry/releases/tag/1.1.15 +[1.2.0b3]: https://github.com/python-poetry/poetry/releases/tag/1.2.0b3 [1.1.14]: https://github.com/python-poetry/poetry/releases/tag/1.1.14 +[1.2.0b2]: https://github.com/python-poetry/poetry/releases/tag/1.2.0b2 [1.2.0b1]: https://github.com/python-poetry/poetry/releases/tag/1.2.0b1 [1.1.13]: https://github.com/python-poetry/poetry/releases/tag/1.1.13 [1.1.12]: https://github.com/python-poetry/poetry/releases/tag/1.1.12 From c2ab8b419a8ee5344292174ee0dff1e2fecae8d9 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Fri, 26 Aug 2022 23:29:37 +0200 Subject: [PATCH 2/3] doc(blog): add Poetry `1.2.0rc2` announcement --- .../2022-08-26-announcing-poetry-1-2-0rc2.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md diff --git a/content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md b/content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md new file mode 100644 index 0000000..9b04558 --- /dev/null +++ b/content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md @@ -0,0 +1,43 @@ +--- +layout: single +title: "Announcing Poetry 1.2.0rc2" +date: 2022-08-26 00:00:00 +categories: ["releases"] +tags: ["1.x", "1.2"] +--- + +The Poetry team is pleased to announce the immediate availability of Poetry **1.2.0rc2**. + + + +If you have a previous version of Poetry installed via the [official installer]({{< relref "docs/#installation" >}}), +getting Poetry **1.2.0rc2** is as easy as: + +```bash +$ poetry self update --preview +``` + +This release fixes a few issues that were discovered by Poetry users on 1.2.0rc1. + +Since 1.2.0rc2 is a near-exact representation of 1.2.0, we invite users to test this release and +report issues using the [issue tracker](https://github.com/python-poetry/poetry/issues "Poetry's issue tracker"). + +Documentation for Poetry 1.2 is available [here](https://python-poetry.org/docs/1.2/). We also invite users to report +any issue found in the documentation, whether it's typos, unclear definitions or missing things. + +For a complete list of changes, you can refer to the [change log](/history). + +## Lock file consistency between 1.1 and 1.2 + +Because of a regression in Poetry 1.2 pre-releases, in some conditions, lock files generated with 1.2 were not usable on +1.1. This is now fixed with [#6243](https://github.com/python-poetry/poetry/pull/6243). + +## Avoid creating virtual environment on `poetry self` + +Running `poetry self` was creating a virtual environment, which was unnecessary and could lead to issues. This is not +the case anymore with [#6226](https://github.com/python-poetry/poetry/pull/6226). + +## Improve consistency of `Pool().remove_repository()` + +`Pool().remove_repository()` had some inconsistencies that made it hard to create plugins. This is now fixed +with [#6231](https://github.com/python-poetry/poetry/pull/6231). From af7fec3299cddcd0ee9b38fcb1f103b21d10cfeb Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Sat, 27 Aug 2022 10:10:16 +0200 Subject: [PATCH 3/3] doc(blog): mention `ProjectPackage.version` --- content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md b/content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md index 9b04558..00ab87e 100644 --- a/content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md +++ b/content/blog/2022-08-26-announcing-poetry-1-2-0rc2.md @@ -37,7 +37,11 @@ Because of a regression in Poetry 1.2 pre-releases, in some conditions, lock fil Running `poetry self` was creating a virtual environment, which was unnecessary and could lead to issues. This is not the case anymore with [#6226](https://github.com/python-poetry/poetry/pull/6226). -## Improve consistency of `Pool().remove_repository()` +## Better support for plugins -`Pool().remove_repository()` had some inconsistencies that made it hard to create plugins. This is now fixed +`ProjectPackage.set_version()` has been removed in poetry 1.2.0b2 due to hashing issues. That broke plugins setting the +project's version dynamically. In order to cover this use case again, hashing issues have been resolved and +`ProjectPackage.version` can be set now with [#447](https://github.com/python-poetry/poetry-core/pull/447). + +`Pool.remove_repository()` had some inconsistencies that made it hard to create plugins. This is now fixed with [#6231](https://github.com/python-poetry/poetry/pull/6231).