Skip to content

Commit 09dae59

Browse files
committed
v2.6.0
1 parent 9e2582a commit 09dae59

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

aranet4/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from aranet4.client import Aranet4, Aranet4HistoryDelegate, Aranet4Error, Aranet4Scanner
2+
from .__version__ import __version__
23

34
name = "aranet4"
4-
__version__ = "2.5.1"

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
from pathlib import Path
12
import setuptools
23

4+
version = {}
5+
version_file = Path(__file__).parent / "aranet4" / "__version__.py"
6+
exec(version_file.read_text(), version)
7+
38
with open(file="README.md", encoding="utf-8") as file:
49
long_description = file.read()
510

611
setuptools.setup(
712
name="aranet4",
8-
version="2.5.1",
13+
version=version["__version__"],
914
description="Aranet Python client",
1015
long_description=long_description,
1116
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)