Skip to content

Commit

Permalink
refactor(__version__): move to __init__.py
Browse files Browse the repository at this point in the history
release-please(-action) supports that now.

Refs googleapis/release-please#1062
  • Loading branch information
scop committed Oct 4, 2021
1 parent 17725fb commit 76dfe0e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -7,7 +7,7 @@

def get_version() -> str:
"""Extract version number."""
fname = "src/pytekukko/version.py"
fname = "src/pytekukko/__init__.py"
with open(fname, encoding="utf-8") as file_:
for line in file_:
if line.startswith("__version__"):
Expand Down
2 changes: 1 addition & 1 deletion src/pytekukko/__init__.py
Expand Up @@ -7,8 +7,8 @@
from aiohttp import ClientResponse, ClientSession

from .models import CustomerData, InvoiceHeader, Service
from .version import __version__ # noqa: F401 # API

__version__ = "0.9.0"
DEFAULT_BASE_URL = "https://tilasto.jatekukko.fi/jatekukko/"


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

This file was deleted.

0 comments on commit 76dfe0e

Please sign in to comment.