Skip to content

Commit

Permalink
went back to manual versioning to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kuffmode committed Mar 20, 2024
1 parent e34d499 commit f5f87db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
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 = "yanat"
version = "0.0.8"
version = "0.0.9"
description = "Yet Another Network Analysis Toolbox"
authors = ["Kayson Fakhar, Shrey Dixit"]
license = "MIT"
Expand Down
15 changes: 3 additions & 12 deletions yanat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
from yanat import core
from yanat import utils
import toml
import os
from yanat import core, utils

package_dir = os.path.abspath(os.path.dirname(__file__))
pyproject_path = os.path.join(package_dir, "..", "pyproject.toml")

try:
__version__ = toml.load(pyproject_path)["tool"]["poetry"]["version"]
except Exception as e:
__version__ = "unknown"
print(f"Warning: Could not load version from pyproject.toml: {e}")
__all__ = ['core', 'utils']
__version__ = '0.0.9'

0 comments on commit f5f87db

Please sign in to comment.