diff --git a/TODO b/TODO index ae2d7f6..d762bd5 100644 --- a/TODO +++ b/TODO @@ -135,7 +135,7 @@ Description: copy the testing environment setup from ID: 8 Type: bugfix Title: rename package -Status: in-progress +Status: done Priority: high Created: 2025-06-20 Description: use dot namespaces to make the package a little more elegant diff --git a/pyproject.toml b/pyproject.toml index b5fcdb7..fd23512 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ requires = [ build-backend = "setuptools.build_meta" [project] -name = "byteb4rb1e-utils" +name = "byteb4rb1e.utils" description = "personal utilities and helpers" authors = [ { name = "Tiara Rodney", email = "tiara.rodney@administratrix.de" } diff --git a/src/byteb4rb1e_utils/collections.py b/src/byteb4rb1e/utils/collections.py similarity index 100% rename from src/byteb4rb1e_utils/collections.py rename to src/byteb4rb1e/utils/collections.py diff --git a/src/byteb4rb1e_utils/http/__init__.py b/src/byteb4rb1e/utils/http/__init__.py similarity index 100% rename from src/byteb4rb1e_utils/http/__init__.py rename to src/byteb4rb1e/utils/http/__init__.py diff --git a/src/byteb4rb1e_utils/http/server/__init__.py b/src/byteb4rb1e/utils/http/server/__init__.py similarity index 99% rename from src/byteb4rb1e_utils/http/server/__init__.py rename to src/byteb4rb1e/utils/http/server/__init__.py index c1f6186..2486612 100644 --- a/src/byteb4rb1e_utils/http/server/__init__.py +++ b/src/byteb4rb1e/utils/http/server/__init__.py @@ -1,7 +1,7 @@ from dataclasses import dataclass from http.server import SimpleHTTPRequestHandler -from byteb4rb1e_utils.io import ChunksIO +from byteb4rb1e.utils.io import ChunksIO @dataclass diff --git a/src/byteb4rb1e_utils/http/server/__main__.py b/src/byteb4rb1e/utils/http/server/__main__.py similarity index 96% rename from src/byteb4rb1e_utils/http/server/__main__.py rename to src/byteb4rb1e/utils/http/server/__main__.py index 7bca378..b66bc52 100644 --- a/src/byteb4rb1e_utils/http/server/__main__.py +++ b/src/byteb4rb1e/utils/http/server/__main__.py @@ -8,12 +8,12 @@ from http.server import HTTPServer from io import BytesIO, IOBase from typing import Optional, Tuple, List -from byteb4rb1e_utils.http.server import ( +from byteb4rb1e.utils.http.server import ( HandlerOptions, MultipartUploadHandler, ServerOptions, ) -from byteb4rb1e_utils.io import ChunksIO +from byteb4rb1e.utils.io import ChunksIO __doc__ = """tsmuds - Tiara's Simple Multipart Upload Debugging Server diff --git a/src/byteb4rb1e_utils/io/__init__.py b/src/byteb4rb1e/utils/io/__init__.py similarity index 100% rename from src/byteb4rb1e_utils/io/__init__.py rename to src/byteb4rb1e/utils/io/__init__.py diff --git a/src/byteb4rb1e_utils/string.py b/src/byteb4rb1e/utils/string.py similarity index 100% rename from src/byteb4rb1e_utils/string.py rename to src/byteb4rb1e/utils/string.py diff --git a/tests/unit/byteb4rb1e_utils/__init__.py b/tests/unit/byteb4rb1e/utils/__init__.py similarity index 100% rename from tests/unit/byteb4rb1e_utils/__init__.py rename to tests/unit/byteb4rb1e/utils/__init__.py diff --git a/tests/unit/byteb4rb1e_utils/collections/test_circular_buffer.py b/tests/unit/byteb4rb1e/utils/collections/test_circular_buffer.py similarity index 98% rename from tests/unit/byteb4rb1e_utils/collections/test_circular_buffer.py rename to tests/unit/byteb4rb1e/utils/collections/test_circular_buffer.py index aeb0934..1baf601 100644 --- a/tests/unit/byteb4rb1e_utils/collections/test_circular_buffer.py +++ b/tests/unit/byteb4rb1e/utils/collections/test_circular_buffer.py @@ -1,6 +1,6 @@ import unittest -from byteb4rb1e_utils.collections import CircularBuffer +from byteb4rb1e.utils.collections import CircularBuffer class test_init(unittest.TestCase): """CircularBuffer.__init__()""" diff --git a/tests/unit/byteb4rb1e_utils/io/test_chunksio.py b/tests/unit/byteb4rb1e/utils/io/test_chunksio.py similarity index 99% rename from tests/unit/byteb4rb1e_utils/io/test_chunksio.py rename to tests/unit/byteb4rb1e/utils/io/test_chunksio.py index 4218d69..a27f20f 100644 --- a/tests/unit/byteb4rb1e_utils/io/test_chunksio.py +++ b/tests/unit/byteb4rb1e/utils/io/test_chunksio.py @@ -1,7 +1,7 @@ from io import BytesIO, IOBase import unittest -from byteb4rb1e_utils.io import ChunksIO +from byteb4rb1e.utils.io import ChunksIO class TestGetChunkSize(unittest.TestCase): diff --git a/tests/unit/byteb4rb1e_utils/string/test_rolling_hash.py b/tests/unit/byteb4rb1e/utils/string/test_rolling_hash.py similarity index 97% rename from tests/unit/byteb4rb1e_utils/string/test_rolling_hash.py rename to tests/unit/byteb4rb1e/utils/string/test_rolling_hash.py index 52c146a..590f527 100644 --- a/tests/unit/byteb4rb1e_utils/string/test_rolling_hash.py +++ b/tests/unit/byteb4rb1e/utils/string/test_rolling_hash.py @@ -1,6 +1,6 @@ import unittest -from byteb4rb1e_utils.string import RollingHash +from byteb4rb1e.utils.string import RollingHash class test_compute_initial_hash(unittest.TestCase): """RollingHash.compute_initial_hash()