From 6102d28307a3efe75f1d9cb6b317c37eaa0d0907 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Wed, 3 May 2017 22:48:25 -0400 Subject: [PATCH] "Dual Object Notation" -> "Twofold Object Notation" --- README.rst | 3 +-- setup.py | 4 ++-- test_binary.py | 2 +- test_string.py | 2 +- test_tags.py | 2 +- {don => ton}/__init__.py | 3 +-- {don => ton}/_shared.py | 2 +- {don => ton}/binary.py | 2 +- {don => ton}/string.py | 2 +- {don => ton}/tags.py | 0 10 files changed, 10 insertions(+), 12 deletions(-) rename {don => ton}/__init__.py (80%) rename {don => ton}/_shared.py (91%) rename {don => ton}/binary.py (99%) rename {don => ton}/string.py (99%) rename {don => ton}/tags.py (100%) diff --git a/README.rst b/README.rst index 809a325..4a841d6 100644 --- a/README.rst +++ b/README.rst @@ -1,2 +1 @@ -# don -Dual Object Notation +# TON: Twofold Object Notation diff --git a/setup.py b/setup.py index 158bf7a..01dffee 100644 --- a/setup.py +++ b/setup.py @@ -9,11 +9,11 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( - name='don', + name='ton', version='0.0.1', description='A dual-format serialization library and reference implementation for Dual Object Notation', long_description=long_description, - url='https://github.com/kerkeslager/don', + url='https://github.com/kerkeslager/ton', author='David Kerkeslager', author_email='', license='GPL-3.0', diff --git a/test_binary.py b/test_binary.py index b75a3d7..932a030 100644 --- a/test_binary.py +++ b/test_binary.py @@ -2,7 +2,7 @@ import collections import unittest -from don import binary, tags +from ton import binary, tags class TestBinarySerialize(unittest.TestCase): def test_serializes_null(self): diff --git a/test_string.py b/test_string.py index 3a74fdb..7d235de 100644 --- a/test_string.py +++ b/test_string.py @@ -1,7 +1,7 @@ import collections import unittest -from don import string, tags +from ton import string, tags class TestStringSerialize(unittest.TestCase): def test_serializes_null(self): diff --git a/test_tags.py b/test_tags.py index ef48a37..a6afcaf 100644 --- a/test_tags.py +++ b/test_tags.py @@ -1,7 +1,7 @@ import collections import unittest -from don import tags +from ton import tags class AutoTagTests(unittest.TestCase): def test_autotags_void(self): diff --git a/don/__init__.py b/ton/__init__.py similarity index 80% rename from don/__init__.py rename to ton/__init__.py index 6fa0d33..157ec10 100644 --- a/don/__init__.py +++ b/ton/__init__.py @@ -1,8 +1,7 @@ import collections import struct -from don import binary -from don import string +from ton import binary, string def binary_to_string(b): return string.serialize(binary.deserialize(b)) diff --git a/don/_shared.py b/ton/_shared.py similarity index 91% rename from don/_shared.py rename to ton/_shared.py index 9ce9ca4..c0ce786 100644 --- a/don/_shared.py +++ b/ton/_shared.py @@ -1,6 +1,6 @@ import collections -from don import tags +from ton import tags ParseResult = collections.namedtuple( 'ParseResult', diff --git a/don/binary.py b/ton/binary.py similarity index 99% rename from don/binary.py rename to ton/binary.py index 79bdff2..08f541a 100644 --- a/don/binary.py +++ b/ton/binary.py @@ -1,7 +1,7 @@ import collections import struct -from don import tags, _shared +from ton import tags, _shared def _binary_serialize_tag_only_type(o): return b'' diff --git a/don/string.py b/ton/string.py similarity index 99% rename from don/string.py rename to ton/string.py index a65a260..7cec429 100644 --- a/don/string.py +++ b/ton/string.py @@ -3,7 +3,7 @@ import collections import functools import re -from don import tags, _shared +from ton import tags, _shared def _integer_size_to_string_serializer(integer_size): minimum = -(2 ** (integer_size - 1)) diff --git a/don/tags.py b/ton/tags.py similarity index 100% rename from don/tags.py rename to ton/tags.py -- 2.20.1