scylla-cqlsh 6.0.12__tar.gz → 6.0.14__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.

Potentially problematic release.


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

Files changed (106) hide show
  1. scylla-cqlsh-6.0.14/Dockerfile +20 -0
  2. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/PKG-INFO +1 -1
  3. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/bin/cqlsh.py +11 -4
  4. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlsh/cqlsh.py +11 -4
  5. scylla-cqlsh-6.0.14/cqlshlib/_version.py +16 -0
  6. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/copyutil.c +15436 -13271
  7. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/copyutil.py +13 -2
  8. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/pylexotron.py +1 -1
  9. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/install.sh +1 -1
  10. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/copyutil.py +13 -2
  11. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/pylexotron.py +1 -1
  12. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/setup.py +12 -7
  13. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/reloc/build_reloc.sh +16 -4
  14. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/requirements.txt +1 -1
  15. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/PKG-INFO +1 -1
  16. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/setup.py +12 -7
  17. scylla-cqlsh-6.0.12/Dockerfile +0 -15
  18. scylla-cqlsh-6.0.12/cqlshlib/_version.py +0 -4
  19. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.dockerignore +0 -0
  20. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.github/workflows/build-push.yml +0 -0
  21. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.github/workflows/dockerhub-description.yml +0 -0
  22. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.gitignore +0 -0
  23. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/LICENSE.txt +0 -0
  24. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/README.md +0 -0
  25. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/SCYLLA-VERSION-GEN +0 -0
  26. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/bin/cqlsh +0 -0
  27. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlsh/__init__.py +0 -0
  28. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlsh/__main__.py +0 -0
  29. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/__init__.py +0 -0
  30. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/authproviderhandling.py +0 -0
  31. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/cql3handling.py +0 -0
  32. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/cqlhandling.py +0 -0
  33. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/cqlshhandling.py +0 -0
  34. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/displaying.py +0 -0
  35. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/formatting.py +0 -0
  36. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/helptopics.py +0 -0
  37. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/saferscanner.py +0 -0
  38. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/sslhandling.py +0 -0
  39. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/tracing.py +0 -0
  40. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/util.py +0 -0
  41. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/wcwidth.py +0 -0
  42. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/changelog.template +0 -0
  43. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/control.template +0 -0
  44. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/compat +0 -0
  45. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/copyright +0 -0
  46. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/rules +0 -0
  47. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/source/format +0 -0
  48. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/source/options +0 -0
  49. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian_files_gen.py +0 -0
  50. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/redhat/scylla-cqlsh.spec +0 -0
  51. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/install-dependencies.sh +0 -0
  52. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/Dockerfile.ubuntu.py3 +0 -0
  53. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/Dockerfile.ubuntu.py37 +0 -0
  54. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/Dockerfile.ubuntu.py38 +0 -0
  55. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/README.asc +0 -0
  56. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cassandra-cqlsh-tests.sh +0 -0
  57. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/__init__.py +0 -0
  58. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/authproviderhandling.py +0 -0
  59. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/cql3handling.py +0 -0
  60. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/cqlhandling.py +0 -0
  61. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/cqlshhandling.py +0 -0
  62. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/displaying.py +0 -0
  63. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/formatting.py +0 -0
  64. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/helptopics.py +0 -0
  65. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/saferscanner.py +0 -0
  66. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/sslhandling.py +0 -0
  67. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/__init__.py +0 -0
  68. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/ansi_colors.py +0 -0
  69. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/basecase.py +0 -0
  70. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/cassconnect.py +0 -0
  71. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/reserved_keywords.txt +0 -0
  72. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/run_cqlsh.py +0 -0
  73. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling.py +0 -0
  74. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider +0 -0
  75. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider_creds +0 -0
  76. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider_with_pass +0 -0
  77. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/empty_example +0 -0
  78. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/full_plain_text_example +0 -0
  79. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/illegal_example +0 -0
  80. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/no_classname_example +0 -0
  81. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/partial_example +0 -0
  82. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_full_creds +0 -0
  83. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_partial_creds +0 -0
  84. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_partial_example +0 -0
  85. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_constants.py +0 -0
  86. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_copyutil.py +0 -0
  87. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_cql_parsing.py +0 -0
  88. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_cqlsh_completion.py +0 -0
  89. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_cqlsh_output.py +0 -0
  90. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_keyspace_init.cql +0 -0
  91. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_unicode.py +0 -0
  92. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/winpty.py +0 -0
  93. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/tracing.py +0 -0
  94. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/util.py +0 -0
  95. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/wcwidth.py +0 -0
  96. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/requirements.txt +0 -0
  97. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pyproject.toml +0 -0
  98. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/reloc/build_deb.sh +0 -0
  99. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/reloc/build_rpm.sh +0 -0
  100. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scripts/create-relocatable-package.py +0 -0
  101. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/SOURCES.txt +0 -0
  102. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/dependency_links.txt +0 -0
  103. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/entry_points.txt +0 -0
  104. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/requires.txt +0 -0
  105. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/top_level.txt +0 -0
  106. {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/setup.cfg +0 -0
@@ -0,0 +1,20 @@
1
+ FROM python:3.11-slim-bullseye AS compile-image
2
+
3
+ WORKDIR /usr/src/app
4
+ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install --no-install-recommends git gcc libc6-dev
5
+
6
+ COPY . .
7
+ RUN pip install --user .
8
+
9
+
10
+ FROM python:3.11-slim-bullseye AS build-image
11
+
12
+ # Upgrade packages to the latest, pip as well.
13
+ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*
14
+ RUN pip install --upgrade --no-cache-dir pip
15
+
16
+ COPY --from=compile-image /root/.local /root/.local
17
+
18
+ # Make sure scripts in .local are usable:
19
+ ENV PATH=/root/.local/bin:$PATH
20
+ ENTRYPOINT [ "cqlsh" ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scylla-cqlsh
3
- Version: 6.0.12
3
+ Version: 6.0.14
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
@@ -152,7 +152,7 @@ if os.path.isdir(cqlshlibdir):
152
152
  from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling, authproviderhandling
153
153
  from cqlshlib.copyutil import ExportTask, ImportTask
154
154
  from cqlshlib.displaying import (ANSI_RESET, BLUE, COLUMN_NAME_COLORS, CYAN,
155
- RED, WHITE, FormattedValue, colorme)
155
+ RED, YELLOW, WHITE, FormattedValue, colorme)
156
156
  from cqlshlib.formatting import (DEFAULT_DATE_FORMAT, DEFAULT_NANOTIME_FORMAT,
157
157
  DEFAULT_TIMESTAMP_FORMAT, CqlType, DateTimeFormat,
158
158
  format_by_type)
@@ -212,7 +212,7 @@ parser.add_option('--cqlversion', default=None,
212
212
  'by default the highest version supported by the server will be used.'
213
213
  ' Examples: "3.0.3", "3.1.0"')
214
214
  parser.add_option("--protocol-version", type="int", default=None,
215
- help='Specify a specific protcol version otherwise the client will default and downgrade as necessary')
215
+ help='Specify a specific protocol version otherwise the client will default and downgrade as necessary')
216
216
 
217
217
  parser.add_option("-e", "--execute", help='Execute the statement and quit.')
218
218
  parser.add_option("--connect-timeout", default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
@@ -1110,8 +1110,8 @@ class Shell(cmd.Cmd):
1110
1110
  try:
1111
1111
  self.conn.refresh_schema_metadata(5) # will throw exception if there is a schema mismatch
1112
1112
  except Exception:
1113
- self.printerr("Warning: schema version mismatch detected; check the schema versions of your "
1114
- "nodes in system.local and system.peers.")
1113
+ self.printwarn("Warning: schema version mismatch detected; check the schema versions of your "
1114
+ "nodes in system.local and system.peers.")
1115
1115
  self.conn.refresh_schema_metadata(-1)
1116
1116
 
1117
1117
  if result is None:
@@ -2290,6 +2290,13 @@ class Shell(cmd.Cmd):
2290
2290
  text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2291
2291
  self.writeresult(text, color, newline=newline, out=sys.stderr)
2292
2292
 
2293
+ def printwarn(self, text, color=YELLOW, newline=True, shownum=None):
2294
+ if shownum is None:
2295
+ shownum = self.show_line_nums
2296
+ if shownum:
2297
+ text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2298
+ self.writeresult(text, color, newline=newline, out=sys.stderr)
2299
+
2293
2300
  def stop_coverage(self):
2294
2301
  if self.coverage and self.cov is not None:
2295
2302
  self.cov.stop()
@@ -152,7 +152,7 @@ if os.path.isdir(cqlshlibdir):
152
152
  from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling, authproviderhandling
153
153
  from cqlshlib.copyutil import ExportTask, ImportTask
154
154
  from cqlshlib.displaying import (ANSI_RESET, BLUE, COLUMN_NAME_COLORS, CYAN,
155
- RED, WHITE, FormattedValue, colorme)
155
+ RED, YELLOW, WHITE, FormattedValue, colorme)
156
156
  from cqlshlib.formatting import (DEFAULT_DATE_FORMAT, DEFAULT_NANOTIME_FORMAT,
157
157
  DEFAULT_TIMESTAMP_FORMAT, CqlType, DateTimeFormat,
158
158
  format_by_type)
@@ -212,7 +212,7 @@ parser.add_option('--cqlversion', default=None,
212
212
  'by default the highest version supported by the server will be used.'
213
213
  ' Examples: "3.0.3", "3.1.0"')
214
214
  parser.add_option("--protocol-version", type="int", default=None,
215
- help='Specify a specific protcol version otherwise the client will default and downgrade as necessary')
215
+ help='Specify a specific protocol version otherwise the client will default and downgrade as necessary')
216
216
 
217
217
  parser.add_option("-e", "--execute", help='Execute the statement and quit.')
218
218
  parser.add_option("--connect-timeout", default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
@@ -1110,8 +1110,8 @@ class Shell(cmd.Cmd):
1110
1110
  try:
1111
1111
  self.conn.refresh_schema_metadata(5) # will throw exception if there is a schema mismatch
1112
1112
  except Exception:
1113
- self.printerr("Warning: schema version mismatch detected; check the schema versions of your "
1114
- "nodes in system.local and system.peers.")
1113
+ self.printwarn("Warning: schema version mismatch detected; check the schema versions of your "
1114
+ "nodes in system.local and system.peers.")
1115
1115
  self.conn.refresh_schema_metadata(-1)
1116
1116
 
1117
1117
  if result is None:
@@ -2290,6 +2290,13 @@ class Shell(cmd.Cmd):
2290
2290
  text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2291
2291
  self.writeresult(text, color, newline=newline, out=sys.stderr)
2292
2292
 
2293
+ def printwarn(self, text, color=YELLOW, newline=True, shownum=None):
2294
+ if shownum is None:
2295
+ shownum = self.show_line_nums
2296
+ if shownum:
2297
+ text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2298
+ self.writeresult(text, color, newline=newline, out=sys.stderr)
2299
+
2293
2300
  def stop_coverage(self):
2294
2301
  if self.coverage and self.cov is not None:
2295
2302
  self.cov.stop()
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '6.0.14'
16
+ __version_tuple__ = version_tuple = (6, 0, 14)