Skip to content

Commit

Permalink
Refactor version retrieval logic
Browse files Browse the repository at this point in the history
The code changes remove unnecessary imports and modify the way the version is retrieved from a TOML file.
  • Loading branch information
cblack34 committed Jul 18, 2023
1 parent 8447ef7 commit d3beb98
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sqlalchemy_crud/__init__.py
@@ -1,8 +0,0 @@
import toml
from pathlib import Path

toml_path = Path(__file__).parent.parent / "pyproject.toml"
with open(toml_path, "r") as f:
pyprojectToml = toml.load(f)

__version__ = pyprojectToml["tool"]["poetry"]["version"]

0 comments on commit d3beb98

Please sign in to comment.