Skip to content

Commit

Permalink
Merge pull request #777 from clokep/no-setuptools
Browse files Browse the repository at this point in the history
Do not depend on pkg_resources/setuptools, prefer native modules.
  • Loading branch information
dgraeber authored Jan 23, 2025
2 parents 4dc1cff + fc28e0b commit e9b803a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Ch
### Changes

### Fixes
- No longer depends on the `pkg_resources` module being available from the setuptools package.


## v6.0.0 (2025-01-21)
Expand Down
4 changes: 2 additions & 2 deletions seedfarmer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import logging
import os
import pathlib
from importlib.metadata import distribution
from typing import Any, Dict, Optional, cast

import pkg_resources
import yaml
from aws_codeseeder import LOGGER, codeseeder
from aws_codeseeder.codeseeder import CodeSeederConfig
Expand All @@ -30,7 +30,7 @@

_logger: logging.Logger = logging.getLogger(__name__)
__all__ = ["__description__", "__license__", "__title__"]
__version__: str = pkg_resources.get_distribution(__title__).version
__version__: str = distribution(__title__).version

DEBUG_LOGGING_FORMAT = "[%(asctime)s][%(filename)-13s:%(lineno)3d] %(message)s"
INFO_LOGGING_FORMAT = "[%(asctime)s | %(levelname)s | %(filename)-13s:%(lineno)3d | %(threadName)s ] %(message)s"
Expand Down

0 comments on commit e9b803a

Please sign in to comment.