File: version.py

package info (click to toggle)
srst2 0.2.0-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,668 kB
  • sloc: python: 3,119; sh: 50; makefile: 28
file content (7 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
# Retrieve the version number of srst from the setup.py file.
# This solution was suggested on Stack Overflow:
# http://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package

import pkg_resources  # part of setuptools

srst2_version = pkg_resources.require("srst2")[0].version