#97: Add __version__ and __spec__

* Enable support for toml.__version__

* Add __spec__

Include reference to which version of the specification this library currently implements.
https://github.com/toml-lang/toml/blob/v0.4.0/README.md
This commit is contained in:
Marcus Ottosson 2017-05-12 05:09:14 +01:00 committed by Will Pearson
parent 1921458b46
commit d31bcc796e
2 changed files with 5 additions and 1 deletions

View File

@ -1,9 +1,10 @@
import toml
from distutils.core import setup
with open("README.rst") as readmefile:
readme = readmefile.read()
setup(name='toml',
version='0.9.2',
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
author="Uiri Noyb",
author_email="uiri@xqz.ca",

View File

@ -4,6 +4,9 @@ import re
import datetime
import io
__version__ = "0.9.2"
__spec__ = "0.4.0"
class TomlDecodeError(Exception):
pass