Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test update, ruff checks, deprecations warnings and import checks. #190

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
19 changes: 18 additions & 1 deletion cjio/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
__version__ = '0.9.0'
__version__ = "0.9.0"
import importlib


loader = importlib.util.find_spec("triangle")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The imports are all checked in this file and in the test of the software the consts are imported from here.

MODULE_TRIANGLE_AVAILABLE = loader is not None

loader = importlib.util.find_spec("mapbox_earcut")
MODULE_EARCUT_AVAILABLE = loader is not None

loader = importlib.util.find_spec("pyproj")
MODULE_PYPROJ_AVAILABLE = loader is not None

loader = importlib.util.find_spec("pandas")
MODULE_PANDAS_AVAILABLE = loader is not None

loader = importlib.util.find_spec("cjvalpy")
MODULE_CJVAL_AVAILABLE = loader is not None
Loading