diff --git a/0001-Remove-sorting-of-dictionaries-in-pretty.printer.-33.patch b/0001-Remove-sorting-of-dictionaries-in-pretty.printer.-33.patch new file mode 100644 index 0000000000000000000000000000000000000000..8bab34c81ffe243c190160d85d933cefef47ef0d --- /dev/null +++ b/0001-Remove-sorting-of-dictionaries-in-pretty.printer.-33.patch @@ -0,0 +1,66 @@ +From 0608bd96276507f4494250f05e60bb4788bb3567 Mon Sep 17 00:00:00 2001 +From: "J.F.P. (Richard) Scholtens" +Date: Fri, 10 Jun 2022 16:14:37 +0200 +Subject: [PATCH] Remove sorting of dictionaries in pretty.printer. #3370 + +Added RELEASE.rst and AUTHOR.rst +--- + AUTHORS.rst | 4 ++++ + hypothesis-python/RELEASE.rst | 8 ++++++++ + 2 files changed, 12 insertions(+) + create mode 100644 hypothesis-python/RELEASE.rst + +diff --git a/AUTHORS.rst b/AUTHORS.rst +index e352772d9..e33600b7a 100644 +--- a/AUTHORS.rst ++++ b/AUTHORS.rst +@@ -32,6 +32,7 @@ their individual contributions. + * `Chase Garner `_ (chase@garner.red) + * `Cheuk Ting Ho `_ + * `Chris Down `_ ++* `Chris van Dronkelaar `_ + * `Christopher Martin `_ (ch.martin@gmail.com) + * `Claudio Jolowicz `_ + * `Conrad Ho `_ (conrad.alwin.ho@gmail.com) +@@ -126,6 +127,7 @@ their individual contributions. + * `Pierre-Jean Campigotto `_ + * `Przemek Konopko `_ + * `Richard Boulton `_ (richard@tartarus.org) ++* `Richard Scholtens `_ (richardscholtens2@gmail.com) + * `Robert Howlett `_ + * `Robert Knight `_ (robertknight@gmail.com) + * `Rónán Carrigan `_ (rcarriga@tcd.ie) +@@ -138,6 +140,7 @@ their individual contributions. + * `Sangarshanan `_ (sangarshanan1998@gmail.com) + * `Sanyam Khurana `_ + * `Saul Shanabrook `_ (s.shanabrook@gmail.com) ++* `Sebastiaan Zeeff `_ (sebastiaan.zeeff@ordina.nl) + * `Shlok Gandhi `_ (shlok.gandhi@gmail.com) + * `Sogata Ray `_ (rayardinanda@gmail.com) + * `Stuart Cook `_ +@@ -155,6 +158,7 @@ their individual contributions. + * `Tyler Nickerson `_ + * `Vidya Rani `_ (vidyarani.d.g@gmail.com) + * `Vincent Michel `_ (vxgmichel@gmail.com) ++* `Viorel Pluta `_ (viopluta@gmail.com) + * `Vytautas Strimaitis `_ + * `Will Hall `_ (wrsh07@gmail.com) + * `Will Thompson `_ (will@willthompson.co.uk) +diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst +new file mode 100644 +index 000000000..9be88b5ad +--- /dev/null ++++ b/hypothesis-python/RELEASE.rst +@@ -0,0 +1,8 @@ ++RELEASE_TYPE: patch ++ ++ ++Order of dictionaries is now enforced in Python 3.7 and higher. This means that the original order of dictionaries matters for falsifying examples. ++ ++This PR closes #3370. ++ ++This PR was kindly supported by Ordina Pythoneers. +\ No newline at end of file +-- +2.42.0.windows.2 + diff --git a/0001-Shorter-patch-notes.patch b/0001-Shorter-patch-notes.patch new file mode 100644 index 0000000000000000000000000000000000000000..566e824e2e6ba4973abcc78cca9c606befc49c94 --- /dev/null +++ b/0001-Shorter-patch-notes.patch @@ -0,0 +1,30 @@ +From fe8913f0a5f3a83790306747c5e58c572a0d0852 Mon Sep 17 00:00:00 2001 +From: Zac Hatfield-Dodds +Date: Fri, 10 Jun 2022 09:34:40 -0700 +Subject: [PATCH] Shorter patch notes + +--- + hypothesis-python/RELEASE.rst | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst +index 9be88b5ad..28d3bcefd 100644 +--- a/hypothesis-python/RELEASE.rst ++++ b/hypothesis-python/RELEASE.rst +@@ -1,8 +1,6 @@ + RELEASE_TYPE: patch + +- +-Order of dictionaries is now enforced in Python 3.7 and higher. This means that the original order of dictionaries matters for falsifying examples. +- +-This PR closes #3370. +- +-This PR was kindly supported by Ordina Pythoneers. +\ No newline at end of file ++Our pretty-printer no longer sorts dictionary keys, since iteration order is ++stable in Python 3.7+ and this can affect reproducing examples (:issue:`3370`). ++This PR was kindly supported by `Ordina Pythoneers ++`__. +-- +2.42.0.windows.2 + diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 50472fd654c0a363e6aa62ca504f6d5e3cba4fb8..6cd3d66ddcaf79147376131faee2f465b6fb45a7 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -1,7 +1,7 @@ %{?python_enable_dependency_generator} Name: python-hypothesis Version: 6.47.0 -Release: 1 +Release: 2 Summary: based testing for python code License: MPLv2.0 URL: https://github.com/HypothesisWorks/hypothesis-python @@ -9,6 +9,9 @@ Source0: https://github.com/HypothesisWorks/hypothesis/archive/hypothesis BuildRequires: python-sphinx BuildArch: noarch +#Patch0001: 0001-Shorter-patch-notes.patch +Patch0002: 0001-Remove-sorting-of-dictionaries-in-pretty.printer.-33.patch + %description This package provides a library called hypothesis for testing Python code, which has more examples and is based on the Haskell library, Quickcheck, @@ -55,6 +58,9 @@ sed -i -e '/sphinx.ext.intersphinx/d' docs/conf.py %{python3_sitelib}/hypothesis/ %changelog +* Tue Dec 26 2023 liubo - 6.47.0-2 +- Shorter patch notes + * Thu Oct 27 2022 Ge Wang - 6.47.0-1 - Upgrade to 6.47.0