Skip to content

Commit cc38082

Browse files
committed
Switch to MIT license; prepare for 1.06 PyPi release
1 parent 1ba70a2 commit cc38082

9 files changed

Lines changed: 156 additions & 347 deletions

File tree

Changes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
Revision history for the Python package RiveScript.
22

3+
1.06 Nov 25 2014
4+
- Change package name from python-rivescript to simply rivescript.
5+
- Change from the GPLv2 license to the MIT license.
6+
- Add compatibility with Python 3.
7+
- Add Unicode support for RiveScript documents.
8+
- Prefer the .rive extension for RS documents over the old .rs extension.
9+
- Track filenames and line numbers when parsing RiveScript documents.
10+
- Add Perl object handler example.
11+
- Add current_user() method accessible from inside an object macro.
12+
- Add unit tests.
13+
- Add deparse() function that dumps the active memory state of the bot.
14+
- Add write() method that writes the active memory state back to disk as a
15+
.rive file (uses deparse()).
16+
- Bugfix with substitution placeholders.
17+
- Bugfix with the <input> and <reply> tags.
18+
319
1.01 May 20 2013
420
- Small bugfix in _rot13 that caused crashes under certain circumstances.
521
- Small bugfix regarding the {weight} tag and atomic triggers.

LICENSE

Lines changed: 21 additions & 340 deletions
Large diffs are not rendered by default.

rivescript/__init__.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
#!/usr/bin/env python
2+
23
# pyRiveScript - A RiveScript interpreter written in Python.
34

5+
# The MIT License (MIT)
6+
#
7+
# Copyright (c) 2014 Noah Petherbridge
8+
#
9+
# Permission is hereby granted, free of charge, to any person obtaining a copy
10+
# of this software and associated documentation files (the "Software"), to deal
11+
# in the Software without restriction, including without limitation the rights
12+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
# copies of the Software, and to permit persons to whom the Software is
14+
# furnished to do so, subject to the following conditions:
15+
#
16+
# The above copyright notice and this permission notice shall be included in all
17+
# copies or substantial portions of the Software.
18+
#
19+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
# SOFTWARE.
26+
427
# Python 3 compat
528
from __future__ import print_function
629

@@ -10,12 +33,12 @@
1033
'Noah Petherbridge',
1134
'dinever'
1235
]
13-
__license__ = 'GPL'
36+
__license__ = 'MIT'
1437
__maintainer__ = 'Noah Petherbridge'
1538
__status__ = 'Production'
1639
__docformat__ = 'plaintext'
1740

1841
__all__ = ['rivescript']
19-
__version__ = '1.05'
42+
__version__ = '1.06'
2043

2144
from .rivescript import RiveScript

rivescript/__main__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
#!/usr/bin/env python
22

3+
# The MIT License (MIT)
4+
#
5+
# Copyright (c) 2014 Noah Petherbridge
6+
#
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy
8+
# of this software and associated documentation files (the "Software"), to deal
9+
# in the Software without restriction, including without limitation the rights
10+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
# copies of the Software, and to permit persons to whom the Software is
12+
# furnished to do so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in all
15+
# copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
# SOFTWARE.
24+
325
from __future__ import absolute_import
426

527
"""RiveScript's __main__.py

rivescript/interactive.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
#!/usr/bin/env python
22

3+
# The MIT License (MIT)
4+
#
5+
# Copyright (c) 2014 Noah Petherbridge
6+
#
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy
8+
# of this software and associated documentation files (the "Software"), to deal
9+
# in the Software without restriction, including without limitation the rights
10+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
# copies of the Software, and to permit persons to whom the Software is
12+
# furnished to do so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in all
15+
# copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
# SOFTWARE.
24+
325
from __future__ import print_function
426

527
"""interactive.py: RiveScript's built-in interactive mode.

rivescript/python.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
#!/usr/bin/env python
22

3+
# The MIT License (MIT)
4+
#
5+
# Copyright (c) 2014 Noah Petherbridge
6+
#
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy
8+
# of this software and associated documentation files (the "Software"), to deal
9+
# in the Software without restriction, including without limitation the rights
10+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
# copies of the Software, and to permit persons to whom the Software is
12+
# furnished to do so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in all
15+
# copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
# SOFTWARE.
24+
325
# Python3 compat
426
from __future__ import print_function
527

rivescript/rivescript.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
#!/usr/bin/env python
22

3+
# The MIT License (MIT)
4+
#
5+
# Copyright (c) 2014 Noah Petherbridge
6+
#
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy
8+
# of this software and associated documentation files (the "Software"), to deal
9+
# in the Software without restriction, including without limitation the rights
10+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
# copies of the Software, and to permit persons to whom the Software is
12+
# furnished to do so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in all
15+
# copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
# SOFTWARE.
24+
325
import sys
426
import os
5-
import glob
627
import re
728
import string
829
import random

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ doc_files = README.md
77
docs/
88
eg/
99
example.py
10+
example3.py

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44
from setuptools import setup
55

66
setup(
7-
name = 'python-rivescript',
7+
name = 'rivescript',
88
version = rivescript.__version__,
99
description = 'A Chatterbot Scripting Language',
1010
long_description = 'A scripting language to make it easy to write responses for a chatterbot.',
1111
author = 'Noah Petherbridge',
1212
author_email = '[email protected]',
1313
url = 'https://github.com/kirsle/rivescript-python',
14-
license = 'Dual licensed; GPLv2',
14+
license = 'MIT',
1515
packages = ['rivescript'],
16-
keywords = 'bot chatbot chatterbot ai aiml chatscript buddyscript',
16+
keywords = ['bot', 'chatbot', 'chatterbot', 'ai', 'aiml',
17+
'chatscript', 'buddyscript'],
1718
classifiers = [
18-
'License :: OSI Approved :: GNU General Public License (GPL)',
19+
'License :: OSI Approved :: MIT License',
1920
'Programming Language :: Python',
2021
'Development Status :: 5 - Production/Stable',
2122
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)