File tree 3 files changed +14
-10
lines changed
3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 27
27
"""
28
28
29
29
__author__ = 'Alexandre Norman (norman at xael.org)'
30
- __version__ = '0.4.3 '
31
- __last_modification__ = '2015.11.24 '
30
+ __version__ = '0.4.4 '
31
+ __last_modification__ = '2015.11.25 '
32
32
33
33
import codecs
34
34
import datetime
41
41
42
42
try :
43
43
import svgwrite
44
- from svgwrite import cm , mm
44
+ # conversion from mm/cm to pixel is done by ourselve as firefox seems
45
+ # to have a bug for big numbers...
46
+ # 3.543307 is for conversion from mm to pt units !
47
+ mm = 3.543307
48
+ cm = 35.43307
45
49
except ImportError :
46
50
print ("This program uses svgwrite. See : https://bitbucket.org/mozman/svgwrite/" )
47
51
sys .exit (1 )
@@ -1480,10 +1484,10 @@ def _time_diff_d(e, s):
1480
1484
# 3.543307 is for conversion from mm to pt units !
1481
1485
svg .add (svgwrite .shapes .Polygon (
1482
1486
points = [
1483
- ((x + 5 )* 3.543307 , (y + 2 )* 3.543307 ),
1484
- ((x + 8 )* 3.543307 , (y + 5 )* 3.543307 ),
1485
- ((x + 5 )* 3.543307 , (y + 8 )* 3.543307 ),
1486
- ((x + 2 )* 3.543307 , (y + 5 )* 3.543307 )
1487
+ ((x + 5 )* mm , (y + 2 )* mm ),
1488
+ ((x + 8 )* mm , (y + 5 )* mm ),
1489
+ ((x + 5 )* mm , (y + 8 )* mm ),
1490
+ ((x + 2 )* mm , (y + 5 )* mm )
1487
1491
],
1488
1492
fill = color ,
1489
1493
stroke = color ,
Original file line number Diff line number Diff line change 23
23
24
24
25
25
__author__ = 'Alexandre Norman (norman at xael.org)'
26
- __version__ = '0.4.3 '
26
+ __version__ = '0.4.4 '
27
27
__last_modification__ = '2015.06.13'
28
28
29
29
import copy
Original file line number Diff line number Diff line change 13
13
with open (path .join (here , 'README.txt' ), encoding = 'utf-8' ) as f :
14
14
long_description = f .read ()
15
15
16
-
16
+ import gantt
17
17
18
18
setup (
19
19
name = 'python-gantt' ,
20
- version = '0.4.3' ,
20
+ version = gantt . __version__ ,
21
21
author = 'Alexandre Norman' ,
22
22
author_email = 'norman@xael.org' ,
23
23
license = 'gpl-3.0.txt' ,
You can’t perform that action at this time.
0 commit comments