Skip to content

Commit

Permalink
Bump version to 0.8.0 (#345)
Browse files Browse the repository at this point in the history
* Bump to version 0.8.0

* Remove 3.7 specific code
  • Loading branch information
yuval9313 authored Nov 10, 2024
1 parent d70680b commit 7d37e44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
26 changes: 7 additions & 19 deletions fastapi_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
import sys
import importlib.metadata
import warnings

from .cbv_base import Api, Resource, set_responses, take_init_parameters

if sys.version_info.minor < 8:
import pkg_resources

try:
__version__ = pkg_resources.get_distribution(__name__).version
except pkg_resources.DistributionNotFound as e:
warnings.warn(f"Could not determine version of {__name__}", stacklevel=1)
warnings.warn(str(e), stacklevel=1)
__version__ = "unknown"
else:
import importlib.metadata

try:
__version__ = importlib.metadata.version(__name__)
except importlib.metadata.PackageNotFoundError as e:
warnings.warn(f"Could not determine version of {__name__}", stacklevel=1)
warnings.warn(str(e), stacklevel=1)
__version__ = "unknown"
try:
__version__ = "0.8.0"
except importlib.metadata.PackageNotFoundError as e:
warnings.warn(f"Could not determine version of {__name__}", stacklevel=1)
warnings.warn(str(e), stacklevel=1)
__version__ = "0.8.0"


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fastapi-utils"
version = "0.7.0"
version = "0.8.0"
description = "Reusable utilities for FastAPI"
license = "MIT"
authors = ["Yuval Levi <[email protected]>", "David Montague <[email protected]>"]
Expand Down

0 comments on commit 7d37e44

Please sign in to comment.