diff --git a/setup.cfg b/setup.cfg index a2748f2..0269f4f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,7 +20,7 @@ classifiers = packages = find_namespace: packages_dir = src include_package_data = True -python_requires = >=3.9 +python_requires = >=3.10 install_requires = PyYAML diff --git a/src/sio3pack/__init__.py b/src/sio3pack/__init__.py index a611072..318c17b 100644 --- a/src/sio3pack/__init__.py +++ b/src/sio3pack/__init__.py @@ -1,8 +1,9 @@ -__version__ = "1.0.0.dev4" +__version__ = "1.0.0.dev5" from sio3pack.exceptions import ImproperlyConfigured from sio3pack.files import LocalFile from sio3pack.packages.package import Package +from sio3pack.packages.sinolpack import Sinolpack __all__ = ["from_file", "from_db"] diff --git a/src/sio3pack/packages/sinolpack/model.py b/src/sio3pack/packages/sinolpack/model.py index 23f3885..682e3a0 100644 --- a/src/sio3pack/packages/sinolpack/model.py +++ b/src/sio3pack/packages/sinolpack/model.py @@ -505,10 +505,12 @@ def _process_existing_tests(self): test_id = match.group(1) group = match.group(2) test_ids.add((test_id, group, test_name)) - elif not self.configuration.allow_unrecognized_files: + elif not file.startswith(".") and not self.configuration.allow_unrecognized_files: raise ProcessPackageError( - f"Unrecognized test in {ext} directory: {file}", - f"All files in the {ext} directory should match the pattern: " f"{self._get_test_regex()}.", + f"Unrecognized file in '{ext}' directory: {file}", + f"Unrecognized file in '{ext}' directory ({file}). All files in the {ext} directory " + f"should match the pattern: " + f"{self._get_test_regex()}.", ) # TODO: Sort this properly test_ids = sorted(test_ids)