Skip to content

Commit

Permalink
fix: no pyproject in the installed library
Browse files Browse the repository at this point in the history
  • Loading branch information
dovahcrow committed Mar 20, 2020
1 parent bfc717f commit b7b83ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ release version:

echo "Creating release commit"
git add pyproject.toml
git commit -a -m "v${to_version}"
semantic-release version --{{version}}

echo "Merge release/v${to_version} to master & develop"
git checkout master
Expand Down
12 changes: 1 addition & 11 deletions dataprep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,4 @@

logging.basicConfig(level=logging.INFO, format="%(message)s")


def get_version() -> str:
"""
Get the library version from pyproject.toml
"""
path = Path(__file__).resolve().parents[1] / "pyproject.toml"
pyproject = toml.loads(open(str(path)).read())
return cast(str, pyproject["tool"]["poetry"]["version"])


__version__ = get_version()
__version__ = "0.2.0"

0 comments on commit b7b83ac

Please sign in to comment.