From f420141a907fcd91924c0b0755dbbbe044078009 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 7 Jun 2024 09:09:09 -0500 Subject: [PATCH] lint --- bindings/python/hatch_build.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bindings/python/hatch_build.py b/bindings/python/hatch_build.py index cac065546..1ea6c29cd 100644 --- a/bindings/python/hatch_build.py +++ b/bindings/python/hatch_build.py @@ -1,5 +1,6 @@ """A custom hatch build hook for pymongo.""" from __future__ import annotations + import os import sys from pathlib import Path @@ -17,15 +18,15 @@ def initialize(self, version, build_data): # Ensure wheel is marked as binary. # On linux, we use auditwheel to set the name. - if sys.platform == 'darwin': - os.environ['MACOSX_DEPLOYMENT_TARGET'] = '11.0' + if sys.platform == "darwin": + os.environ["MACOSX_DEPLOYMENT_TARGET"] = "11.0" build_data["tag"] = "py3-none-macosx_11_0_universal2" patt = ".dylib" - elif os.name == 'nt': + elif os.name == "nt": build_data["tag"] = "py3-none-win_amd64" patt = ".dll" else: - patt = '.so' + patt = ".so" here = Path(__file__).parent.resolve() dpath = here / "pymongocrypt"