Skip to content

Commit

Permalink
Revert "refactor: move version to version.py"
Browse files Browse the repository at this point in the history
This reverts commit 08457a1.

release-please(-action) supports __version__ in __init__.py now.

Refs googleapis/release-please#1062
  • Loading branch information
scop committed Nov 6, 2021
1 parent 8807035 commit e681fb0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions hashpipe/__init__.py
Expand Up @@ -27,11 +27,10 @@
from binascii import hexlify
from typing import BinaryIO, Iterable, Match, Pattern, Set

from .version import __version__ # API

# for hmac.digest only available in 3.7+
# mypy: no-warn-unused-ignores

__version__ = "0.9.2"
DEFAULT_ALGORITHM = "sha1"


Expand Down
7 changes: 0 additions & 7 deletions hashpipe/version.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -7,7 +7,7 @@

def get_version() -> str:
"""Extract version number."""
fname = "hashpipe/version.py"
fname = "hashpipe/__init__.py"
with open(fname, encoding="utf-8") as file_:
for line in file_:
if line.startswith("__version__"):
Expand Down

0 comments on commit e681fb0

Please sign in to comment.