kevinjqliu opened a new pull request, #534: URL: https://github.com/apache/iceberg-python/pull/534
Resolve dependency errors found by `deptry` (added in #528). From 27 -> 17 errors * `botocore` (4 errors) * `typing_extensions` (5 errors) * `pydantic_core` (1 error) Deptry run before: ``` (venv) ➜ iceberg-python git:(main) deptry . Assuming the corresponding module name of package 'python-snappy' is 'python_snappy'. Install the package or configure a package_module_name_map entry to override this behaviour. Scanning 69 files... build-module.py:26:12: DEP004 'Cython' imported but declared as a dev dependency build-module.py:27:5: DEP004 'Cython' imported but declared as a dev dependency build-module.py:28:5: DEP003 'setuptools' imported but it is a transitive dependency build-module.py:29:5: DEP003 'setuptools' imported but it is a transitive dependency dev/provision.py:18:1: DEP004 'pyspark' imported but declared as a dev dependency dev/provision.py:19:1: DEP004 'pyspark' imported but declared as a dev dependency mkdocs/gen_doc_stubs.py:20:8: DEP001 'griffe' imported but missing from the dependency definitions mkdocs/gen_doc_stubs.py:21:8: DEP001 'mkdocs_gen_files' imported but missing from the dependency definitions vendor/hive_metastore/ThriftHiveMetastore.py:28:8: DEP001 'fb303' imported but missing from the dependency definitions pyiceberg/avro/codecs/snappy_codec.py:27:12: DEP001 'snappy' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:33:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:34:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:50:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:51:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/catalog/rest.py:418:9: DEP003 'botocore' imported but it is a transitive dependency pyiceberg/catalog/rest.py:419:9: DEP003 'botocore' imported but it is a transitive dependency pyiceberg/io/fsspec.py:33:1: DEP003 'botocore' imported but it is a transitive dependency pyiceberg/io/fsspec.py:34:1: DEP003 'botocore' imported but it is a transitive dependency pyiceberg/io/pyarrow.py:57:8: DEP003 'numpy' imported but it is a transitive dependency pyiceberg/partitioning.py:41:1: DEP004 'typing_extensions' imported but declared as a dev dependency pyiceberg/table/__init__.py:48:1: DEP004 'typing_extensions' imported but declared as a dev dependency pyiceberg/table/metadata.py:33:1: DEP004 'typing_extensions' imported but declared as a dev dependency pyiceberg/table/refs.py:21:1: DEP004 'typing_extensions' imported but declared as a dev dependency pyiceberg/table/sorting.py:35:1: DEP004 'typing_extensions' imported but declared as a dev dependency pyiceberg/types.py:53:1: DEP003 'pydantic_core' imported but it is a transitive dependency pyproject.toml: DEP002 'python-snappy' defined as a dependency but not used in the codebase pyproject.toml: DEP002 'psycopg2-binary' defined as a dependency but not used in the codebase Found 27 dependency issues. For more information, see the documentation: https://fpgmaas.github.io/deptry/ ``` Deptry run after: ``` (venv) ➜ iceberg-python git:(kevinjqliu/deptry) deptry . Assuming the corresponding module name of package 'python-snappy' is 'python_snappy'. Install the package or configure a package_module_name_map entry to override this behaviour. Scanning 69 files... build-module.py:26:12: DEP004 'Cython' imported but declared as a dev dependency build-module.py:27:5: DEP004 'Cython' imported but declared as a dev dependency build-module.py:28:5: DEP003 'setuptools' imported but it is a transitive dependency build-module.py:29:5: DEP003 'setuptools' imported but it is a transitive dependency dev/provision.py:18:1: DEP004 'pyspark' imported but declared as a dev dependency dev/provision.py:19:1: DEP004 'pyspark' imported but declared as a dev dependency mkdocs/gen_doc_stubs.py:20:8: DEP001 'griffe' imported but missing from the dependency definitions mkdocs/gen_doc_stubs.py:21:8: DEP001 'mkdocs_gen_files' imported but missing from the dependency definitions pyiceberg/avro/codecs/snappy_codec.py:27:12: DEP001 'snappy' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:33:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:34:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:50:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/catalog/hive.py:51:1: DEP001 'hive_metastore' imported but missing from the dependency definitions pyiceberg/io/pyarrow.py:57:8: DEP003 'numpy' imported but it is a transitive dependency pyproject.toml: DEP002 'python-snappy' defined as a dependency but not used in the codebase pyproject.toml: DEP002 'psycopg2-binary' defined as a dependency but not used in the codebase vendor/hive_metastore/ThriftHiveMetastore.py:28:8: DEP001 'fb303' imported but missing from the dependency definitions Found 17 dependency issues. For more information, see the documentation: https://fpgmaas.github.io/deptry/ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org