File: versioning.rst

package info (click to toggle)
python-scipy 0.18.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 75,464 kB
  • ctags: 79,406
  • sloc: python: 143,495; cpp: 89,357; fortran: 81,650; ansic: 79,778; makefile: 364; sh: 265
file content (40 lines) | stat: -rw-r--r-- 1,722 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Version numbering
=================
Scipy version numbering complies to `PEP 440`_.  Released final versions, which
are the only versions appearing on `PyPI`_, are numbered ``MAJOR.MINOR.MICRO``
where:

- ``MAJOR`` is an integer indicating the major version.  It changes very
  rarely; a change in ``MAJOR`` indicates large (possibly backwards-incompatible)
  changes.
- ``MINOR`` is an integer indicating the minor version.  Minor versions are
  typically released twice a year and can contain new features, deprecations and
  bug-fixes.
- ``MICRO`` is an integer indicating a bug-fix version.  Bug-fix versions are
  released when needed, typically one or two per minor version.  They cannot
  contain new features or deprecations.

Released alpha, beta and rc (release candidate) versions are numbered
like final versions but with postfixes ``a#``, ``b#`` and ``rc#`` respectively,
with ``#`` an integer.  Development versions are postfixed with ``.dev0+<git-commit-hash>``.

Examples of valid Scipy version strings are::

    0.16.0
    0.15.1
    0.14.0a1
    0.14.0b2
    0.14.0rc1
    0.17.0.dev0+ac53f09

An installed Scipy version contains these version identifiers::

    scipy.__version__            # complete version string, including git commit hash for dev versions
    scipy.version.short_version  # string, only major.minor.micro
    scipy.version.version        # string, same as scipy.__version__
    scipy.version.full_version   # string, same as scipy.__version__
    scipy.version.release        # bool, development or (alpha/beta/rc/final) released version
    scipy.version.git_revision   # string, git commit hash from which scipy was built


.. _PEP 440: https://www.python.org/dev/peps/pep-0440