-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: update module import paths and version bump
- Changed import path from `h3result.cffi` to `h3result._cffi` in `build_ext.py`, `error.py`, `h3result.py`, and `read_h3result.py`. - Added import of `_cffi_backend` in `__init__.py` to ensure compatibility with PyInstaller. - Updated `cffi` dependency version in `pyproject.toml` to "^1.17". - Bumped package version to "1.0.2" in `pyproject.toml`. These changes were made to resolve potential import issues and ensure the package is up-to-date with dependency requirements. Import path adjustments improve modular access and compatibility, while the version change indicates enhancements without breaking changes.
- Loading branch information
Showing
6 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Let PyInstaller and others know that we need cffi_backend. | ||
import _cffi_backend # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from h3result.cffi import ffi, lib | ||
from h3result._cffi import ffi, lib | ||
|
||
__all__ = ["H3ResultError"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "h3result" | ||
version = "1.0.1" | ||
version = "1.0.2" | ||
description = "Python wrapper for h3result library." | ||
authors = ["Danilo Horta <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -14,7 +14,7 @@ include = [ | |
] | ||
|
||
[tool.poetry.dependencies] | ||
cffi = "^1.16" | ||
cffi = "^1.17" | ||
python = "^3.9" | ||
|
||
[tool.poetry.build] | ||
|