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

python: ttfautohint: Python 3.12 support #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/python/ttfautohint/_version.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
try:
from pkg_resources import get_distribution, DistributionNotFound
__version__ = get_distribution("ttfautohint-py").version
except (ImportError, DistributionNotFound):
# either pkg_resources is missing or package is not installed
import warnings
warnings.warn(
"'ttfautohint-py' is missing the required distribution metadata. "
"Please make sure it was installed correctly.", UserWarning,
stacklevel=2)
__version__ = "0.0.0"
from importlib import metadata

__version__ = metadata.version("ttfautohint-py")