Skip to content

Commit

Permalink
🐛 fix: drop single-sourcing package version (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Apr 11, 2022
1 parent 7d50f8a commit 357cce1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ skip-string-normalization = true
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.2.0"
version_files = ["pyproject.toml:version"]
version_files = [
"pyproject.toml:version",
"src/hyperscan/__init__.py:__version__"
]

[tool.poetry]
build = "build.py"
Expand Down Expand Up @@ -66,7 +69,10 @@ black = "^20.8b1"
clang-format = "^9.0.0"

[tool.semantic_release]
version_variable = ["pyproject.toml:version"]
version_variable = [
"pyproject.toml:version",
"src/hyperscan/__init__.py:__version__"
]
remove_dist = false
upload_to_release = false
upload_to_pypi = false
Expand Down
4 changes: 1 addition & 3 deletions src/hyperscan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import typing

import pkg_resources

from hyperscan._hyperscan import *

__version__ = pkg_resources.get_distribution('hyperscan').version
__version__ = "0.2.0"


class ExpressionExt(typing.NamedTuple):
Expand Down

0 comments on commit 357cce1

Please sign in to comment.