Skip to content

Commit

Permalink
Fix __version__ attribute (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed May 31, 2024
1 parent 3a47aa3 commit 579d26d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ dependencies = [
]

[project.urls]
"Homepage" = "https://github.com/ultralytics/thop"

[tool.setuptools]
package-data = { "thop" = ["__version__.py"] }
"Bug Reports" = "https://github.com/ultralytics/thop/issues"
"Funding" = "https://ultralytics.com"
"Source" = "https://github.com/ultralytics/thop/"

[tool.setuptools.dynamic]
version = { attr = "thop.__version__.VERSION" }
version = { attr = "thop.__version__" }
3 changes: 2 additions & 1 deletion thop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
from .utils import clever_format

default_dtype = torch.float64
__version__ = "0.2.0"

__version__ = "0.2.1"

0 comments on commit 579d26d

Please sign in to comment.