WinPython 3.8.6.0 发行版包索引全解析:读懂 changelog 清单与 wppm 差异对比机制
WinPython 3.8.6.0 发行版包索引全解析:读懂 changelog 清单与 wppm 差异对比机制
WinPython 是面向 Windows 平台的便携式 Python 发行版,自带科学计算所需的预编译包集合。本篇文章以当前仓库 changelogs/WinPython-64bit-3.8.6.0.md 为骨架,完整梳理该版本的 Tools 与 Python 包清单,结合其姊妹文档 WinPython-64bit-3.8.6.0_History.md 还原自 3.8.5.0 以来的全部升级、新增与移除,并深入仓库源码解释"这些清单究竟是怎么生成的、如何用 wppm 自行对比任意两个版本的清单"。读完本文,你将掌握 WinPython 发布清单的阅读方法、其生成机制(wppm/wppm.py、wppm/diff.py),以及 wppm -diff 等实操命令。
版本背景:这份清单属于谁
WinPython-64bit-3.8.6.0 是 WinPython 在 64 位架构下的一个具体发行版本,其核心信息如下:
| 维度 | 值 |
|---|---|
| 发行版名称 | WinPython-64bit |
| 版本号 | 3.8.6.0 |
| 解释器 | Python 3.8.6(含标准库) |
| 自带工具链 | Node.js v14.14.0、npm 6.14.8、Pandoc 2.3 |
| 发行版工具 | winpython 3.0.20201028(WinPython distribution tools,含 WPPM) |
从仓库结构看,changelogs/ 目录按 WinPython{flavor}-{arch}bit-{version}.md 的命名规则存放每一个发行版的包索引(package index),而 WinPython-64bit-3.8.6.0_History.md 则是与紧邻前一个版本(3.8.5.0)对比后生成的变更记录。二者是一对"清单 + 差异"的组合,共同描述一次发行。
Tools:随发行版附带的桌面工具
WinPython-64bit 3.8.6.0 自带三个非 Python 的桌面工具,构成开发与文档转换的基础环境:
| Name | Version | Description |
|---|---|---|
| Nodejs | v14.14.0 | a JavaScript runtime built on Chrome's V8 JavaScript engine |
| npmjs | 6.14.8 | a package manager for JavaScript |
| Pandoc | 2.3 | a universal document converter |
其中 Node.js 从上一版的 v12.18.3 升级至 v14.14.0,npm 从 6.14.6 升级至 6.14.8(依据 WinPython-64bit-3.8.6.0_History.md 的 Tools 升级列表)。这些工具由 wppm 在生成索引时通过 utils.get_installed_tools 自动探测并写入清单。
Python packages:3.8.6.0 完整包索引
以下为 WinPython-64bit 3.8.6.0 自带 Python 包的完整清单(与 changelog 原文一致,共 350+ 项)。条目按原文顺序排列,覆盖科学计算、数据可视化、机器学习、Web 异步框架、地理空间、数据库与桌面 GUI 等完整生态。
| Name | Version | Description |
|---|---|---|
| Python | 3.8.6 | Python programming language with standard library |
| adodbapi | 2.6.1.3 | A pure Python package implementing PEP 249 DB-API using Microsoft ADO. |
| affine | 2.3.0 | Matrices describing affine transformation of the plane. |
| aiofiles | 0.5.0 | File support for asyncio. |
| aiohttp | 3.7.1 | Async http client/server framework (asyncio) |
| aiosqlite | 0.15.0 | asyncio bridge to the standard sqlite3 module |
| alabaster | 0.7.12 | A configurable sidebar-enabled Sphinx theme |
| altair | 4.1.0 | Altair: A declarative statistical visualization library for Python. |
| altair_data_server | 0.4.1 | A background data server for Altair charts. |
| altair_transform | 0.2.0 | A python engine for evaluating Altair transforms. |
| altair_widgets | 0.2.2 | Altair Widgets: An interactive visualization for statistical data for Python. |
| altgraph | 0.17 | Python graph (network) package |
| amply | 0.1.4 | Amply allows you to load and manipulate AMPL/GLPK data as Python data structures |
| aniso8601 | 8.0.0 | A library for parsing ISO 8601 strings. |
| ansiwrap | 0.8.4 | textwrap, but savvy to ANSI colors and styles |
| appdirs | 1.4.4 | A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". |
| argon2_cffi | 20.1.0 | The secure Argon2 password hashing algorithm. |
| asciitree | 0.3.3 | Draws ASCII trees. |
| asgi_csrf | 0.6.1 | ASGI middleware for protecting against CSRF attacks |
| asgiref | 3.2.10 | ASGI specs, helper code, and adapters |
| asteval | 0.9.19 | Safe, minimalistic evaluator of python expression using ast module |
| astroid | 2.4.2 | An abstract syntax tree for Python with inference support. |
| astroml | 0.4.1 | tools for machine learning and data mining in Astronomy |
| astropy | 4.0.3 | Community-developed python astronomy tools |
| async_generator | 1.10 | Async generators and context managers for Python 3.5+ |
| async_timeout | 3.0.1 | Timeout context manager for asyncio programs |
| atomicwrites | 1.4.0 | Atomic file writes. |
| attrs | 20.2.0 | Classes Without Boilerplate |
| autopep8 | 1.5.3 | A tool that automatically formats Python code to conform to the PEP 8 style guide |
| babel | 2.8.0 | Internationalization utilities |
| backcall | 0.2.0 | Specifications for callback functions passed in to an API |
| backports_abc | 0.5 | A backport of recent additions to the 'collections.abc' module. |
| baresql | 0.7.6 | playing SQL directly on Python datas |
| bcrypt | 3.1.7 | Modern password hashing for your software and your computers |
| beautifulsoup4 | 4.9.3 | Screen-scraping library |
| black | 20.8b1 | The uncompromising code formatter. |
| bleach | 3.2.1 | An easy safelist-based HTML-sanitizing tool. |
| blinker | 1.4 | Fast, simple object-to-object and broadcast signaling |
| blosc | 1.9.2 | Blosc data compressor |
| bloscpack | 0.16.0 | Command line interface to and serialization format for Blosc |
| bokeh | 2.2.3 | Interactive plots and applications in the browser from Python |
| botorch | 0.3.2 | Bayesian Optimization in PyTorch |
| bottleneck | 1.3.2 | Fast NumPy array functions written in C |
| bqplot | 0.12.18 | Interactive plotting for the Jupyter notebook, using d3.js and ipywidgets. |
| branca | 0.4.1 | Generate complex HTML+JS pages with Python |
| brewer2mpl | 1.4.1 | Connect colorbrewer2.org color maps to Python and matplotlib |
| brotli | 1.0.9 | Python bindings for the Brotli compression library |
| cachelib | 0.1.1 | A collection of cache libraries in the same API interface. |
| cartopy | 0.18.0 | A cartographic python library with Matplotlib support for visualisation |
| certifi | 2020.6.20 | Python package for providing Mozilla's CA Bundle. |
| cffi | 1.14.3 | Foreign Function Interface for Python calling C code. |
| cftime | 1.2.1 | Time-handling functionality from netcdf4-python |
| chardet | 3.0.4 | Universal encoding detector for Python 2 and 3 |
| click | 7.1.2 | Composable command line interface toolkit |
| click_default_group | 1.2.2 | Extends click.Group to invoke a command without explicit subcommand name |
| click_plugins | 1.1.1 | An extension module for click to enable registering CLI commands via setuptools entry-points. |
| cligj | 0.7.0 | Click params for commmand line interfaces to GeoJSON |
| cloudpickle | 1.6.0 | Extended pickling support for Python objects |
| clrmagic | 0.0.1a2 | IPython cell magic to use .NET languages |
| colorama | 0.4.4 | Cross-platform colored terminal text. |
| colorcet | 2.0.2 | Collection of perceptually uniform colormaps |
| comtypes | 1.1.7 | Pure Python COM package |
| cryptography | 3.2 | cryptography is a package which provides cryptographic recipes and primitives to Python developers. |
| cvxopt | 1.2.5 | Convex optimization package |
| cvxpy | 1.1.7 | A domain-specific language for modeling convex optimization problems in Python. |
| cx_freeze | 6.3 | create standalone executables from Python scripts |
| cycler | 0.10.0 | Composable style cycles |
| cython | 0.29.21 | The Cython compiler for writing C extensions for the Python language. |
| cytoolz | 0.11.0 | Cython implementation of Toolz: High performance functional utilities |
| dask | 2.30.0 | Parallel PyData with Task Scheduling |
| dask_glm | 0.2.0 | Generalized Linear Models with Dask |
| dask_labextension | 3.0.0 | A Jupyter Notebook server extension manages Dask clusters. |
| dask_ml | 1.7.0 | A library for distributed and parallel machine learning |
| dask_searchcv | 0.2.0 | Tools for doing hyperparameter search with Scikit-Learn and Dask |
| databases | 0.4.0 | Async database support for Python. |
| datasette | 0.50.2 | A tool for exploring and publishing data |
| datashader | 0.11.1 | Data visualization toolchain based on aggregating into a grid |
| datashape | 0.5.2 | A data description language. |
| db.py | 0.5.4b1 | a db package that doesn't suck |
| decorator | 4.4.2 | Decorators for Humans |
| defusedxml | 0.6.0 | XML bomb protection for Python stdlib modules |
| deprecated | 1.2.10 | Python @deprecated decorator to deprecate old python classes, functions or methods. |
| descartes | 1.1.0 | Use geometric objects as matplotlib paths and patches |
| diff_match_patch | 20200713 | Repackaging of Google's Diff Match and Patch libraries. Offers robust algorithms to perform the operations required for synchronizing plain text. |
| distlib | 0.3.1 | Distribution utilities |
| distributed | 2.30.0 | Distributed scheduler for Dask |
| docopt | 0.6.2 | Pythonic argument parser, that will make you smile |
| docrepr | 0.1.1 | docrepr renders Python docstrings in HTML |
| docutils | 0.16 | Docutils -- Python Documentation Utilities |
| ecos | 2.0.7.post1 | This is the Python package for ECOS: Embedded Cone Solver. See Github page for more information. |
| emcee | 3.0.2 | The Python ensemble sampling toolkit for MCMC |
| entrypoints | 0.3 | Discover and load entry points from installed packages. |
| fast_histogram | 0.9 | Fast simple 1D and 2D histograms |
| fastapi | 0.61.1 | FastAPI framework, high performance, easy to learn, fast to code, ready for production |
| fasteners | 0.15 | A python package that provides useful locks. |
| fastparquet | 0.4.1 | Python support for Parquet file format |
| feather_format | 0.4.1 | Simple wrapper library to the Apache Arrow-based Feather File Format |
| filelock | 3.0.12 | A platform independent file lock. |
| fiona | 1.8.17 | Fiona reads and writes spatial data files |
| flake8 | 3.8.4 | the modular source code checker: pep8, pyflakes and co |
| flask | 1.1.2 | A simple framework for building complex web applications. |
| flask_accepts | 0.17.4 | Easy, opinionated Flask input/output handling with Flask-restx and Marshmallow |
| flask_mail | 0.9.1 | Flask extension for sending email |
| flask_restx | 0.2.0 | Fully featured framework for fast, easy and documented API development with Flask |
| flask_session | 0.3.2 | Adds server-side session support to your Flask application |
| flask_sqlalchemy | 2.4.4 | Adds SQLAlchemy support to your Flask application. |
| flaskerize | 0.14.0 | Python CLI build/dev tool for templated code generation and project modification. Think Angular schematics for Python. |
| folium | 0.11.0 | Make beautiful maps with Leaflet.js & Python |
| formlayout | 2.0.0a0 | The most easy way to create Qt form dialogs and widgets with Python |
| fs | 2.4.11 | Python's filesystem abstraction layer |
| fsspec | 0.8.4 | File-system specification |
| future | 0.18.2 | Clean single-source support for Python 3 and 2 |
| fuzzywuzzy | 0.18.0 | Fuzzy string matching in python |
| gdal | 3.1.4 | GDAL: Geospatial Data Abstraction Library |
| geographiclib | 1.50 | The geodesic routines from GeographicLib |
| geopandas | 0.8.1 | Geographic pandas extensions |
| geopy | 2.0.0 | Python Geocoding Toolbox |
| geoviews | 1.8.1 | GeoViews is a Python library that makes it easy to explore and visualize geographical, meteorological, and oceanographic datasets, such as those used in weather, climate, and remote sensing research. |
| gmpy2 | 2.0.8 | GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x |
| gpytorch | 1.2.1 | An implementation of Gaussian Processes in Pytorch |
| greenlet | 0.4.17 | Lightweight in-process concurrent programming |
| guidata | 1.7.9 | Automatic graphical user interfaces generation for easy dataset editing and display |
| guiqwt | 3.0.5 | guiqwt is a set of tools for curve and image plotting (extension to PythonQwt) |
| h11 | 0.11.0 | A pure-Python, bring-your-own-I/O implementation of HTTP/1.1 |
| h2 | 4.0.0 | HTTP/2 State-Machine based protocol implementation |
| h5py | 2.10.0 | Read and write HDF5 files from Python |
| heapdict | 1.0.1 | a heap with decrease-key and increase-key operations |
| helpdev | 0.7.1 | HelpDev - Extracts information about the Python environment easily. |
| holoviews | 1.13.5 | Stop plotting your data - annotate your data and let it visualize itself. |
| hpack | 4.0.0 | Pure-Python HPACK header compression |
| html5lib | 1.1 | HTML parser based on the WHATWG HTML specification |
| httpcore | 0.12.0 | A minimal low-level HTTP client. |
| httpie | 2.2.0 | HTTPie - a CLI, cURL-like tool for humans. |
| httpx | 0.16.1 | The next generation HTTP client. |
| hupper | 1.10.2 | Integrated process monitor for developing and reloading daemons. |
| husl | 4.0.3 | Human-friendly HSL |
| hvplot | 0.6.0 | A high-level plotting API for the PyData ecosystem built on HoloViews. |
| hypercorn | 0.11.1 | A ASGI Server based on Hyper libraries and inspired by Gunicorn. |
| hyperframe | 6.0.0 | HTTP/2 framing layer for Python |
| hypothesis | 5.37.4 | A library for property-based testing |
| ibis_framework | 1.3.0 | Productivity-centric Python Big Data Framework |
| idlex | 1.18 | IDLE Extensions for Python |
| idna | 2.10 | Internationalized Domain Names in Applications (IDNA) |
| imageio | 2.9.0 | Library for reading and writing a wide range of image, video, scientific, and volumetric data formats. |
| imageio_ffmpeg | 0.4.2 | FFMPEG wrapper for Python |
| imagesize | 1.2.0 | Getting image size from png/jpeg/jpeg2000/gif file |
| imbalanced_learn | 0.7.0 | Toolbox for imbalanced dataset in machine learning. |
| importlib_metadata | 2.0.0 | Read metadata from Python packages |
| iniconfig | 1.1.1 | iniconfig: brain-dead simple config-ini parsing |
| intake | 0.6.0 | Data load and catalog system |
| intervaltree | 3.0.2 | Editable interval tree data structure for Python 2 and 3 |
| ipykernel | 5.3.4 | IPython Kernel for Jupyter |
| ipyleaflet | 0.13.3 | A Jupyter widget for dynamic Leaflet maps |
| ipympl | 0.5.8 | Matplotlib Jupyter Extension |
| ipython | 7.18.1 | IPython: Productive Interactive Computing |
| ipython_genutils | 0.2.0 | Vestigial utilities from IPython |
| ipython_sql | 0.4.1b1 | RDBMS access via IPython |
| ipywidgets | 7.5.1 | IPython HTML widgets for Jupyter |
| isort | 5.6.4 | A Python utility / library to sort Python imports. |
| itsdangerous | 1.1.0 | Various helpers to pass data to untrusted environments and back. |
| janus | 0.5.0 | Mixed sync-async queue to interoperate between asyncio tasks and classic threads |
| jedi | 0.17.1 | An autocompletion tool for Python that can be used for text editors. |
| jinja2 | 2.11.2 | A small but fast and easy to use stand-alone template engine written in pure python. |
| joblib | 0.17.0 | Lightweight pipelining: using Python functions as pipeline jobs. |
| json5 | 0.9.5 | A Python implementation of the JSON5 data format. |
| jsonschema | 3.2.0 | An implementation of JSON Schema validation for Python |
| julia | 0.5.6 | Julia/Python bridge with IPython support. |
| jupyter | 1.0.0 | Jupyter metapackage. Install all the Jupyter components in one go. |
| jupyter_bokeh | 2.0.3 | A Jupyter extension for rendering Bokeh content. |
| jupyter_client | 6.1.7 | Jupyter protocol implementation and client libraries |
| jupyter_console | 6.2.0 | Jupyter terminal console |
| jupyter_core | 4.6.3 | Jupyter core package. A base package on which Jupyter projects rely. |
| jupyter_server | 1.0.5 | The Jupyter Server |
| jupyter_server_proxy | 1.5.0 | Jupyter server extension to supervise and proxy web services |
| jupyter_sphinx | 0.3.2 | Jupyter Sphinx Extensions |
| jupyterlab | 2.2.9 | The JupyterLab notebook server extension. |
| jupyterlab_launcher | 0.13.1 | Jupyter Launcher |
| jupyterlab_pygments | 0.1.2 | Pygments theme |
| jupyterlab_server | 1.2.0 | JupyterLab Server |
| keyring | 21.4.0 | Store and access your passwords safely. |
| kiwisolver | 1.2.0 | A fast implementation of the Cassowary constraint solver |
| lazy_object_proxy | 1.4.3 | A fast and thorough lazy object proxy. |
| llvmlite | 0.34.0 | lightweight wrapper around basic LLVM functionality |
| lmfit | 1.0.1 | Least-Squares Minimization with Bounds and Constraints |
| locket | 0.2.0 | File-based locks for Python for Linux and Windows |
| loky | 2.9.0 | A robust implementation of concurrent.futures.ProcessPoolExecutor |
| lxml | 4.6.1 | Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. |
| lz4 | 3.1.0 | LZ4 Bindings for Python |
| markdown | 3.3.2 | Python implementation of Markdown. |
| markupsafe | 1.1.1 | Safely add untrusted strings to HTML/XML markup. |
| marshmallow | 3.8.0 | A lightweight library for converting complex datatypes to and from native Python datatypes. |
| matplotlib | 3.3.2 | Python plotting package |
| mccabe | 0.6.1 | McCabe checker, plugin for flake8 |
| mercantile | 1.1.6 | Web mercator XYZ tile utilities |
| mergedeepe | 1.3.0 | A deep merge function |
| metakernel | 0.27.0 | Metakernel for Jupyter |
| mistune | 0.8.4 | The fastest markdown parser in pure Python |
| mizani | 0.7.1 | Scales for Python |
| mkl_service | 2.3.0 | Python bindings to some MKL service functions |
| mlxtend | 0.17.3 | Machine Learning Library Extensions |
| monotonic | 1.5 | An implementation of time.monotonic() for Python 2 & < 3.3 |
| moviepy | 1.0.3 | Video editing with Python |
| mpl_scatter_density | 0.7 | Matplotlib helpers to make density scatter plots |
| mpld3 | 0.5.1 | D3 Viewer for Matplotlib |
| mpldatacursor | 0.7.1 | Interactive data cursors for Matplotlib |
| mpmath | 1.1.0 | Python library for arbitrary-precision floating-point arithmetic |
| msgpack | 1.0.0 | MessagePack (de)serializer. |
| msvc_runtime | 14.27.29016.1 | Install the Microsoft Visual C++ runtime DLLs to the sys.prefix and Scripts directories |
| multidict | 5.0.0 | multidict implementation |
| multipledispatch | 0.6.0 | Multiple dispatch |
| munch | 2.5.0 | A dot-accessible dictionary (a la JavaScript objects) |
| mypy | 0.790 | Optional static typing for Python |
| mypy_extensions | 0.4.3 | Experimental type system extensions for programs checked with the mypy typechecker. |
| mysql_connector_python | 8.0.21 | MySQL driver written in Python |
| nbclient | 0.5.1 | A client library for executing notebooks. Formally nbconvert's ExecutePreprocessor. |
| nbconvert | 6.0.7 | Converting Jupyter Notebooks |
| nbconvert_reportlab | 0.2 | Convert notebooks to PDF using Reportlab |
| nbformat | 5.0.8 | The Jupyter Notebook format |
| nest_asyncio | 1.4.2 | Patch asyncio to allow nested event loops |
| netcdf4 | 1.5.4 | Provides an object-oriented python interface to the netCDF version 4 library. |
| networkx | 2.5 | Python package for creating and manipulating graphs and networks |
| nlopt | 2.6.2 | Library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization |
| nltk | 3.5 | Natural Language Toolkit |
| notebook | 6.1.4 | A web-based notebook environment for interactive computing |
| numba | 0.51.2 | compiling Python code using LLVM |
| numcodecs | 0.7.2 | A Python package providing buffer compression and transformation codecs for use in data storage and communication applications. |
| numdifftools | 0.9.39 | Solves automatic numerical differentiation problems in one or more variables. |
| numexpr | 2.7.2 | Fast numerical expression evaluator for NumPy |
| numpy | 1.19.2+mkl | NumPy is the fundamental package for array computing with Python. |
| numpydoc | 1.1.0 | Sphinx extension to support docstrings in Numpy format |
| oct2py | 5.2.0 | Python to GNU Octave bridge --> run m-files from python. |
| octave_kernel | 0.32.0 | A Jupyter kernel for Octave. |
| osqp | 0.6.1 | OSQP: The Operator Splitting QP Solver |
| outcome | 1.0.1 | Capture the outcome of Python function calls. |
| packaging | 20.4 | Core utilities for Python packages |
| palettable | 3.3.0 | Color palettes for Python |
| pandas | 1.1.3 | Powerful data structures for data analysis, time series, and statistics |
| pandas_datareader | 0.9.0 | Data readers extracted from the pandas codebase,should be compatible with recent pandas versions |
| pandocfilters | 1.4.3 | Utilities for writing pandoc filters in python |
| panel | 0.10.1 | A high level app and dashboarding solution for Python. |
| papermill | 2.2.0 | Parametrize and run Jupyter and nteract Notebooks |
| param | 1.10.0 | Declarative Python programming using Parameters. |
| parambokeh | 0.2.3 | ParamBokeh provides an easy way to generate a UI for param based classes in the notebook or on bokeh server. |
| paramiko | 2.7.2 | SSH2 protocol library |
| paramnb | 2.0.4 | Generate ipywidgets from Parameterized objects in the notebook |
| parso | 0.7.0 | A Python Parser |
| partd | 1.1.0 | Appendable key-value storage |
| pathspec | 0.8.0 | Utility library for gitignore style pattern matching of file paths. |
| pathtools | 0.1.2 | File system general utilities |
| patsy | 0.5.1 | A Python package for describing statistical models and for building design matrices. |
| pdfrw | 0.4 | PDF file reader/writer library |
| pdvega | 0.2.1.dev0 | Pandas plotting interface to Vega and Vega-Lite |
| pefile | 2019.4.18 | Python PE parsing module |
| pep8 | 1.7.1 | Python style guide checker |
| pexpect | 4.8.0 | Pexpect allows easy control of interactive console applications. |
| pg8000 | 1.16.5 | PostgreSQL interface library |
| pickleshare | 0.7.5 | Tiny 'shelve'-like database with concurrency support |
| pillow | 8.0.1 | Python Imaging Library (Fork) |
| pint | 0.16.1 | Physical quantities module |
| pip | 20.2.4 | The PyPA recommended tool for installing Python packages. |
| pipdeptree | 1.0.0 | Command line utility to show dependency tree of packages |
| pkginfo | 1.6.0 | Query metadatdata from sdists / bdists / installed packages. |
| plotly | 4.12.0 | An open-source, interactive graphing library for Python |
| plotnine | 0.7.1 | A grammar of graphics for python |
| pluggy | 0.13.1 | plugin and hook calling mechanisms for python |
| ply | 3.11 | Python Lex & Yacc |
| portpicker | 1.3.1 | A library to choose unique available network ports. |
| ppci | 0.5.8 | A compiler for ARM, X86, MSP430, xtensa and more implemented in pure Python |
| prettytable | 1.0.1 | A simple Python library for easily displaying tabular data in a visually appealing ASCII table format. |
| priority | 1.3.0 | A pure-Python implementation of the HTTP/2 priority tree |
| proglog | 0.1.9 | Log and progress bar manager for console, notebooks, web... |
| prometheus_client | 0.7.1 | Python client for the Prometheus monitoring system. |
| prompt_toolkit | 3.0.8 | Library for building powerful interactive command lines in Python |
| protobuf | 4.0.0rc1 | Protocol Buffers |
| psutil | 5.7.3 | Cross-platform lib for process and system monitoring in Python. |
| ptpython | 3.0.7 | Python REPL build on top of prompt_toolkit |
| ptyprocess | 0.6.0 | Run a subprocess in a pseudo terminal |
| pulp | 2.3 | PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems. |
| py | 1.9.0 | library with cross-python path, ini-parsing, io, code, log facilities |
| pyaml | 20.4.0 | PyYAML-based module to produce pretty and readable YAML-serialized data |
| pyarrow | 2.0.0 | Python library for Apache Arrow |
| pyaudio | 0.2.11 | Bindings for PortAudio v19, the cross-platform audio input/output stream library. |
| pybars3 | 0.9.7 | Handlebars.js templating for Python 3 and 2 |
| pybind11 | 2.6.0 | Seamless operability between C++11 and Python |
| pycodestyle | 2.6.0 | Python style guide checker |
| pycosat | 0.6.3 | bindings to picosat (a SAT solver) |
| pycparser | 2.20 | C parser in Python |
| pyct | 0.4.6 | python package common tasks for users (e.g. copy examples, fetch data, ...) |
| pydantic | 1.6.1 | Data validation and settings management using python 3.6 type hinting |
| pydeck | 0.5.0 | Widget for deck.gl maps |
| pydocstyle | 5.1.1 | Python docstring style checker |
| pyepsg | 0.4.0 | Easy access to the EPSG database |
| pyflakes | 2.2.0 | passive checker of Python programs |
| pyflux | 0.4.17 | PyFlux: A time-series analysis library for Python |
| pygame | 1.9.6 | Python Game Development |
| pygbm | 0.1.0 | Experimental, numba-based Gradient Boosting Machines |
| pygments | 2.7.2 | Pygments is a syntax highlighting package written in Python. |
| pyhdf | 0.10.2 | pyhdf: Python interface to the NCSA HDF4 library. |
| pyinstaller | 3.6 | PyInstaller bundles a Python application and all its dependencies into a single package. |
| pylint | 2.6.0 | python code static checker |
| pymc | 2.3.8 | Markov Chain Monte Carlo sampling toolkit. |
| pymeta3 | 0.5.1 | Pattern-matching language based on OMeta for Python 3 and 2 |
| pymongo | 3.11.0 | Python driver for MongoDB |
| pynacl | 1.4.0 | Python binding to the Networking and Cryptography (NaCl) library |
| pyodbc | 4.0.30 | DB API Module for ODBC |
| pyopengl | 3.1.5 | Standard OpenGL bindings for Python |
| pypandoc | 1.5 | Thin wrapper for pandoc. |
| pyparsing | 2.4.7 | Python parsing module |
| pyproj | 2.6.1.post1 | Python interface to PROJ (cartographic projections and coordinate transformations library) |
| pyqt5 | 5.15.1 | Python bindings for the Qt cross platform application toolkit |
| pyqt5_sip | 12.8.1 | The sip module support for PyQt5 |
| pyqt5_tools | 5.15.1.1.7.5 | Tools to supplement the official PyQt5 wheels |
| pyqtgraph | 0.11.0 | Scientific Graphics and GUI Library for Python |
| pyqtwebengine | 5.15.1 | Python bindings for the Qt WebEngine framework |
| pyrsistent | 0.17.3 | Persistent/Functional/Immutable data structures |
| pyserial | 3.4 | Python Serial Port Extension |
| pyshp | 2.1.2 | Pure Python read/write support for ESRI Shapefile format |
| pystache | 0.5.4 | Mustache for Python |
| pytest | 6.1.1 | pytest: simple powerful testing with Python |
| python_baseconv | 1.2.2 | Convert numbers from base 10 integers to base X strings and back again. |
| python_dateutil | 2.8.1 | Extensions to the standard Python datetime module |
| python_dotenv | 0.14.0 | Add .env support to your django/flask apps in development and deployments |
| python_hdf4 | 0.10.0+dummy | Python-HDF4: Python interface to the NCSA HDF4 library. |
| python_jsonrpc_server | 0.4.0 | JSON RPC 2.0 server library |
| python_language_server | 0.35.1 | Python Language Server for the Language Server Protocol |
| python_levenshtein | 0.12.0 | Python extension for computing string edit distances and similarities. |
| python_snappy | 0.5.4 | Python library for the snappy compression library from Google |
| pythonnet | 2.5.1 | .Net and Mono integration for Python |
| pythonqwt | 0.8.3 | Qt plotting widgets for Python |
| pytz | 2020.1 | World timezone definitions, modern and historical |
| pyviz_comms | 0.7.6 | Bidirectional communication for the PyViz ecosystem. |
| pywavelets | 1.1.1 | PyWavelets, wavelet transform module |
| pywin32 | 228 | Python for Window Extensions |
| pywin32_ctypes | 0.2.0 | A (partial) reimplementation of pywin32 that is pure python (uses ctypes/cffi) |
| pywinpty | 0.5.7 | Python bindings for the winpty library |
| pywinusb | 0.4.2 | A package that simplifies USB/HID communications on windows |
| pyyaml | 5.3.1 | YAML parser and emitter for Python |
| pyzmq | 19.0.2 | Python bindings for 0MQ |
| pyzo | 4.11.0 | the Python IDE for scientific computing |
| qdarkstyle | 2.8.1 | The most complete dark stylesheet for Python and Qt applications |
| qtawesome | 1.0.1 | FontAwesome icons in PyQt and PySide applications |
| qtconsole | 4.7.7 | Jupyter Qt console |
| qtpy | 1.9.0 | Provides an abstraction layer on top of the various Qt bindings (PyQt5, PyQt4 and PySide) and additional custom QWidgets. |
| quantecon | 0.4.8 | QuantEcon is a package to support all forms of quantitative economic modelling. |
| quart | 0.13.1 | A Python ASGI web microframework with the same API as Flask |
| rasterio | 1.1.8 | Fast and direct raster I/O for use with Numpy and SciPy |
| readme_renderer | 28.0 | readme_renderer is a library for rendering "readme" descriptions for Warehouse |
| redis | 3.5.3 | Python client for Redis key-value store |
| regex | 2020.10.23 | Alternative regular expression module, to replace re. |
| reportlab | 3.5.53 | The Reportlab Toolkit |
| requests | 2.24.0 | Python HTTP for Humans. |
| requests_toolbelt | 0.9.1 | A utility belt for advanced users of python-requests |
| retrying | 1.3.3 | Retrying |
| rfc3986 | 1.4.0 | Validating URI References per RFC 3986 |
| rise | 5.7.0 | Reveal.js - Jupyter/IPython Slideshow Extension |
| rope | 0.18.0 | a python refactoring library... |
| rpy2 | 3.4.0.dev0 | Python interface to the R language (embedded R) |
| rtree | 0.9.4 | R-Tree spatial index for Python GIS |
| ruamel.yaml | 0.16.12 | a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order |
| ruamel.yaml.clib | 0.2.2 | C version of reader, parser and emitter for ruamel.yaml derived from libyaml |
| rx | 3.1.1 | Reactive Extensions (Rx) for Python |
| scikit_fuzzy | 0.4.1 | Fuzzy logic toolkit for SciPy |
| scikit_image | 0.17.2 | Image processing routines for SciPy |
| scikit_learn | 0.23.2 | A set of python modules for machine learning and data mining |
| scikit_optimize | 0.8.1 | Sequential model-based optimization toolbox. |
| scilab2py | 0.6.2 | Python to Scilab bridge |
| scipy | 1.5.3 | SciPy: Scientific Library for Python |
| scramp | 1.2.0 | An implementation of the SCRAM protocol. |
| scs | 2.1.2 | scs: splitting conic solver |
| seaborn | 0.11.0 | seaborn: statistical data visualization |
| send2trash | 1.5.0 | Send file to trash natively under Mac OS X, Windows and Linux. |
| setuptools | 50.3.2 | Easily download, build, install, upgrade, and uninstall Python packages |
| shap | 0.36.0 | A unified approach to explain the output of any machine learning model. |
| shapely | 1.7.1 | Geometric objects, predicates, and operations |
| simpervisor | 0.3 | Simple async process supervisor |
| simplegeneric | 0.8.1 | Simple generic functions (similar to Python's own len(), pickle.dump(), etc.) |
| simplejson | 3.17.2 | Simple, fast, extensible JSON encoder/decoder for Python |
| simpy | 4.0.1 | Event discrete, process based simulation for Python. |
| six | 1.15.0 | Python 2 and 3 compatibility utilities |
| slicer | 0.0.4 | A small package for big slicing. |
| snakeviz | 2.1.0 | A web-based viewer for Python profiler output |
| sniffio | 1.2.0 | Sniff out which async library your code is running under |
| snowballstemmer | 2.0.0 | This package provides 26 stemmers for 25 languages generated from Snowball algorithms. |
| snuggs | 1.4.7 | Snuggs are s-expressions for Numpy |
| sortedcontainers | 2.2.2 | Sorted Containers -- Sorted List, Sorted Dict, Sorted Set |
| sounddevice | 0.4.1 | Play and Record Sound with Python |
| soupsieve | 2.0.1 | A modern CSS selector implementation for Beautiful Soup. |
| sphinx | 3.2.1 | Tool for generating documentation which uses reStructuredText as its markup language |
| sphinx_rtd_theme | 0.5.0 | Read the Docs theme for Sphinx |
| sphinxcontrib_applehelp | 1.0.2 | sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books |
| sphinxcontrib_devhelp | 1.0.2 | sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document. |
| sphinxcontrib_htmlhelp | 1.0.3 | sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files |
| sphinxcontrib_jsmath | 1.0.1 | A sphinx extension which renders display math in HTML via JavaScript |
| sphinxcontrib_qthelp | 1.0.3 | sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document. |
| sphinxcontrib_serializinghtml | 1.1.4 | sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized" HTML files (json and pickle). |
| spyder | 4.1.5 | The Scientific Python Development Environment |
| spyder_kernels | 1.9.4 | Jupyter kernels for Spyder's console |
| sqlalchemy | 1.3.20 | Database Abstraction Library |
| sqlite_bro | 0.9.1 | a graphic SQLite Client in 1 Python file |
| sqlparse | 0.4.1 | Non-validating SQL parser |
| starlette | 0.13.6 | The little ASGI library that shines. |
| statsmodels | 0.12.0 | Statistical computations and models for Python |
| streamz | 0.5.6 | Streams |
| supersmoother | 0.4 | Python implementation of Friedman's Supersmoother |
| sympy | 1.6.2 | Computer algebra system (CAS) in Python |
| tables | 3.6.1 | Hierarchical datasets for Python |
| tblib | 1.7.0 | Traceback serialization library. |
| tenacity | 6.2.0 | Retry code until it succeeds |
| termcolor | 1.1.0 | ANSII Color formatting for output in terminal. |
| terminado | 0.9.1 | Terminals served to xterm.js using Tornado websockets |
| testpath | 0.4.4 | Test utilities for code working with files and commands |
| textwrap3 | 0.9.2 | textwrap from Python 3.6 backport (plus a few tweaks) |
| threadpoolctl | 2.1.0 | threadpoolctl |
| thrift | 0.13.0 | Python bindings for the Apache Thrift RPC system |
| tifffile | 2020.10.1 | Read and write TIFF(r) files |
| toml | 0.10.1 | Python Library for Tom's Obvious, Minimal Language |
| toolz | 0.11.1 | List processing tools and functional utilities |
| torch | 1.6.0+cpu | Tensors and Dynamic neural networks in Python with strong GPU acceleration |
| torchvision | 0.7.0+cpu | image and video datasets and models for torch deep learning |
| tornado | 6.0.4 | Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. |
| tqdm | 4.50.2 | Fast, Extensible Progress Meter |
| traitlets | 5.0.5 | Traitlets Python config system |
| traittypes | 0.2.1 | Scipy trait types |
| tranquilizer | 0.5.0+1.gff8dd5f | Put your functions to REST |
| trio | 0.17.0 | A friendly Python library for async concurrency and I/O |
| trio_asyncio | 0.11.0 | A re-implementation of the asyncio mainloop on top of Trio |
| twine | 3.2.0 | Collection of utilities for publishing packages on PyPI |
| 1.18.0 | An API and command-line toolset for Twitter (twitter.com) | |
| typed_ast | 1.4.1 | a fork of Python 2 and 3 ast modules with type comment support |
| typing_extensions | 3.7.4.3 | Backported and Experimental Type Hints for Python 3.5+ |
| tzlocal | 2.1 | tzinfo object for the local timezone |
| ujson | 4.0.1 | Ultra fast JSON encoder and decoder for Python |
| umap_learn | 0.4.6 | Uniform Manifold Approximation and Projection |
| uncertainties | 3.1.4 | Transparent calculations with uncertainties on the quantities involved (aka error propagation); fast calculation of derivatives |
| urllib3 | 1.25.11 | HTTP library with thread-safe connection pooling, file post, and more. |
| uvicorn | 0.12.2 | The lightning-fast ASGI server. |
| vega | 3.4.0 | A Jupyter widget for Vega 5 and Vega-Lite 4 |
| vega_datasets | 0.8.0 | A Python package for offline access to Vega datasets |
| virtualenv | 20.1.0 | Virtual Python Environment builder |
| vitables | 3.0.2 | A viewer for PyTables package |
| voila | 0.2.4 | Serving read-only live Jupyter notebooks |
| wasmer | 0.4.2b11 | Python extension to run WebAssembly binaries |
| watchdog | 0.10.3 | Filesystem events monitoring |
| wcwidth | 0.2.5 | Measures number of Terminal column cells of wide-character codes |
| webencodings | 0.5.1 | Character encoding aliases for legacy web content |
| werkzeug | 1.0.1 | The comprehensive WSGI web application library. |
| wheel | 0.35.1 | A built-package format for Python |
| widgetsnbextension | 3.5.1 | IPython HTML widgets for Jupyter |
| winpython | 3.0.20201028 | WinPython distribution tools, including WPPM |
| winrt | 1.0.20239.1 | Access Windows Runtime APIs from Python |
| wordcloud | 1.8.0 | A little word cloud generator |
| wrapt | 1.12.1 | Module for decorators, wrappers and monkey patching. |
| wsproto | 0.15.0 | WebSockets state-machine based protocol implementation |
| xarray | 0.16.1 | N-D labeled arrays and datasets in Python |
| xlrd | 1.2.0 | Library for developers to extract data from Microsoft Excel (tm) spreadsheet files |
| xlsxwriter | 1.3.7 | A Python module for creating Excel XLSX files. |
| xlwings | 0.20.8 | Make Excel fly: Interact with Excel from Python and vice versa. |
| yapf | 0.30.0 | A formatter for Python code. |
| yarl | 1.6.2 | Yet another URL library |
| zarr | 2.5.0 | An implementation of chunked, compressed, N-dimensional arrays for Python. |
| zict | 2.0.0 | Mutable mapping tools |
| zipp | 3.3.2 | Backport of pathlib-compatible object wrapper for zip files |
从清单看发行版定位
从这份完整清单可以归纳出 3.8.6.0 的生态构成(基于上述包索引的事实整理):
- 科学计算底座:numpy 1.19.2+mkl(MKL 加速)、scipy 1.5.3、pandas 1.1.3、sympy 1.6.2、statsmodels 0.12.0、bottleneck、numexpr、numba 0.51.2 + llvmlite。
- 机器学习与贝叶斯:scikit_learn 0.23.2、scikit_optimize、mlxtend、shap、emcee、pymc、botorch + gpytorch、torch 1.6.0+cpu + torchvision 0.7.0+cpu(CPU 版 PyTorch)。
- 数据可视化全家桶:matplotlib 3.3.2、seaborn 0.11.0、bokeh 2.2.3、plotly 4.12.0、altair 4.1.0、holoviews、hvplot、datashader、pyqtgraph 等。
- Jupyter 生态:jupyter / jupyterlab 2.2.9、notebook 6.1.4、ipywidgets 7.5.1、nbconvert、papermill、voila、rise。
- Web/异步服务:fastapi 0.61.1、starlette、uvicorn、flask 1.1.2、aiohttp 3.7.1、httpx、quart、hypercorn。
- 地理空间:gdal 3.1.4、fiona、shapely、geopandas 0.8.1、cartopy、pyproj、rasterio、folium。
- 数据库与存储:sqlalchemy、pyodbc、pymongo、pg8000、redis、mysql_connector_python、tables (PyTables)、h5py、pyarrow。
- Windows 原生集成:pywin32 228、comtypes、winrt、pythonnet、pywinusb,以及 msvc_runtime 14.27.29016.1。
- IDE 与开发工具:spyder 4.1.5、pyzo 4.11.0、ptpython、pipdeptree、pytest、pylint、flake8、mypy、black、isort、cx_freeze、pyinstaller。
从 3.8.5.0 到 3.8.6.0:History 揭示的变更全景
WinPython-64bit-3.8.6.0_History.md 是对比上一发行版 3.8.5.0 得到的变更记录。结合 wppm/diff.py 中 compare_packages 的实现可以确认:差异只分三类——New packages(新增)、Upgraded packages(升级,版本不同即视为升级)、Removed packages(移除)。
新增的 10 个包
| 包 | 版本 | 说明 |
|---|---|---|
| fastapi | 0.61.1 | FastAPI framework, high performance, easy to learn, fast to code, ready for production |
| httpcore | 0.12.0 | A minimal low-level HTTP client. |
| httpx | 0.16.1 | The next generation HTTP client. |
| pydantic | 1.6.1 | Data validation and settings management using python 3.6 type hinting |
| pyqt5_tools | 5.15.1.1.7.5 | Tools to supplement the official PyQt5 wheels |
| scramp | 1.2.0 | An implementation of the SCRAM protocol. |
| slicer | 0.0.4 | A small package for big slicing. |
| starlette | 0.13.6 | The little ASGI library that shines. |
| ujson | 4.0.1 | Ultra fast JSON encoder and decoder for Python |
| winrt | 1.0.20239.1 | Access Windows Runtime APIs from Python |
这批新增集中体现了 3.8.6.0 的两个方向:一是补齐了 FastAPI 异步 Web 服务栈(fastapi + starlette + pydantic + httpx + httpcore,配套已有的 uvicorn、aiohttp、trio 等);二是强化 Windows 原生能力(winrt 访问 Windows Runtime API、pyqt5_tools 补充 Qt 工具链)。
升级的关键包(节选)
升级涉及约 80 个包,以下为重点升级项:
| 包 | 3.8.5.0 → 3.8.6.0 | 说明 |
|---|---|---|
| Python | 3.8.5 → 3.8.6 | Python programming language with standard library |
| numpy | 1.19.1+mkl → 1.19.2+mkl | NumPy 基础数组计算包 |
| pandas | 1.1.0 → 1.1.3 | 数据分析核心库 |
| scipy | 1.5.2 → 1.5.3 | 科学计算库 |
| matplotlib | 3.3.1 → 3.3.2 | 绘图库 |
| seaborn | 0.10.1 → 0.11.0 | 统计可视化 |
| bokeh | 2.1.1 → 2.2.3 | 浏览器交互绘图 |
| plotly | 4.9.0 → 4.12.0 | 交互式绘图 |
| dask | 2.23.0 → 2.30.0 | 并行计算 |
| distributed | 2.23.0 → 2.30.0 | Dask 分布式调度器 |
| numba | 0.51.0 → 0.51.2 | LLVM 编译加速 |
| scikit_learn | (未升级,0.23.2) | 机器学习(版本未变) |
| statsmodels | 0.11.1 → 0.12.0 | 统计模型 |
| pillow | 7.2.0 → 8.0.1 | 图像处理 |
| pyarrow | 1.0.0 → 2.0.0 | Apache Arrow |
| sqlalchemy | 1.3.18 → 1.3.20 | 数据库抽象层 |
| spyder | 4.1.4 → 4.1.5 | 科学计算 IDE |
| jupyterlab | 2.2.4 → 2.2.9 | JupyterLab |
| nbconvert | 5.6.1 → 6.0.7 | Notebook 转换 |
| pyqt5 | 5.15.0 → 5.15.1 | Qt 绑定 |
| cryptography | 3.0 → 3.2 | 加密库 |
| virtualenv | 20.0.30 → 20.1.0 | 虚拟环境 |
其余升级还包括 aiohttp 3.6.2→3.7.1、attrs 19.3.0→20.2.0、beautifulsoup4 4.9.1→4.9.3、black 19.10b0→20.8b1、cffi 1.14.1→1.14.3、cloudpickle 1.5.0→1.6.0、colorama 0.4.3→0.4.4、cvxpy 1.1.3→1.1.7、cx_freeze 6.2→6.3、cytoolz 0.10.1→0.11.0、databases 0.3.2→0.4.0、datasette 0.47.2→0.50.2、fiona 1.8.13→1.8.17、gdal 3.1.2→3.1.4、greenlet 0.4.16→0.4.17、h5py(未变)、h11 0.9.0→0.11.0、h2 3.2.0→4.0.0、holoviews 1.13.3→1.13.5、hpack 3.0.0→4.0.0、hypercorn 0.10.2→0.11.1、hypothesis 5.24.3→5.37.4、ipython 7.17.0→7.18.1、jupyter_client 6.1.6→6.1.7、jupyter_server 0.1.1→1.0.5、jupyter_console 6.1.0→6.2.0、keyring 21.3.0→21.4.0、loky 2.8.0→2.9.0、lxml 4.5.2→4.6.1、markdown 3.2.2→3.3.2、marshmallow 3.7.1→3.8.0、mypy 0.782→0.790、networkx 2.4→2.5、notebook 6.1.3→6.1.4、psutil 5.7.2→5.7.3、pytest 6.0.1→6.1.1、pygments 2.6.1→2.7.2、pylint 2.5.3→2.6.0、pyzmq(未变)、regex 2020.7.14→2020.10.23、reportlab 3.5.47→3.5.53、rasterio 1.1.5→1.1.8、setuptools 49.6.0→50.3.2、shap 0.35.0→0.36.0、shapely 1.7.0→1.7.1、sqlparse 0.3.1→0.4.1、tifffile 2020.8.13→2020.10.1、toolz 0.10.0→0.11.1、tqdm 4.48.0→4.50.2、traitlets 4.3.3→5.0.5、trio 0.16.0→0.17.0、urllib3 1.25.10→1.25.11、uvicorn 0.11.8→0.12.2、voila 0.1.21→0.2.4、xarray 0.16.0→0.16.1、xlsxwriter 1.3.3→1.3.7、xlwings 0.20.2→0.20.8、yarl 1.5.1→1.6.2、zarr 2.4.0→2.5.0、zipp 3.1.0→3.3.2 等(完整列表见 changelogs/WinPython-64bit-3.8.6.0_History.md 的 Upgraded packages 小节)。
移除的 5 个包
| 包 | 版本 | 说明 |
|---|---|---|
| bcolz | 1.2.1 | columnar and compressed data containers. |
| ipyparallel | 6.3.0 | Interactive Parallel Computing with IPython |
| more_itertools | 8.4.0 | More routines for operating on iterables, beyond itertools |
| passlib | 1.7.1 | comprehensive password hashing framework supporting over 30 schemes |
| websockets | 8.1 | An implementation of the WebSocket Protocol (RFC 6455 & 7692) |
这些清单是怎么生成的:源码级解析
changelogs/ 下的 .md 包索引并非手写,而是构建流程自动生成的产物。理解其生成链路,才能准确阅读与复现。
包索引的生成入口
wppm 包内的 wppm/wppm.py 提供了两个关键方法:
Distribution.get_package_index_data(...):收集发行版身份信息(distribution.name/version/python_version/architecture_bits/release_level)、tools列表(utils.get_installed_tools)、packages列表(通过 pip list 枚举,逐包构造Package对象并附带描述与 PyPI 链接)以及可选wheelhouse列表;Distribution.generate_package_index_markdown(...):把上述数据渲染为 Markdown,其输出模板即## {name} {version}标题 +Tools/Python packages(必要时还有WheelHouse packages)三个Name | Version | Description表格——这正是changelogs/WinPython-64bit-3.8.6.0.md的文件结构。
也就是说,你看到的每一行 name | version | description 都是构建时对发行版真实环境的自动盘点结果,而非人工维护的静态列表。
构建流程中的落盘位置
在 winpython/build_winpython.py 的 Step 7: generate changelog 中,构建脚本会:
- 由
winpyver2、flavor、arch、release_level拼出文件名WinPython{flavor}-{arch}bit-{changelog_version}.md; - 设置
WINPYVER2/WINPYFLAVOR/WINPYVER环境变量后,调用wppm.Distribution().generate_package_index_markdown()生成内容并写入构建目录; - 将该文件复制到仓库的
changelogs/目录存档。
版本号的 PEP 440 语义
changelog_version 由 winpyver2(如 3.8.6)加上 release_level(如 0)拼成 3.8.6.0。从 winpython/build_winpython.py 的注释与 wppm/diff.py 中 changelog_versions 的实现可以看出,版本号按 PEP 440 解析,因此 3.15.0.5b1 这类带 release level 的版本也能正确排序——这是历史文件能按版本自动找"上一版"的依据。
构建配置与历史版本的定位
当前仓库的构建配置 winpython_builds.toml 采用"每个 Python 小版本一个 [pythons."3XX"] 块、块内以 builds 列出 flavor(如 dot、slim)"的组织方式,并说明 basedir、requirements、wheelhousereq、toolsdirs 等均由 (python, flavor) 派生。需要注意的是:该文件目前的构建列表已不含 3.8.x(仓库内搜索不到 3.8.6 对应的构建块),3.8.6.0 属于历史发布,其清单文件仅作为归档保留在 changelogs/ 中。因此阅读本版本清单时,应将其视为"当时发行环境的快照"。
用 wppm 复现与自定义对比
wppm(WinPython Package Manager)是仓库自带的包管理工具,wppm/wppm.py 的 main 提供了丰富的 CLI 参数。与本文主题最相关的是 -diff:
对比两个包索引文件
wppm -diff WinPython-64bit-3.8.6.0.md WinPython-64bit-3.8.5.0.md
# 或
python -m wppm.diff changelogs/WinPython-64bit-3.8.6.0.md changelogs/WinPython-64bit-3.8.5.0.md
该命令调用 wppm/diff.py 的 compare_files(mode="full"),按 Tools、Python packages、WheelHouse packages 三个 section 分别比对,输出 New packages / Upgraded packages / Removed packages 三类差异——你在 _History.md 中看到的格式即由此而来。
按版本号自动对比
wppm -diff 3.8.6.0 3.8.5.0
python -m wppm.diff 3.8.6.0 3.8.5.0
若不提供前一版本号,find_previous_version 会在 changelogs/ 目录中按 PEP 440 解析所有 WinPython{flavor}-{arch}bit-*.md 文件名,自动挑选"小于目标版本的最大版本"作为基准(参见 wppm/diff.py 的 changelog_versions 与 find_previous_version)。
局部对比与生成 History 文件
# 只对比某个 section
python -m wppm.diff file1.md file2.md --section python python
# 对比指定的 section 对
python -m wppm.diff file1.md file2.md --pairs python wheelhouse tools tools
# 把对比结果写入 _History.md 文件
python -m wppm.diff --write-changelog 3.8.6.0 3.8.5.0
用 wppm 查看本机发行版信息
# 列出本机 WinPython 已安装包(支持模糊匹配)
wppm -ls
wppm -ls pand
# 输出 Markdown 格式的安装摘要(即生成包索引的同一入口)
wppm -md
其中 -md 正是调用 generate_package_index_markdown,与 changelogs/ 中归档文件的生成路径一致——这为"自行复现任意 WinPython 发行版的包索引"提供了直接手段。
清单文件的规范约束
仓库测试 tests/test_changelog_files.py 对 changelog 文件命名与归档规则做了显式约束,可作为阅读与维护清单的边界说明:
- 只有
WinPython{flavor}-{arch}bit-{version}.md(含_History之外的纯索引)会被归档进changelogs/,hashes_*.md(描述单个构建的二进制哈希)不属于归档范围; parse_changelog_name能够解析 flavor、位数与版本(如WinPython-64bit-3.9.8.0.md对应("", 64, "3.9.8.0")),同时会拒绝_History.md姊妹文件、hashes_*.md、README.md等非索引文件;- 测试明确"不为上一版本自动写
_History.md":因为 flavor 在周期之间增减、用户大约一年升级一次,紧邻版本的自动 diff 参考价值有限;需要对比时用wppm -diff a.md b.md自行挑选两个索引即可——这正是 3.8.6.0 的_History.md作为历史产物被保留、而新版本构建不再自动产出_History的原因。
小结
WinPython-64bit 3.8.6.0 的包索引是一份"完整、可复现、可对比"的发行清单:350+ 个包的版本与描述均来自构建时的自动盘点;_History.md 则是基于源码 wppm/diff.py 中 compare_packages 的三分类差异逻辑生成。阅读者既可以直接查阅 changelogs/WinPython-64bit-3.8.6.0.md 了解当时发行生态,也可以借助 wppm -diff 对任意两个版本的清单做自定义对比,或通过 wppm -md 在本地生成同样的 Markdown 索引。