Skip to content

Commit

Permalink
Use pyproject.toml as the source of truth for version
Browse files Browse the repository at this point in the history
  • Loading branch information
mochipon committed Jul 20, 2021
1 parent e9549e1 commit 3b8f51e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ packages = [
python = ">=3.6.1,<4.0"

typing-extensions = { version = "^3.10.0.0", python = "<3.8" }
importlib-metadata = {version = "^1.0", python = "<3.8"}

pycryptodome = { version = "^3.10.1" }
requests = { version = "^2.25.1" }
Expand Down
6 changes: 5 additions & 1 deletion pysesame3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Top-level package for pysesame3."""
try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
import importlib_metadata # type: ignore

__author__ = """Masaki Tagawa"""
__version__ = "0.4.1"
__version__ = importlib_metadata.version(__name__)

0 comments on commit 3b8f51e

Please sign in to comment.