From 9ef55841d71046ebc15e3d92e6c87e7c771b41ae Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 30 Oct 2023 23:42:44 +0200 Subject: [PATCH] Move `src/tablib/packages/dbfpy` to `src/tablib/_vendor/dbfpy` (#570) --- src/tablib/{packages => _vendor}/__init__.py | 0 src/tablib/{packages => _vendor}/dbfpy/__init__.py | 0 src/tablib/{packages => _vendor}/dbfpy/dbf.py | 0 src/tablib/{packages => _vendor}/dbfpy/dbfnew.py | 0 src/tablib/{packages => _vendor}/dbfpy/fields.py | 0 src/tablib/{packages => _vendor}/dbfpy/header.py | 0 src/tablib/{packages => _vendor}/dbfpy/record.py | 0 src/tablib/{packages => _vendor}/dbfpy/utils.py | 0 src/tablib/formats/_dbf.py | 4 ++-- tests/test_tablib_dbfpy_packages_fields.py | 4 ++-- tests/test_tablib_dbfpy_packages_utils.py | 4 ++-- 11 files changed, 6 insertions(+), 6 deletions(-) rename src/tablib/{packages => _vendor}/__init__.py (100%) rename src/tablib/{packages => _vendor}/dbfpy/__init__.py (100%) rename src/tablib/{packages => _vendor}/dbfpy/dbf.py (100%) rename src/tablib/{packages => _vendor}/dbfpy/dbfnew.py (100%) rename src/tablib/{packages => _vendor}/dbfpy/fields.py (100%) rename src/tablib/{packages => _vendor}/dbfpy/header.py (100%) rename src/tablib/{packages => _vendor}/dbfpy/record.py (100%) rename src/tablib/{packages => _vendor}/dbfpy/utils.py (100%) diff --git a/src/tablib/packages/__init__.py b/src/tablib/_vendor/__init__.py similarity index 100% rename from src/tablib/packages/__init__.py rename to src/tablib/_vendor/__init__.py diff --git a/src/tablib/packages/dbfpy/__init__.py b/src/tablib/_vendor/dbfpy/__init__.py similarity index 100% rename from src/tablib/packages/dbfpy/__init__.py rename to src/tablib/_vendor/dbfpy/__init__.py diff --git a/src/tablib/packages/dbfpy/dbf.py b/src/tablib/_vendor/dbfpy/dbf.py similarity index 100% rename from src/tablib/packages/dbfpy/dbf.py rename to src/tablib/_vendor/dbfpy/dbf.py diff --git a/src/tablib/packages/dbfpy/dbfnew.py b/src/tablib/_vendor/dbfpy/dbfnew.py similarity index 100% rename from src/tablib/packages/dbfpy/dbfnew.py rename to src/tablib/_vendor/dbfpy/dbfnew.py diff --git a/src/tablib/packages/dbfpy/fields.py b/src/tablib/_vendor/dbfpy/fields.py similarity index 100% rename from src/tablib/packages/dbfpy/fields.py rename to src/tablib/_vendor/dbfpy/fields.py diff --git a/src/tablib/packages/dbfpy/header.py b/src/tablib/_vendor/dbfpy/header.py similarity index 100% rename from src/tablib/packages/dbfpy/header.py rename to src/tablib/_vendor/dbfpy/header.py diff --git a/src/tablib/packages/dbfpy/record.py b/src/tablib/_vendor/dbfpy/record.py similarity index 100% rename from src/tablib/packages/dbfpy/record.py rename to src/tablib/_vendor/dbfpy/record.py diff --git a/src/tablib/packages/dbfpy/utils.py b/src/tablib/_vendor/dbfpy/utils.py similarity index 100% rename from src/tablib/packages/dbfpy/utils.py rename to src/tablib/_vendor/dbfpy/utils.py diff --git a/src/tablib/formats/_dbf.py b/src/tablib/formats/_dbf.py index e873866e..831c7bde 100644 --- a/src/tablib/formats/_dbf.py +++ b/src/tablib/formats/_dbf.py @@ -4,8 +4,8 @@ import os import tempfile -from ..packages.dbfpy import dbf, dbfnew -from ..packages.dbfpy import record as dbfrecord +from .._vendor.dbfpy import dbf, dbfnew +from .._vendor.dbfpy import record as dbfrecord class DBFFormat: diff --git a/tests/test_tablib_dbfpy_packages_fields.py b/tests/test_tablib_dbfpy_packages_fields.py index fd397172..aa012276 100644 --- a/tests/test_tablib_dbfpy_packages_fields.py +++ b/tests/test_tablib_dbfpy_packages_fields.py @@ -1,9 +1,9 @@ #!/usr/bin/env python -"""Tests for tablib.packages.dbfpy.""" +"""Tests for tablib._vendor.dbfpy.""" import unittest -from tablib.packages.dbfpy import fields +from tablib._vendor.dbfpy import fields class DbfFieldDefTestCompareCase(unittest.TestCase): diff --git a/tests/test_tablib_dbfpy_packages_utils.py b/tests/test_tablib_dbfpy_packages_utils.py index df88795c..dd98db4b 100644 --- a/tests/test_tablib_dbfpy_packages_utils.py +++ b/tests/test_tablib_dbfpy_packages_utils.py @@ -1,10 +1,10 @@ #!/usr/bin/env python -"""Tests for tablib.packages.dbfpy.""" +"""Tests for tablib._vendor.dbfpy.""" import datetime as dt import unittest -from tablib.packages.dbfpy import utils +from tablib._vendor.dbfpy import utils class UtilsUnzfillTestCase(unittest.TestCase):