-
Notifications
You must be signed in to change notification settings - Fork 0
/
FlatCAMVersion.py
34 lines (28 loc) · 1.07 KB
/
FlatCAMVersion.py
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
############################################################
# FlatCAM: 2D Post-processing for Manufacturing #
# http://flatcam.org #
# Author: Juan Pablo Caram (c) #
# Date: 2/5/2014 #
# MIT Licence #
############################################################
#################################################
# FlatCAM - Version settings #
#################################################
import logging
version = {
"number": 8.5,
"date": (2016, 7, 1), # Year, Month, Day
"name": None,
"release": False,
}
def setup(app):
app.version = version["number"]
app.version_date = version["date"]
if version["release"]:
app.log.setLevel(logging.WARNING)
else:
app.log.setLevel(logging.DEBUG)
if version["name"] is None and version["release"] == False:
app.version_name = "Development Version"
else:
app.version_name = version["name"]