Skip to content

Commit

Permalink
Attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
openvmp committed Jan 13, 2024
1 parent 72e3921 commit b881e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions partcad/src/partcad/project_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import json
import logging
import os
import pkg_resources
from importlib.metadata import version
from packaging.specifiers import SpecifierSet
import yaml

Expand Down Expand Up @@ -60,7 +60,7 @@ def __init__(self, import_config_name, config_path=DEFAULT_CONFIG_FILENAME):
# default: None
if "partcad" in self.config_obj:
partcad_requirements = SpecifierSet(self.config_obj["partcad"])
partcad_version = pkg_resources.get_distribution("partcad").version
partcad_version = version("partcad")
if partcad_version not in partcad_requirements:
# TODO(clairbee): add better error and exception handling
raise Exception(
Expand Down

0 comments on commit b881e23

Please sign in to comment.