leveldir

Multi-level directory structure data stores in python3
git clone git://git.defalsify.org/python-leveldir.git
Log | Files | Refs | LICENSE

commit ec7301333f436eea1f5ebd532f7cbc31021e0b0c
parent a40e057fbae58ad1716b601369592eba2aa53956
Author: nolash <dev@holbrook.no>
Date:   Sun, 27 Jun 2021 09:57:12 +0200

Rename module to leveldir

Diffstat:
ACHANGELOG | 3+++
Rhexdir/__init__.py -> leveldir/__init__.py | 0
Rhexdir/base.py -> leveldir/base.py | 0
Rhexdir/hex.py -> leveldir/hex.py | 0
Rhexdir/numeric.py -> leveldir/numeric.py | 0
Msetup.cfg | 6+++---
Mtests/test_hexdir.py | 2+-
Mtests/test_numdir.py | 10++++++----
8 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -0,0 +1,3 @@ +- 0.0.1 + * add hexdir + * add numdir diff --git a/hexdir/__init__.py b/leveldir/__init__.py diff --git a/hexdir/base.py b/leveldir/base.py diff --git a/hexdir/hex.py b/leveldir/hex.py diff --git a/hexdir/numeric.py b/leveldir/numeric.py diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] -name = hexdir -version = 0.0.1a1 +name = leveldir +version = 0.0.1a2 description = Create multi-level directory structures for hex filename repositories author = Louis Holbrook author_email = dev@holbrook.no @@ -25,4 +25,4 @@ licence_files = [options] python_requires = >= 3.6 packages = - hexdir + leveldir diff --git a/tests/test_hexdir.py b/tests/test_hexdir.py @@ -6,7 +6,7 @@ import logging import os # local imports -from hexdir.hex import HexDir +from leveldir.hex import HexDir logging.basicConfig(level=logging.DEBUG) logg = logging.getLogger() diff --git a/tests/test_numdir.py b/tests/test_numdir.py @@ -6,7 +6,7 @@ import logging import os # local imports -from hexdir.numeric import NumDir +from leveldir.numeric import NumDir logging.basicConfig(level=logging.DEBUG) @@ -19,9 +19,11 @@ class NumDirTest(unittest.TestCase): def setUp(self): self.dir = tempfile.mkdtemp() -# def tearDown(self): -# shutil.rmtree(self.dir) -# logg.debug('cleaned numdir root {}'.format(self.dir)) + + def tearDown(self): + shutil.rmtree(self.dir) + logg.debug('cleaned numdir root {}'.format(self.dir)) + def test_path(self): self.numdir = NumDir(os.path.join(self.dir, 'n'), [1000, 100])