Skip to content

Commit

Permalink
Single source version (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHjelmare authored Sep 6, 2020
1 parent 2676ace commit ebf08fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include README.md
include LICENSE
include pytradfri/VERSION
1 change: 1 addition & 0 deletions pytradfri/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.0.1
3 changes: 3 additions & 0 deletions pytradfri/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implement an API wrapper around Ikea Tradfri."""
from pathlib import Path

from .error import (
PytradfriError,
Expand All @@ -17,3 +18,5 @@
"ServerError",
"RequestTimeout",
]

__version__ = (Path(__file__).parent / "VERSION").read_text().strip()
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
README_FILE = PROJECT_DIR / "README.md"
LONG_DESCRIPTION = README_FILE.read_text(encoding="utf-8")

VERSION = "7.0.1"
VERSION = (PROJECT_DIR / "pytradfri" / "VERSION").read_text().strip()

GITHUB_URL = "https://github.com/home-assistant-libs/pytradfri"
DOWNLOAD_URL = f"{GITHUB_URL}/archive/{VERSION}.zip"
Expand All @@ -29,6 +29,7 @@
author_email="no@email.com",
long_description_content_type="text/markdown",
url=GITHUB_URL,
include_package_data=True,
license="MIT",
keywords="ikea tradfri api iot light homeautomation",
download_url=DOWNLOAD_URL,
Expand Down

0 comments on commit ebf08fc

Please sign in to comment.