sarugaku / shellingham

Tool to Detect Surrounding Shell
ISC License
227 stars 33 forks source link

[1.5.0] Incorrectly List by Pypi as Available for Python < 3.7 #61

Closed hswong3i closed 2 years ago

hswong3i commented 2 years ago

From git diff 1.4.0..1.5.0 setup.* we get, so 1.5.0 should be available for python_requires = >=3.7:

diff --git a/setup.cfg b/setup.cfg
index 9dd01be..37d4a4a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -16,20 +16,18 @@ classifier =
     Intended Audience :: Developers
     License :: OSI Approved :: ISC License (ISCL)
     Operating System :: OS Independent
-    Programming Language :: Python :: 2
-    Programming Language :: Python :: 2.6
-    Programming Language :: Python :: 2.7
-    Programming Language :: Python :: 3
-    Programming Language :: Python :: 3.4
-    Programming Language :: Python :: 3.5
-    Programming Language :: Python :: 3.6
+    Programming Language :: Python :: 3 :: Only
+    Programming Language :: Python :: 3.7
+    Programming Language :: Python :: 3.8
+    Programming Language :: Python :: 3.9
+    Programming Language :: Python :: 3.10
     Topic :: Software Development :: Libraries :: Python Modules

 [options]
 package_dir =
     = src
 packages = find:
-python_requires = >=2.6,!=3.0,!=3.1,!=3.2,!=3.3
+python_requires = >=3.4
 install_requires =
 zip_safe = true

But due to above python_requires = >=3.4, Pypi incorrectly list it as available for Python 3.6. e.g with Ubuntu 18.04:

 $ sudo podman run -ti --rm ubuntu:18.04 bash

 root@1924dd60b7f6:/# apt update && apt -y install python3-dev python3-pip

 root@1924dd60b7f6:/# python3 --version
Python 3.6.9

 root@1924dd60b7f6:/# pip3 install shellingham

root@1924dd60b7f6:/# pip3 list | grep shellingham
shellingham (1.5.0)

Please kindly remove 1.5.0 from Pypi and create a new release with python_requires = >=3.7

hswong3i commented 2 years ago

I temporary fix this for my OBS packaging: