diff --git a/bindings/python/MANIFEST.in b/bindings/python/MANIFEST.in new file mode 100644 index 00000000..4bb7b618 --- /dev/null +++ b/bindings/python/MANIFEST.in @@ -0,0 +1,27 @@ +include README.md +include CHANGELOG.md +include CONTRIBUTING.md +include LICENSE +include THIRD-PARTY-NOTICES +include *.sh +include pyproject.toml +include tox.ini + +exclude RELEASE.md +exclude asv.conf.json + +graft pymongoarrow + +recursive-include test * +recursive-exclude docs * +recursive-exclude benchmarks * + +global-exclude *.cpp +global-exclude *.dylib +global-exclude *.so.* +global-exclude *.so +global-exclude *.dll +global-exclude *.pyd +global-exclude *.pyc +global-exclude .git* +global-exclude .DS_Store diff --git a/bindings/python/test/test_polars.py b/bindings/python/test/test_polars.py index 7ca8dc7f..10a84f62 100644 --- a/bindings/python/test/test_polars.py +++ b/bindings/python/test/test_polars.py @@ -255,17 +255,17 @@ def test_exceptions_for_unsupported_polar_types(self): Tracks future changes in any packages. """ - # Series: PyMongoError does not support + # Series: PyMongoError does not support. with self.assertRaises(ValueError) as exc: pls = pl.Series(values=range(2)) write(self.coll, pls) self.assertTrue("Invalid tabular data object" in exc.exception.args[0]) - # Polars has an Object Type, similar in concept to Pandas + # Polars has an Object Type, similar in concept to Pandas. PyMongoError does not support them. class MyObject: pass - with self.assertRaises(pl.exceptions.PanicException) as exc: + with self.assertRaises(ValueError) as exc: df_in = pl.DataFrame(data=[MyObject()] * 2) write(self.coll, df_in)