Skip to content

Commit

Permalink
PYTHON-4452 [backport] Fix setuptools version metadata (#816)
Browse files Browse the repository at this point in the history
PYTHON-4452 Fix setuptools version metadata (#812)

* Fix setuptools dynamic version

* debug

* use str()

(cherry picked from commit 7f396b8)
  • Loading branch information
blink1073 authored May 24, 2024
1 parent 3cf9abd commit 46244c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bindings/python/pymongocrypt/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,8 +1440,8 @@ def __getattr__(self, name):
lib = ffi.dlopen(_PYMONGOCRYPT_LIB)
else:
try:
lib = ffi.dlopen(_path)
except OSError as exc:
lib = ffi.dlopen(str(_path))
except OSError:
# Fallback to libmongocrypt installed on the system.
lib = ffi.dlopen('mongocrypt')
except OSError as exc:
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies = [
Homepage = "https://github.com/mongodb/libmongocrypt/tree/master/bindings/python"

[tool.setuptools.dynamic]
version = {attr = "pymongocrypt/version.__version__"}
version = {attr = "pymongocrypt.version.__version__"}

[tool.setuptools.packages.find]
include = ["pymongocrypt"]
Expand Down

0 comments on commit 46244c1

Please sign in to comment.