Skip to content

Commit

Permalink
Address #65
Browse files Browse the repository at this point in the history
pyproject.toml file is not distributed, so version extraction was
failing on package distributions.
  • Loading branch information
bricoletc committed Sep 9, 2020
1 parent 25c046b commit e2d2f86
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions snakefmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from pathlib import Path
from importlib import metadata

import toml

project_fpath = Path(__file__).parent.parent / "pyproject.toml"
__version__ = toml.load(project_fpath)["tool"]["poetry"]["version"]
# Fetches version from distribution metadata files deriving from pyproject.toml
__version__ = metadata.version("snakefmt")

DEFAULT_LINE_LENGTH = 88

0 comments on commit e2d2f86

Please sign in to comment.