Skip to content

Commit

Permalink
With the recent integration of setuptools_scm, some extra build steps…
Browse files Browse the repository at this point in the history
… would be needed to get the library to work. This commit throws a warning rather than a ModuleNotFoundError
  • Loading branch information
tobixen committed Dec 26, 2023
1 parent 4daf65f commit f402b66
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion caldav/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/usr/bin/env python
import logging

from ._version import __version__
try:
from ._version import __version__
except ModuleNotFoundError:
__version__ = "(unknown)"
import warnings

warnings.warn(
"You need to install the `build` package and do a `python -m build` to get caldav.__version__ set correctly"
)
from .davclient import DAVClient

# Silence notification of no default logging handler
Expand Down

0 comments on commit f402b66

Please sign in to comment.