File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 "." : {
88 "release-type" : " python" ,
99 "package-name" : " hcloud" ,
10- "extra-files" : [" hcloud/__version__ .py" ]
10+ "extra-files" : [" hcloud/_version .py" ]
1111 }
1212 }
1313}
Original file line number Diff line number Diff line change 55from datetime import datetime
66
77sys .path .insert (0 , os .path .abspath (".." ))
8- from hcloud . __version__ import VERSION # noqa
8+ import hcloud # noqa
99
1010# Configuration file for the Sphinx documentation builder.
1111#
1919author = "Hetzner Cloud GmbH"
2020copyright = f"{ datetime .now ().year } , { author } "
2121
22- version = VERSION
23- release = VERSION
22+ version = hcloud . __version__
23+ release = hcloud . __version__
2424
2525# -- General configuration ---------------------------------------------------
2626# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Original file line number Diff line number Diff line change 55 APIException as APIException ,
66 HCloudException as HCloudException ,
77)
8+ from ._version import __version__ # noqa
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55
66import requests
77
8- from .__version__ import VERSION
98from ._exceptions import APIException
9+ from ._version import __version__
1010from .actions import ActionsClient
1111from .certificates import CertificatesClient
1212from .datacenters import DatacentersClient
2929class Client :
3030 """Base Client for accessing the Hetzner Cloud API"""
3131
32- _version = VERSION
32+ _version = __version__
3333 _retry_wait_time = 0.5
3434 __user_agent_prefix = "hcloud-python"
3535
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
3+ __version__ = "1.35.0" # x-release-please-version
Original file line number Diff line number Diff line change 55with open ("README.md" , encoding = "utf-8" ) as readme_file :
66 readme = readme_file .read ()
77
8- version = {}
9- with open ("hcloud/__version__.py" , encoding = "utf-8" ) as fp :
10- exec (fp .read (), version )
11-
128setup (
139 name = "hcloud" ,
14- version = version [ "VERSION" ] ,
10+ version = "1.35.0" ,
1511 keywords = "hcloud hetzner cloud" ,
1612 description = "Official Hetzner Cloud python library" ,
1713 long_description = readme ,
You can’t perform that action at this time.
0 commit comments