diff --git a/README.rst b/README.rst index fcbb25a..b9712ac 100644 --- a/README.rst +++ b/README.rst @@ -3,17 +3,15 @@ Python version of SimplePEG To use, simply do:: - >>> import SPEG from simplepeg - >>> parser = s.SPEG() - >>> # will throw Exception if grammar is invalid + >>> from simplepeg import SPEG + >>> parser = SPEG() >>> parser.parse_grammar('GRAMMAR test b -> "a";') - >>> # will throw Exception if text have invalid grammar >>> ast = parser.parse_text('a') >>> print ast.to_json() or:: - >>> import SPEG from simplepeg - >>> parser = s.SPEG() + >>> from simplepeg import SPEG + >>> parser = SPEG() >>> ast = parser.parse('GRAMMAR test b -> "a";', 'a') >>> print ast.to_json() \ No newline at end of file diff --git a/setup.py b/setup.py index 17b867b..be207e6 100644 --- a/setup.py +++ b/setup.py @@ -4,8 +4,11 @@ def readme(): with open('README.rst') as f: return f.read() +with open('LICENSE') as f: + license = f.read() + setup(name='simplepeg', - version='1.0.0', + version='1.0.1', description='Python version of SimplePEG', long_description=readme(), classifiers=[ @@ -18,7 +21,7 @@ def readme(): author='Oleksii Okhrymenko', author_email='ai_boy@live.ru', keywords='peg parser grammar', - license='MIT', + license=license, packages=['simplepeg'], include_package_data=True, zip_safe=False) \ No newline at end of file