scylla-cqlsh 6.0.24__cp39-cp39-win_amd64.whl → 6.0.26__cp39-cp39-win_amd64.whl

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.

Potentially problematic release.


This version of scylla-cqlsh might be problematic. Click here for more details.

Binary file
cqlsh/cqlsh.py CHANGED
@@ -160,7 +160,13 @@ from cqlshlib.util import is_file_secure, trim_if_present
160
160
  try:
161
161
  from cqlshlib._version import __version__ as version
162
162
  except ImportError:
163
- version = "0.0.0"
163
+ # Get the version relative to the current file, suppressing UserWarnings from setuptools_scm
164
+ from setuptools_scm import get_version
165
+
166
+ with warnings.catch_warnings():
167
+ warnings.simplefilter("ignore", UserWarning)
168
+ version = get_version(root='..', relative_to=__file__, tag_regex=r'^(?P<prefix>v)?(?P<version>[^\+-]+)(?P<suffix>-scylla)?$')
169
+
164
170
 
165
171
  DEFAULT_HOST = '127.0.0.1'
166
172
  DEFAULT_PORT = 9042
cqlshlib/_version.py CHANGED
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '6.0.24'
16
- __version_tuple__ = version_tuple = (6, 0, 24)
20
+ __version__ = version = '6.0.26'
21
+ __version_tuple__ = version_tuple = (6, 0, 26)
cqlshlib/cql3handling.py CHANGED
@@ -442,7 +442,7 @@ def ks_prop_val_completer(ctxt, cass):
442
442
  if optname == 'durable_writes':
443
443
  return ["'true'", "'false'"]
444
444
  if optname == 'replication':
445
- return ["{'class': '"]
445
+ return ["{'class': 'NetworkTopologyStrategy'"]
446
446
  return ()
447
447
 
448
448
 
@@ -471,7 +471,10 @@ def ks_prop_val_mapval_completer(ctxt, cass):
471
471
  return ()
472
472
  currentkey = dequote_value(ctxt.get_binding('propmapkey')[-1])
473
473
  if currentkey == 'class':
474
- return list(map(escape_value, CqlRuleSet.replication_strategies))
474
+ partial = ctxt.get_binding('partial', '')
475
+ if partial == '':
476
+ return [escape_value('NetworkTopologyStrategy')]
477
+ return [s for s in CqlRuleSet.replication_strategies if s.startswith(partial)]
475
478
  return [Hint('<term>')]
476
479
 
477
480
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: scylla-cqlsh
3
- Version: 6.0.24
3
+ Version: 6.0.26
4
4
  Summary: cqlsh is a Python-based command-line client for running CQL commands on a scylla cluster.
5
5
  Home-page: https://github.com/scylladb/scylla-cqlsh
6
6
  Author: Israel Fruchter
@@ -20,6 +20,7 @@ License-File: LICENSE.txt
20
20
  Requires-Dist: scylla-driver>=3.25.10
21
21
  Dynamic: classifier
22
22
  Dynamic: license
23
+ Dynamic: license-file
23
24
  Dynamic: requires-dist
24
25
 
25
26
  # scylla-cqlsh
@@ -1,12 +1,12 @@
1
- copyutil.cp39-win_amd64.pyd,sha256=GlmYIaA_4E9dF2W-yUUu3o3YYTz8fJ15BZTXWbV3_A8,1163264
1
+ copyutil.cp39-win_amd64.pyd,sha256=yKK6yxSP1T8RT4CAdhxEPcle2xU52NY2maQ2hycIuLk,804352
2
2
  cqlsh/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
3
3
  cqlsh/__main__.py,sha256=x2NuvlSuAKwNCxiX07YoYfxog9JNAO759ZxnjBEcfus,231
4
- cqlsh/cqlsh.py,sha256=O8f8owDrWrdwCfJmZrkVtf5sKb-u6QGMKIXl-aCsMhE,115984
4
+ cqlsh/cqlsh.py,sha256=KGbsIOJUy2mMjtFGdpzkvocYVJBgXSyf_r87npErNAs,116337
5
5
  cqlshlib/__init__.py,sha256=3M0IQCsjdCGYEOBT20swSvqxV6V8vg_mu1uJig78Vmk,3274
6
- cqlshlib/_version.py,sha256=rlFhhwCXM2rN6Xnq6DUgKxgKc5LsmGW2XObL_hvoFtE,429
6
+ cqlshlib/_version.py,sha256=lgdHYPmljoaYUfvs30VuVDobhlmfhVmfu7NvK2ClBYI,534
7
7
  cqlshlib/authproviderhandling.py,sha256=goFjJCO1FKuVCXU7KXlmlorx_cD_oIRlgpOeH13W--g,7254
8
8
  cqlshlib/copyutil.py,sha256=Pc4WaKg_W8IP4ZpuWEvoLOrJJGQTwRHTyOdqExfDro0,116171
9
- cqlshlib/cql3handling.py,sha256=NaPViE6v9K4S4ffBmmWzI3_U0Kd-HvBjKq3N6G4GLzI,60790
9
+ cqlshlib/cql3handling.py,sha256=SVvIYWG9Zo8Dj7Ty4gbBqc62QVQznXG0PX6wZkFQ6-M,60967
10
10
  cqlshlib/cqlhandling.py,sha256=hiqjCKY5fQnqSEeugYJgAD3hRiloqUtOUTSg_GccL4A,13436
11
11
  cqlshlib/cqlshhandling.py,sha256=cMlDbq5MuXagJmq-qpJxRqwstOAawWUu2rry6tfHV_w,10824
12
12
  cqlshlib/displaying.py,sha256=WxKcYuX098sa6NoyPeYwJod0zutkrTm2Zm3riIhrYpA,4105
@@ -18,9 +18,9 @@ cqlshlib/sslhandling.py,sha256=XYdvON1WkWFQ5dg5ttpwpSQDgbqI58YJi8Lx1qTDtQA,4758
18
18
  cqlshlib/tracing.py,sha256=Krb-TkfWrUdxr17-2yZrW5DXKvBEQt-FYZAix_62Tes,3493
19
19
  cqlshlib/util.py,sha256=gHvzlTw1T9N1YzXdVPFptAt58EzyXpDRibAo8QB03I8,5240
20
20
  cqlshlib/wcwidth.py,sha256=zsoo9u3ZA3q8RL5Afb6ynRujqDdUZ9zlFIHGE8RkqyA,16244
21
- scylla_cqlsh-6.0.24.dist-info/LICENSE.txt,sha256=65AZdlqRQxiyMBv8nY6itMITk5jx9EkE_jHujbcDzbk,11564
22
- scylla_cqlsh-6.0.24.dist-info/METADATA,sha256=UGhBlc7BZUrVAa-8zhSsR0ngdBNeTgGnhMEf8dQ5D_4,3215
23
- scylla_cqlsh-6.0.24.dist-info/WHEEL,sha256=agy-BJge3afXwWznUXANATmKFW4eqelqRR0uf608A_0,99
24
- scylla_cqlsh-6.0.24.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
25
- scylla_cqlsh-6.0.24.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
26
- scylla_cqlsh-6.0.24.dist-info/RECORD,,
21
+ scylla_cqlsh-6.0.26.dist-info/licenses/LICENSE.txt,sha256=65AZdlqRQxiyMBv8nY6itMITk5jx9EkE_jHujbcDzbk,11564
22
+ scylla_cqlsh-6.0.26.dist-info/METADATA,sha256=i-r7QTi7tmTQ7IVjMUjhSB77zy5gYSMiya-RveigLVY,3238
23
+ scylla_cqlsh-6.0.26.dist-info/WHEEL,sha256=XkFE14KmFh7mutkkb-qn_ueuH2lwfT8rLdfc5xpQ7wE,99
24
+ scylla_cqlsh-6.0.26.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
25
+ scylla_cqlsh-6.0.26.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
26
+ scylla_cqlsh-6.0.26.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp39-cp39-win_amd64
5
5