python-blazarclient 4.1.0__tar.gz → 4.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/AUTHORS +2 -0
  2. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/ChangeLog +8 -0
  3. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/PKG-INFO +1 -1
  4. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/test_leases.py +1 -1
  5. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/utils.py +1 -1
  6. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/leases.py +3 -12
  7. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/PKG-INFO +1 -1
  8. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/SOURCES.txt +1 -0
  9. python-blazarclient-4.2.0/python_blazarclient.egg-info/pbr.json +1 -0
  10. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/requires.txt +1 -1
  11. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/2023.1.rst +1 -1
  12. python-blazarclient-4.2.0/releasenotes/source/2024.2.rst +6 -0
  13. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/index.rst +1 -0
  14. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/requirements.txt +1 -1
  15. python-blazarclient-4.1.0/python_blazarclient.egg-info/pbr.json +0 -1
  16. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/.stestr.conf +0 -0
  17. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/.zuul.yaml +0 -0
  18. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/HACKING.rst +0 -0
  19. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/LICENSE +0 -0
  20. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/MANIFEST.in +0 -0
  21. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/README.rst +0 -0
  22. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/__init__.py +0 -0
  23. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/base.py +0 -0
  24. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/client.py +0 -0
  25. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/command.py +0 -0
  26. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/exception.py +0 -0
  27. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/i18n.py +0 -0
  28. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/osc/__init__.py +0 -0
  29. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/osc/plugin.py +0 -0
  30. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/shell.py +0 -0
  31. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/__init__.py +0 -0
  32. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_base.py +0 -0
  33. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_client.py +0 -0
  34. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_command.py +0 -0
  35. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_plugin.py +0 -0
  36. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_shell.py +0 -0
  37. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/__init__.py +0 -0
  38. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/__init__.py +0 -0
  39. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/test_floatingips.py +0 -0
  40. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/test_hosts.py +0 -0
  41. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/__init__.py +0 -0
  42. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/allocations.py +0 -0
  43. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/client.py +0 -0
  44. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/floatingips.py +0 -0
  45. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/hosts.py +0 -0
  46. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/leases.py +0 -0
  47. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/__init__.py +0 -0
  48. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/allocations.py +0 -0
  49. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/floatingips.py +0 -0
  50. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/hosts.py +0 -0
  51. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/version.py +0 -0
  52. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/doc/requirements.txt +0 -0
  53. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/dependency_links.txt +0 -0
  54. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/entry_points.txt +0 -0
  55. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/not-zip-safe +0 -0
  56. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/top_level.txt +0 -0
  57. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/.placeholder +0 -0
  58. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/bug-1777548-6b5c770abc6ac360.yaml +0 -0
  59. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/bug-1783296-set-start-date-to-now-e329a6923c11432f.yaml +0 -0
  60. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/default-affinity-value-150947560fd7da3c.yaml +0 -0
  61. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/drop-python2-c3c1601e92a9b87a.yaml +0 -0
  62. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/flavor-based-instance-reservation-ec9730ddfeabdf15.yaml +0 -0
  63. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/floatingip-reservation-update-5823a21516135f17.yaml +0 -0
  64. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/floatingip-support-d184a565f324d31b.yaml +0 -0
  65. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/host-allocation-fad8e511cb13c0e8.yaml +0 -0
  66. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/host-resource-property-9ac5c21bd3ca6699.yaml +0 -0
  67. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/ksa-loading-9731c570772c826a.yaml +0 -0
  68. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/openstackclient-support-f591eef2dc3c1a8b.yaml +0 -0
  69. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/parse-required-floatingips-f79f79d652e371ae.yaml +0 -0
  70. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/respect-selected-region-a409773f851ccb47.yaml +0 -0
  71. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/separate-id-parser-argument-from-showcommand-ce92d0c52dd1963e.yaml +0 -0
  72. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/2023.2.rst +0 -0
  73. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/2024.1.rst +0 -0
  74. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/_static/.placeholder +0 -0
  75. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/_templates/.placeholder +0 -0
  76. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/conf.py +0 -0
  77. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/rocky.rst +0 -0
  78. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/stein.rst +0 -0
  79. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/train.rst +0 -0
  80. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/unreleased.rst +0 -0
  81. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/ussuri.rst +0 -0
  82. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/victoria.rst +0 -0
  83. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/wallaby.rst +0 -0
  84. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/xena.rst +0 -0
  85. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/yoga.rst +0 -0
  86. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/zed.rst +0 -0
  87. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/setup.cfg +0 -0
  88. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/setup.py +0 -0
  89. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/test-requirements.txt +0 -0
  90. {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/tox.ini +0 -0
@@ -39,8 +39,10 @@ Sergey Lukjanov <slukjanov@mirantis.com>
39
39
  ShangXiao <shangxiaobj@inspur.com>
40
40
  Steve Martinelli <s.martinelli@gmail.com>
41
41
  Sylvain Bauza <sylvain.bauza@bull.net>
42
+ Takashi Natsume <takanattie@gmail.com>
42
43
  Tetsuro Nakamura <nakamura.tetsuro@lab.ntt.co.jp>
43
44
  Tetsuro Nakamura <tetsuro.nakamura.bc@hco.ntt.co.jp>
45
+ Thomas Goirand <zigo@debian.org>
44
46
  Tony Breeds <tony@bakeyournoodle.com>
45
47
  Vieri <15050873171@163.com>
46
48
  ZhijunWei <wzj334965317@outlook.com>
@@ -1,6 +1,14 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
+ 4.2.0
5
+ -----
6
+
7
+ * Replace deprecated datetime.utcnow()
8
+ * Fix syntax warning under Python 3.12/3.13
9
+ * reno: Update master for unmaintained/2023.1
10
+ * Update master for stable/2024.2
11
+
4
12
  4.1.0
5
13
  -----
6
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: python-blazarclient
3
- Version: 4.1.0
3
+ Version: 4.2.0
4
4
  Summary: Client for OpenStack Reservation Service
5
5
  Home-page: https://launchpad.net/blazar
6
6
  Author: OpenStack
@@ -28,7 +28,7 @@ FIRST_LEASE = 'd1e43d6d-8f6f-4c2e-b0a9-2982b39dc698'
28
28
  SECOND_LEASE = '424d21c3-45a2-448a-81ad-32eddc888375'
29
29
 
30
30
 
31
- @mock.patch('blazarclient.v1.shell_commands.leases._utc_now', mock_time)
31
+ @mock.patch('oslo_utils.timeutils.utcnow', mock_time)
32
32
  class CreateLeaseTestCase(tests.TestCase):
33
33
 
34
34
  def setUp(self):
@@ -22,7 +22,7 @@ from oslo_serialization import jsonutils as json
22
22
  from blazarclient import exception
23
23
  from blazarclient.i18n import _
24
24
 
25
- ELAPSED_TIME_REGEX = '^(\d+)([s|m|h|d])$' # noqa W605
25
+ ELAPSED_TIME_REGEX = r'^(\d+)([s|m|h|d])$'
26
26
 
27
27
  LEASE_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%f'
28
28
  API_DATE_FORMAT = '%Y-%m-%d %H:%M'
@@ -20,6 +20,7 @@ import re
20
20
 
21
21
  from oslo_serialization import jsonutils
22
22
  from oslo_utils import strutils
23
+ from oslo_utils import timeutils
23
24
 
24
25
  from blazarclient import command
25
26
  from blazarclient import exception
@@ -64,16 +65,6 @@ CREATE_RESERVATION_KEYS = {
64
65
  }
65
66
 
66
67
 
67
- def _utc_now():
68
- """Wrap datetime.datetime.utcnow so it can be mocked in unit tests.
69
-
70
- This is required because some of the tests require understanding the
71
- 'current time'; simply mocking utcnow() is made very difficult by
72
- the many different ways the datetime package is used in this module.
73
- """
74
- return datetime.datetime.utcnow()
75
-
76
-
77
68
  class ListLeases(command.ListCommand):
78
69
  """Print a list of leases."""
79
70
  resource = 'lease'
@@ -113,7 +104,7 @@ class CreateLeaseBase(command.CreateCommand):
113
104
  json_indent = 4
114
105
  log = logging.getLogger(__name__ + '.CreateLease')
115
106
  default_start = 'now'
116
- default_end = _utc_now() + datetime.timedelta(days=1)
107
+ default_end = timeutils.utcnow() + datetime.timedelta(days=1)
117
108
 
118
109
  def get_parser(self, prog_name):
119
110
  parser = super(CreateLeaseBase, self).get_parser(prog_name)
@@ -189,7 +180,7 @@ class CreateLeaseBase(command.CreateCommand):
189
180
  raise exception.IncorrectLease
190
181
 
191
182
  if parsed_args.start == 'now':
192
- start = _utc_now()
183
+ start = timeutils.utcnow()
193
184
  else:
194
185
  start = parsed_args.start
195
186
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: python-blazarclient
3
- Version: 4.1.0
3
+ Version: 4.2.0
4
4
  Summary: Client for OpenStack Reservation Service
5
5
  Home-page: https://launchpad.net/blazar
6
6
  Author: OpenStack
@@ -71,6 +71,7 @@ releasenotes/notes/separate-id-parser-argument-from-showcommand-ce92d0c52dd1963e
71
71
  releasenotes/source/2023.1.rst
72
72
  releasenotes/source/2023.2.rst
73
73
  releasenotes/source/2024.1.rst
74
+ releasenotes/source/2024.2.rst
74
75
  releasenotes/source/conf.py
75
76
  releasenotes/source/index.rst
76
77
  releasenotes/source/rocky.rst
@@ -0,0 +1 @@
1
+ {"git_version": "20c3119", "is_release": true}
@@ -4,5 +4,5 @@ keystoneauth1>=3.4.0
4
4
  osc-lib>=1.3.0
5
5
  oslo.i18n>=3.15.3
6
6
  oslo.log>=3.36.0
7
- oslo.utils>=3.33.0
7
+ oslo.utils>=7.0.0
8
8
  pbr!=2.1.0,>=2.0.0
@@ -3,4 +3,4 @@
3
3
  ===========================
4
4
 
5
5
  .. release-notes::
6
- :branch: stable/2023.1
6
+ :branch: unmaintained/2023.1
@@ -0,0 +1,6 @@
1
+ ===========================
2
+ 2024.2 Series Release Notes
3
+ ===========================
4
+
5
+ .. release-notes::
6
+ :branch: stable/2024.2
@@ -6,6 +6,7 @@
6
6
  :maxdepth: 1
7
7
 
8
8
  unreleased
9
+ 2024.2
9
10
  2024.1
10
11
  2023.2
11
12
  2023.1
@@ -10,6 +10,6 @@ cliff!=2.9.0,>=2.8.0 # Apache-2.0
10
10
  PrettyTable>=0.7.1 # BSD
11
11
  oslo.i18n>=3.15.3 # Apache-2.0
12
12
  oslo.log>=3.36.0 # Apache-2.0
13
- oslo.utils>=3.33.0 # Apache-2.0
13
+ oslo.utils>=7.0.0 # Apache-2.0
14
14
  keystoneauth1>=3.4.0 # Apache-2.0
15
15
  osc-lib>=1.3.0 # Apache-2.0
@@ -1 +0,0 @@
1
- {"git_version": "e1f6650", "is_release": true}