Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion winpython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
OTHER DEALINGS IN THE SOFTWARE.
"""

__version__ = '9.1.20240804'
__version__ = '9.1.20240815'
__license__ = __doc__
__project_url__ = 'http://winpython.github.io/'
15 changes: 2 additions & 13 deletions winpython/wppm.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,9 @@ def __init__(self, fname, update=False, suggested_summary=None):
setattr(self,'url',"https://pypi.org/project/" + bname)

def extract_infos(self):
"""Extract package infos (name, version)
from filename (installer basename)"""
"Extract package (name, version) from filename (installer basename)"
bname = Path(self.fname).name
if bname.endswith(("32.whl", "64.whl")):
# {name}[-{bloat}]-{version}-{python tag}-{abi tag}-{platform tag}.whl
# ['sounddevice','0.3.5','py2.py3.cp34.cp35','none','win32']
# PyQt5-5.7.1-5.7.1-cp34.cp35.cp36-none-win_amd64.whl
bname2 = bname[:-4].split("-")
self.name = bname2[0]
self.version = "-".join(list(bname2[1:-3]))
self.pywheel, abi, arch = bname2[-3:]
# wheel arch is 'win32' or 'win_amd64'
return
elif bname.endswith((".zip", ".tar.gz", ".whl")):
if bname.endswith((".zip", ".tar.gz", ".whl")):
# distutils sdist
infos = utils.get_source_package_infos(bname)
if infos is not None:
Expand Down