File size: 452 Bytes
714e7c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3

"""
Check that the version number of the install Matplotlib does not start with 0

To run:
    $ python3 -m build .
    $ pip install dist/matplotlib*.tar.gz for sdist
    $ pip install dist/matplotlib*.whl for wheel
    $ ./ci/check_version_number.py
"""
import sys

import matplotlib


print(f"Version {matplotlib.__version__} installed")
if matplotlib.__version__[0] == "0":
    sys.exit("Version incorrectly starts with 0")