Skip to content

Commit d0af3ee

Browse files
committed
remove no more usefull code
1 parent fa2b168 commit d0af3ee

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

winpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '9.1.20240804'
31+
__version__ = '9.1.20240815'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

winpython/wppm.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,9 @@ def __init__(self, fname, update=False, suggested_summary=None):
6868
setattr(self,'url',"https://pypi.org/project/" + bname)
6969

7070
def extract_infos(self):
71-
"""Extract package infos (name, version)
72-
from filename (installer basename)"""
71+
"Extract package (name, version) from filename (installer basename)"
7372
bname = Path(self.fname).name
74-
if bname.endswith(("32.whl", "64.whl")):
75-
# {name}[-{bloat}]-{version}-{python tag}-{abi tag}-{platform tag}.whl
76-
# ['sounddevice','0.3.5','py2.py3.cp34.cp35','none','win32']
77-
# PyQt5-5.7.1-5.7.1-cp34.cp35.cp36-none-win_amd64.whl
78-
bname2 = bname[:-4].split("-")
79-
self.name = bname2[0]
80-
self.version = "-".join(list(bname2[1:-3]))
81-
self.pywheel, abi, arch = bname2[-3:]
82-
# wheel arch is 'win32' or 'win_amd64'
83-
return
84-
elif bname.endswith((".zip", ".tar.gz", ".whl")):
73+
if bname.endswith((".zip", ".tar.gz", ".whl")):
8574
# distutils sdist
8675
infos = utils.get_source_package_infos(bname)
8776
if infos is not None:

0 commit comments

Comments
 (0)