File tree 7 files changed +11
-14
lines changed
7 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 7
7
"." : {
8
8
"release-type" : " python" ,
9
9
"package-name" : " hcloud" ,
10
- "extra-files" : [" hcloud/__version__ .py" ]
10
+ "extra-files" : [" hcloud/_version .py" ]
11
11
}
12
12
}
13
13
}
Original file line number Diff line number Diff line change 5
5
from datetime import datetime
6
6
7
7
sys .path .insert (0 , os .path .abspath (".." ))
8
- from hcloud . __version__ import VERSION # noqa
8
+ import hcloud # noqa
9
9
10
10
# Configuration file for the Sphinx documentation builder.
11
11
#
19
19
author = "Hetzner Cloud GmbH"
20
20
copyright = f"{ datetime .now ().year } , { author } "
21
21
22
- version = VERSION
23
- release = VERSION
22
+ version = hcloud . __version__
23
+ release = hcloud . __version__
24
24
25
25
# -- General configuration ---------------------------------------------------
26
26
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Original file line number Diff line number Diff line change 5
5
APIException as APIException ,
6
6
HCloudException as HCloudException ,
7
7
)
8
+ from ._version import __version__ # noqa
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
6
6
import requests
7
7
8
- from .__version__ import VERSION
9
8
from ._exceptions import APIException
9
+ from ._version import __version__
10
10
from .actions import ActionsClient
11
11
from .certificates import CertificatesClient
12
12
from .datacenters import DatacentersClient
29
29
class Client :
30
30
"""Base Client for accessing the Hetzner Cloud API"""
31
31
32
- _version = VERSION
32
+ _version = __version__
33
33
_retry_wait_time = 0.5
34
34
__user_agent_prefix = "hcloud-python"
35
35
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 5
5
with open ("README.md" , encoding = "utf-8" ) as readme_file :
6
6
readme = readme_file .read ()
7
7
8
- version = {}
9
- with open ("hcloud/__version__.py" , encoding = "utf-8" ) as fp :
10
- exec (fp .read (), version )
11
-
12
8
setup (
13
9
name = "hcloud" ,
14
- version = version [ "VERSION" ] ,
10
+ version = "1.35.0" ,
15
11
keywords = "hcloud hetzner cloud" ,
16
12
description = "Official Hetzner Cloud python library" ,
17
13
long_description = readme ,
You can’t perform that action at this time.
0 commit comments