From 1fb1e0d0bf50f61c10746b0c14e6c6922c5de914 Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Fri, 20 Jun 2025 20:33:37 +0200 Subject: [PATCH 1/2] chore: rename package --- pyproject.toml | 2 +- src/{byteb4rb1e_utils => byteb4rb1e/utils}/collections.py | 0 src/{byteb4rb1e_utils => byteb4rb1e/utils}/http/__init__.py | 0 .../utils}/http/server/__init__.py | 2 +- .../utils}/http/server/__main__.py | 4 ++-- src/{byteb4rb1e_utils => byteb4rb1e/utils}/io/__init__.py | 0 src/{byteb4rb1e_utils => byteb4rb1e/utils}/string.py | 0 tests/unit/{byteb4rb1e_utils => byteb4rb1e/utils}/__init__.py | 0 .../utils}/collections/test_circular_buffer.py | 2 +- .../utils}/io/test_chunksio.py | 2 +- .../utils}/string/test_rolling_hash.py | 2 +- 11 files changed, 7 insertions(+), 7 deletions(-) rename src/{byteb4rb1e_utils => byteb4rb1e/utils}/collections.py (100%) rename src/{byteb4rb1e_utils => byteb4rb1e/utils}/http/__init__.py (100%) rename src/{byteb4rb1e_utils => byteb4rb1e/utils}/http/server/__init__.py (99%) rename src/{byteb4rb1e_utils => byteb4rb1e/utils}/http/server/__main__.py (96%) rename src/{byteb4rb1e_utils => byteb4rb1e/utils}/io/__init__.py (100%) rename src/{byteb4rb1e_utils => byteb4rb1e/utils}/string.py (100%) rename tests/unit/{byteb4rb1e_utils => byteb4rb1e/utils}/__init__.py (100%) rename tests/unit/{byteb4rb1e_utils => byteb4rb1e/utils}/collections/test_circular_buffer.py (98%) rename tests/unit/{byteb4rb1e_utils => byteb4rb1e/utils}/io/test_chunksio.py (99%) rename tests/unit/{byteb4rb1e_utils => byteb4rb1e/utils}/string/test_rolling_hash.py (97%) 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() From fb0c65c6af2dc29c5f823214b1d36c1e7e5437b6 Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Fri, 20 Jun 2025 20:35:11 +0200 Subject: [PATCH 2/2] todo(8): done --- TODO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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