Skip to content

Commit

Permalink
fix: package versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
cgtobi committed Sep 16, 2024
1 parent b594ccd commit eb505cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 168 deletions.
12 changes: 1 addition & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["wheel", "setuptools", "attrs>=17.1"]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -54,16 +54,6 @@ dev-dependencies = [
]

[tool.setuptools_scm]
local_scheme = "no-local-version"
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"
write_to = "src/pyatmo/__version__.py"
write_to_template = '''"""
Pyatmo: Simple API to access Netatmo devices and data
DO NO EDIT THIS FILE - VERSION IS MANAGED BY SETUPTOOLS_SCM
"""
__version__ = "{version}"
'''

[tool.pytest.ini_options]
minversion = "8.0"
Expand Down
3 changes: 2 additions & 1 deletion src/pyatmo/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ async def async_get_image(
try:
access_token = await self.async_get_access_token()
except ClientError as err:
msg = f"Access token failure: {err}"
error_type = type(err).__name__
msg = f"Access token failure: {error_type} - {err}"
raise ApiError(msg) from err
headers = {AUTHORIZATION_HEADER: f"Bearer {access_token}"}

Expand Down
Loading

0 comments on commit eb505cf

Please sign in to comment.