Skip to contentSkip to conversation

Loosen compatible release identifiers for install_requires

PATCH Applied Kyle Meyer 2 participants 2 messages Feb 26, 2021 – Mar 1, 2021

lore
Share & tools
lore

Kyle Meyer

author
#0 lore raw

PATCH 1/1 Loosen compatible release identifiers for install_requires

The install_requires entries use a compatible release operator. As an example, "requests~=2.24.0" maps to a requirement of ">= 2.24.0 and == 2.24.*". With the current version of requests (2.25.1), this leads to a ContextualVersionConflict failure at runtime.

Allowing only Z to tick in version X.Y.Z seems unnecessarily strict unless there are known problems with a particular release, and it makes it more difficult for distributions to package b4. Drop the trailing digit from all of the version identifiers, allowing both Y and Z to increase.

---
 setup.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
setup.py +3 -3
index 358e6a7..a21ec76 100644
@@ -41,9 +41,9 @@ def find_version(source):
     data_files = [('share/man/man5', ['man/b4.5'])],
     keywords=['git', 'lore.kernel.org', 'patches'],
     install_requires=[
-        'requests~=2.24.0',
-        'dkimpy~=1.0.5',
-        'dnspython~=2.0.0',
+        'requests~=2.24',
+        'dkimpy~=1.0',
+        'dnspython~=2.0',
     ],
     python_requires='>=3.6',
     entry_points={

base-commit: f93bbd3e50b1fb4507aa537f4004da545af9d890

Signature · 1 line
2.30.1
#1 lore raw
Quoted 10 lines · Kyle Meyer

The install_requires entries use a compatible release operator. As an example, "requests~=2.24.0" maps to a requirement of ">= 2.24.0 and == 2.24.*". With the current version of requests (2.25.1), this leads to a ContextualVersionConflict failure at runtime.

Allowing only Z to tick in version X.Y.Z seems unnecessarily strict unless there are known problems with a particular release, and it makes it more difficult for distributions to package b4. Drop the trailing digit from all of the version identifiers, allowing both Y and Z to increase.

Applied, thanks!

[1/1] Loosen compatible release identifiers for install_requires

      commit: 31348a14afdb1d39e7faf9576eaddea1ced76e19

Best regards,
-K