diff --git a/python/pyproject.toml b/python/pyproject.toml index a3dbca59c475..c34ab710038e 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -109,6 +109,10 @@ markers = [ "s3: marks a test as requiring access to s3 compliant storage (use with --aws-access-key-id, --aws-secret-access-key, and --endpoint-url args)", "adlfs: marks a test as requiring access to adlfs compliant storage (use with --adlfs.account-name, --adlfs.account-key, and --adlfs.endpoint args)" ] +# Turns an warning into an error +filterwarnings = [ + "error" +] [tool.black] line-length = 130 diff --git a/python/release-announcement-email.txt b/python/release-announcement-email.txt new file mode 100644 index 000000000000..04130702f4fd --- /dev/null +++ b/python/release-announcement-email.txt @@ -0,0 +1,32 @@ +To: dev@iceberg.apache.org +Subject: [VOTE] Release Apache PyIceberg +Hi Everyone, + +I propose that we release the following RC as the official PyIceberg release. + +The commit ID is + +* This corresponds to the tag: () +* https://github.com/apache/iceberg/releases/tag/ +* https://github.com/apache/iceberg/tree/ + +The release tarball, signature, and checksums are here: + +* https://dist.apache.org/repos/dist/dev/iceberg/pyiceberg-/ + +You can find the KEYS file here: + +* https://dist.apache.org/repos/dist/dev/iceberg/KEYS + +Convenience binary artifacts are staged on pypi: + +https://pypi.org/project/pyiceberg// + +And can be installed using: pip3 install pyiceberg== + +Please download, verify, and test. + +Please vote in the next 72 hours. +[ ] +1 Release this as PyIceberg +[ ] +0 +[ ] -1 Do not release this because... diff --git a/python/tests/catalog/test_glue.py b/python/tests/catalog/test_glue.py index af12435415b2..b786c9283ada 100644 --- a/python/tests/catalog/test_glue.py +++ b/python/tests/catalog/test_glue.py @@ -67,7 +67,18 @@ def get_random_databases(n: int) -> Set[str]: @pytest.fixture(name="_bucket_initialize") def fixture_s3_bucket(_s3) -> None: # type: ignore - _s3.create_bucket(Bucket=BUCKET_NAME) + bucket = _s3.create_bucket(Bucket=BUCKET_NAME) + yield bucket + + response = _s3.list_objects_v2( + Bucket=BUCKET_NAME, + ) + while response["KeyCount"] > 0: + _s3.delete_objects(Bucket=BUCKET_NAME, Delete={"Objects": [{"Key": obj["Key"]} for obj in response["Contents"]]}) + response = _s3.list_objects_v2( + Bucket=BUCKET_NAME, + ) + _s3.delete_bucket(Bucket=BUCKET_NAME) @mock_glue diff --git a/python/tests/test_transforms.py b/python/tests/test_transforms.py index 8ba80e396b95..3675ef0a8268 100644 --- a/python/tests/test_transforms.py +++ b/python/tests/test_transforms.py @@ -422,6 +422,7 @@ def test_void_transform() -> None: class TestType(IcebergBaseModel): __root__: Transform[Any, Any] + __test__ = False def test_bucket_transform_serialize() -> None: