理解version of Python Package

  • Overview

    Maybe the question in English is :

    How to define the version information about a Python package?

    Other questions to be favor for understanding:

    What is module and How to publish module in Python?

    There are many different schemes that can be used for your version number.

    For Python project, PEP 440 gives some recommendations.

  • Software versioning

    Software upgrade versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software.

    Modern computer software is often tracked using two different software versioning schemes – internal version and release version.

    The Python Software Foundation has published PEP 440.

  • Semantic versioning
  • Python PEP440: Version Identification and Dependency Specification

    “Releases” are uniquely identified snapshots of a project;

    “Distributions” are the packaged files which are used to publish and distribute a release;

    “Build tools” are automated tools intended to run on development systems, producing source and binary distribution archives;

  • References

  1. Standard way to embed version into python package?
  2. Storing a version number in a Python project
  3. PEP 8 – Style Guide for Python Code
  4. PEP 396 – Module Version Numbers
  5. PEP 440 – Version Identification and Dependency Specification
  6. Real Python: How to Publish an Open-Source Python Package to PyPI

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/115023811