Skip to content

Commit bbeaa69

Browse files
committed
* **Fix:** Fixed the CHANGELOG.rst, setup.py to be able to properly package and upload to PyPI.
1 parent 2f65a78 commit bbeaa69

5 files changed

Lines changed: 13 additions & 6 deletions

File tree

CHANGELOG renamed to CHANGELOG.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changes
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+
510
1.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

4449
1.0.0
4550
=====
File renamed without changes.

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
import timecode
66

77
here = 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

1111
setup(
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",

timecode/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import math
2424
from decimal import Decimal, ROUND_HALF_UP
2525

26-
__version__ = '1.2.2'
26+
__version__ = '1.2.2.1'
2727

2828

2929
def 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

528529
class TimecodeError(Exception):
529530
"""Raised when an error occurred in timecode calculation

upload_to_pypi

100644100755
File mode changed.

0 commit comments

Comments
 (0)