File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22Changes
33=======
44
5+ 1.2.2.1
6+ =======
7+ * **Fix: ** Fixed the ``CHANGELOG.rst `` and ``setup.py `` to be able to properly
8+ package and upload to PyPI.
9+
5101.2.2
611=====
712* **Fix: ** Fixed ``Timecode.parse_timecode `` for int inputs.
@@ -22,7 +27,7 @@ Changes
2227* **NEW: ** set_fractional method for setting whether or not to represent a
2328 timecode as fractional seconds.
2429
25- * **Update:** Updated READEME 's with info on new features
30+ * **Update: ** Updated README 's with info on new features
2631
2732* **FIX: ** Some merge issues.
2833
@@ -39,7 +44,7 @@ Changes
3944=====
4045
4146* **Update: ** To prevent confusion, passing 0 for ``start_seconds `` argument
42- will raise a ValueError now in ``Timecode.__init__` method.
47+ will raise a ValueError now in ``Timecode.__init__ `` method.
4348
44491.0.0
4550=====
File renamed without changes.
Original file line number Diff line number Diff line change 55import timecode
66
77here = os .path .abspath (os .path .dirname (__file__ ))
8- README = open (os .path .join (here , 'README' )).read ()
9- CHANGES = open (os .path .join (here , 'CHANGELOG' )).read ()
8+ README = open (os .path .join (here , 'README.rst ' )).read ()
9+ CHANGES = open (os .path .join (here , 'CHANGELOG.rst ' )).read ()
1010
1111setup (
1212 name = 'timecode' ,
1313 version = timecode .__version__ ,
1414 description = "SMPTE Time Code Manipulation Library" ,
1515 long_description = '%s\n \n %s' % (README , CHANGES ),
16+ long_description_content_type = 'text/x-rst' ,
1617 classifiers = [
1718 "Programming Language :: Python" ,
1819 "License :: OSI Approved :: MIT License" ,
Original file line number Diff line number Diff line change 2323import math
2424from decimal import Decimal , ROUND_HALF_UP
2525
26- __version__ = '1.2.2'
26+ __version__ = '1.2.2.1 '
2727
2828
2929def school_math_round (num ):
@@ -523,7 +523,8 @@ def frame_number(self):
523523 def float (self ):
524524 """returns the seconds as float
525525 """
526- return self .frames / float (self .framerate )
526+ return float (self .frames ) / float (self .framerate )
527+
527528
528529class TimecodeError (Exception ):
529530 """Raised when an error occurred in timecode calculation
You can’t perform that action at this time.
0 commit comments