diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 06:13:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 06:13:08 +0000 |
commit | c4415011b209d2daf8e87ef9c4a502fdcfb0b187 (patch) | |
tree | f81cc41256e272c6a30b4e2876e97bcd519946fa | |
parent | 5d8f657acc7402e1cf37b7fb5121853c8f37e404 (diff) |
automatic import of python-cqlsh
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-cqlsh.spec | 446 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 448 insertions, 0 deletions
@@ -0,0 +1 @@ +/cqlsh-6.1.2.tar.gz diff --git a/python-cqlsh.spec b/python-cqlsh.spec new file mode 100644 index 0000000..15f5ca6 --- /dev/null +++ b/python-cqlsh.spec @@ -0,0 +1,446 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cqlsh +Version: 6.1.2 +Release: 1 +Summary: cqlsh is a Python-based command-line client for running CQL commands on a cassandra cluster. +License: Apache Software License +URL: https://github.com/jeffwidman/cqlsh +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/94/24/d93f49931b124029cbe473cddaedb6135ece63e5e4c28e83aeb4145c54fb/cqlsh-6.1.2.tar.gz +BuildArch: noarch + +Requires: python3-cassandra-driver +Requires: python3-six + +%description +[](https://badge.fury.io/py/cqlsh) + +[](https://pepy.tech/project/cqlsh) +[](https://opensource.org/licenses/Apache-2.0) + +# `cqlsh` + +`cqlsh` is a Python-based command-line client for running `CQL` commands on a `cassandra` cluster. + +Normally it's packaged as part of the full Apache Cassandra™ installation. This repo repackages it into a standalone Python package for lighter-weight installs. + +### Installing: + +Install and update using [`pip`](https://pip.pypa.io/en/stable/quickstart/): +``` +$ pip install -U cqlsh +``` + +### Running: + +``` +$ cqlsh --help +``` + +### Documentation: + +Documentation is available as part of the official [Apache Cassandra™ documentation](https://cassandra.apache.org/doc/latest/tools/cqlsh.html). + +### Contributing: + +Because this is a repackaging of `cqlsh` from the official [Cassandra repo](https://gitbox.apache.org/repos/asf/cassandra.git), **only issues / PRs related to PyPI packaging should be opened against this repo**. If you would like to contribute to `cqlsh` itself, [find out more information here](https://github.com/apache/cassandra/blob/trunk/CONTRIBUTING.md). + +Steps to sanity check that the packaging works as expected: + +1. Install `cqlsh` locally (probably in a `virtualenv`): +``` +$ pip install -e . # run from within the cqlsh directory +``` +2. Start a local copy of Cassandra: +``` +$ docker pull cassandra +$ docker run -it --rm -p 9042:9042 cassandra +``` +3. Verify `cqlsh` successfully connects to the server: +``` +$ cqlsh + +Connected to Test Cluster at 127.0.0.1:9042 +[cqlsh 6.1.0 | Cassandra 4.1.0 | CQL spec 3.4.5 | Native protocol v5] +Use HELP for help. +cqlsh> +``` + +This PyPI package is maintained by [Jeff Widman](https://github.com/jeffwidman) and [Brad Schoening](https://github.com/bschoening). Previous maintainers: [Spiro](https://github.com/spiside) and [Andrew Mussey](https://github.com/amussey). + + +### Changelog: + +Unfortunately the Cassandra project does not always increment the `cqlsh` version number, so for every +release we need to document not only the `cqlsh` version but also the `cassandra` version in which it +shipped. + +#### 6.1.2 (March 24, 2023) + +This packages `cqlsh` `6.1.0` from [Cassandra 4.1.1](https://github.com/apache/cassandra/blob/cassandra-4.1.0/bin/cqlsh.py): +* Now supports Python 3.11. +* Although this is pulled from a Cassandra `4.x` release, it is protocol compatible with Cassandra `3.x` clusters, with the exception of DESCRIBE keywords which require a 4.x cluster. + +#### 6.1.1 (skipped due to a versioning issue) + +#### 6.1.0 (Jan 4, 2023) + +This packages `cqlsh` `6.1.0` from [Cassandra 4.1](https://github.com/apache/cassandra/blob/cassandra-4.1.0/bin/cqlsh.py): +* Requires Python 3.6+. +* Although this is pulled from a Cassandra `4.x` release, it is protocol compatible with Cassandra `3.x` clusters, with the exception of DESCRIBE keywords which require a 4.x cluster. + +#### 6.0.1 (Jan 18, 2022) + +The actual source code is identical to the `cqlsh` `6.0.0` release, except it's now packaged as +a module. This allows it to be used as a library, not just an executable script. It also provides +better Windows support. Details in https://github.com/jeffwidman/cqlsh/pull/7 by @bschoening. + +Note: This release was yanked from PyPI because it [broke Python 2 compatibility](https://github.com/jeffwidman/cqlsh/issues/11). + +#### 6.0.0 (Aug 3, 2021) + +This packages `cqlsh` `6.0.0` from [Cassandra 4.0](https://github.com/apache/cassandra/blob/cassandra-4.0.0/bin/cqlsh.py): +* Requires Python 3.6+ or 2.7 (although support for Python 2 is deprecated). +* Although this is pulled from a Cassandra `4.x` release, it should generally work against Cassandra `3.x` clusters without needing to set any flags. + + +#### 6.0.0b4 (Mar 9, 2021) + +This packages `cqlsh` `5.0.1` from [Cassandra 4.0-beta4](https://github.com/apache/cassandra/blob/cassandra-4.0-beta4/bin/cqlsh.py): +* Now supports Python 3. +* Although this is pulled from a Cassandra `4.x` release, it should generally work against Cassandra `3.x` clusters without needing to set any flags. + +#### 5.0.5 (Mar 9, 2021) + +This packages `cqlsh` `5.0.1` from [Cassandra 3.11.10](https://github.com/apache/cassandra/blob/cassandra-3.11.10/bin/cqlsh.py). + +#### 5.0.4 (Mar 29, 2017) + +This packages `cqlsh` `5.0.1` from [Cassandra 3.4.0](https://github.com/apache/cassandra/blob/cassandra-3.4/bin/cqlsh.py). + + +#### 5.0.3 (Mar 21, 2016) + +This packages `cqlsh` `5.0.1` from [Cassandra 2.2.0](https://github.com/apache/cassandra/blob/cassandra-2.2.0/bin/cqlsh.py). + + +#### 4.1.1 (Feb 11, 2014) + +This packages `cqlsh` `4.1.1` from [Cassandra 2.0.5](https://github.com/apache/cassandra/blob/cassandra-2.0.5/bin/cqlsh). + + +#### 4.1.0 (Dec 2, 2013) + +This packages `cqlsh` `4.1.0` from [Cassandra 2.0.3](https://github.com/apache/cassandra/blob/cassandra-2.0.3/bin/cqlsh). + + +#### 4.0.1 (Oct 14, 2013) + +This packages `cqlsh` `4.0.1` from [Cassandra 2.0.1](https://github.com/apache/cassandra/blob/cassandra-2.0.1/bin/cqlsh). + + +%package -n python3-cqlsh +Summary: cqlsh is a Python-based command-line client for running CQL commands on a cassandra cluster. +Provides: python-cqlsh +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cqlsh +[](https://badge.fury.io/py/cqlsh) + +[](https://pepy.tech/project/cqlsh) +[](https://opensource.org/licenses/Apache-2.0) + +# `cqlsh` + +`cqlsh` is a Python-based command-line client for running `CQL` commands on a `cassandra` cluster. + +Normally it's packaged as part of the full Apache Cassandra™ installation. This repo repackages it into a standalone Python package for lighter-weight installs. + +### Installing: + +Install and update using [`pip`](https://pip.pypa.io/en/stable/quickstart/): +``` +$ pip install -U cqlsh +``` + +### Running: + +``` +$ cqlsh --help +``` + +### Documentation: + +Documentation is available as part of the official [Apache Cassandra™ documentation](https://cassandra.apache.org/doc/latest/tools/cqlsh.html). + +### Contributing: + +Because this is a repackaging of `cqlsh` from the official [Cassandra repo](https://gitbox.apache.org/repos/asf/cassandra.git), **only issues / PRs related to PyPI packaging should be opened against this repo**. If you would like to contribute to `cqlsh` itself, [find out more information here](https://github.com/apache/cassandra/blob/trunk/CONTRIBUTING.md). + +Steps to sanity check that the packaging works as expected: + +1. Install `cqlsh` locally (probably in a `virtualenv`): +``` +$ pip install -e . # run from within the cqlsh directory +``` +2. Start a local copy of Cassandra: +``` +$ docker pull cassandra +$ docker run -it --rm -p 9042:9042 cassandra +``` +3. Verify `cqlsh` successfully connects to the server: +``` +$ cqlsh + +Connected to Test Cluster at 127.0.0.1:9042 +[cqlsh 6.1.0 | Cassandra 4.1.0 | CQL spec 3.4.5 | Native protocol v5] +Use HELP for help. +cqlsh> +``` + +This PyPI package is maintained by [Jeff Widman](https://github.com/jeffwidman) and [Brad Schoening](https://github.com/bschoening). Previous maintainers: [Spiro](https://github.com/spiside) and [Andrew Mussey](https://github.com/amussey). + + +### Changelog: + +Unfortunately the Cassandra project does not always increment the `cqlsh` version number, so for every +release we need to document not only the `cqlsh` version but also the `cassandra` version in which it +shipped. + +#### 6.1.2 (March 24, 2023) + +This packages `cqlsh` `6.1.0` from [Cassandra 4.1.1](https://github.com/apache/cassandra/blob/cassandra-4.1.0/bin/cqlsh.py): +* Now supports Python 3.11. +* Although this is pulled from a Cassandra `4.x` release, it is protocol compatible with Cassandra `3.x` clusters, with the exception of DESCRIBE keywords which require a 4.x cluster. + +#### 6.1.1 (skipped due to a versioning issue) + +#### 6.1.0 (Jan 4, 2023) + +This packages `cqlsh` `6.1.0` from [Cassandra 4.1](https://github.com/apache/cassandra/blob/cassandra-4.1.0/bin/cqlsh.py): +* Requires Python 3.6+. +* Although this is pulled from a Cassandra `4.x` release, it is protocol compatible with Cassandra `3.x` clusters, with the exception of DESCRIBE keywords which require a 4.x cluster. + +#### 6.0.1 (Jan 18, 2022) + +The actual source code is identical to the `cqlsh` `6.0.0` release, except it's now packaged as +a module. This allows it to be used as a library, not just an executable script. It also provides +better Windows support. Details in https://github.com/jeffwidman/cqlsh/pull/7 by @bschoening. + +Note: This release was yanked from PyPI because it [broke Python 2 compatibility](https://github.com/jeffwidman/cqlsh/issues/11). + +#### 6.0.0 (Aug 3, 2021) + +This packages `cqlsh` `6.0.0` from [Cassandra 4.0](https://github.com/apache/cassandra/blob/cassandra-4.0.0/bin/cqlsh.py): +* Requires Python 3.6+ or 2.7 (although support for Python 2 is deprecated). +* Although this is pulled from a Cassandra `4.x` release, it should generally work against Cassandra `3.x` clusters without needing to set any flags. + + +#### 6.0.0b4 (Mar 9, 2021) + +This packages `cqlsh` `5.0.1` from [Cassandra 4.0-beta4](https://github.com/apache/cassandra/blob/cassandra-4.0-beta4/bin/cqlsh.py): +* Now supports Python 3. +* Although this is pulled from a Cassandra `4.x` release, it should generally work against Cassandra `3.x` clusters without needing to set any flags. + +#### 5.0.5 (Mar 9, 2021) + +This packages `cqlsh` `5.0.1` from [Cassandra 3.11.10](https://github.com/apache/cassandra/blob/cassandra-3.11.10/bin/cqlsh.py). + +#### 5.0.4 (Mar 29, 2017) + +This packages `cqlsh` `5.0.1` from [Cassandra 3.4.0](https://github.com/apache/cassandra/blob/cassandra-3.4/bin/cqlsh.py). + + +#### 5.0.3 (Mar 21, 2016) + +This packages `cqlsh` `5.0.1` from [Cassandra 2.2.0](https://github.com/apache/cassandra/blob/cassandra-2.2.0/bin/cqlsh.py). + + +#### 4.1.1 (Feb 11, 2014) + +This packages `cqlsh` `4.1.1` from [Cassandra 2.0.5](https://github.com/apache/cassandra/blob/cassandra-2.0.5/bin/cqlsh). + + +#### 4.1.0 (Dec 2, 2013) + +This packages `cqlsh` `4.1.0` from [Cassandra 2.0.3](https://github.com/apache/cassandra/blob/cassandra-2.0.3/bin/cqlsh). + + +#### 4.0.1 (Oct 14, 2013) + +This packages `cqlsh` `4.0.1` from [Cassandra 2.0.1](https://github.com/apache/cassandra/blob/cassandra-2.0.1/bin/cqlsh). + + +%package help +Summary: Development documents and examples for cqlsh +Provides: python3-cqlsh-doc +%description help +[](https://badge.fury.io/py/cqlsh) + +[](https://pepy.tech/project/cqlsh) +[](https://opensource.org/licenses/Apache-2.0) + +# `cqlsh` + +`cqlsh` is a Python-based command-line client for running `CQL` commands on a `cassandra` cluster. + +Normally it's packaged as part of the full Apache Cassandra™ installation. This repo repackages it into a standalone Python package for lighter-weight installs. + +### Installing: + +Install and update using [`pip`](https://pip.pypa.io/en/stable/quickstart/): +``` +$ pip install -U cqlsh +``` + +### Running: + +``` +$ cqlsh --help +``` + +### Documentation: + +Documentation is available as part of the official [Apache Cassandra™ documentation](https://cassandra.apache.org/doc/latest/tools/cqlsh.html). + +### Contributing: + +Because this is a repackaging of `cqlsh` from the official [Cassandra repo](https://gitbox.apache.org/repos/asf/cassandra.git), **only issues / PRs related to PyPI packaging should be opened against this repo**. If you would like to contribute to `cqlsh` itself, [find out more information here](https://github.com/apache/cassandra/blob/trunk/CONTRIBUTING.md). + +Steps to sanity check that the packaging works as expected: + +1. Install `cqlsh` locally (probably in a `virtualenv`): +``` +$ pip install -e . # run from within the cqlsh directory +``` +2. Start a local copy of Cassandra: +``` +$ docker pull cassandra +$ docker run -it --rm -p 9042:9042 cassandra +``` +3. Verify `cqlsh` successfully connects to the server: +``` +$ cqlsh + +Connected to Test Cluster at 127.0.0.1:9042 +[cqlsh 6.1.0 | Cassandra 4.1.0 | CQL spec 3.4.5 | Native protocol v5] +Use HELP for help. +cqlsh> +``` + +This PyPI package is maintained by [Jeff Widman](https://github.com/jeffwidman) and [Brad Schoening](https://github.com/bschoening). Previous maintainers: [Spiro](https://github.com/spiside) and [Andrew Mussey](https://github.com/amussey). + + +### Changelog: + +Unfortunately the Cassandra project does not always increment the `cqlsh` version number, so for every +release we need to document not only the `cqlsh` version but also the `cassandra` version in which it +shipped. + +#### 6.1.2 (March 24, 2023) + +This packages `cqlsh` `6.1.0` from [Cassandra 4.1.1](https://github.com/apache/cassandra/blob/cassandra-4.1.0/bin/cqlsh.py): +* Now supports Python 3.11. +* Although this is pulled from a Cassandra `4.x` release, it is protocol compatible with Cassandra `3.x` clusters, with the exception of DESCRIBE keywords which require a 4.x cluster. + +#### 6.1.1 (skipped due to a versioning issue) + +#### 6.1.0 (Jan 4, 2023) + +This packages `cqlsh` `6.1.0` from [Cassandra 4.1](https://github.com/apache/cassandra/blob/cassandra-4.1.0/bin/cqlsh.py): +* Requires Python 3.6+. +* Although this is pulled from a Cassandra `4.x` release, it is protocol compatible with Cassandra `3.x` clusters, with the exception of DESCRIBE keywords which require a 4.x cluster. + +#### 6.0.1 (Jan 18, 2022) + +The actual source code is identical to the `cqlsh` `6.0.0` release, except it's now packaged as +a module. This allows it to be used as a library, not just an executable script. It also provides +better Windows support. Details in https://github.com/jeffwidman/cqlsh/pull/7 by @bschoening. + +Note: This release was yanked from PyPI because it [broke Python 2 compatibility](https://github.com/jeffwidman/cqlsh/issues/11). + +#### 6.0.0 (Aug 3, 2021) + +This packages `cqlsh` `6.0.0` from [Cassandra 4.0](https://github.com/apache/cassandra/blob/cassandra-4.0.0/bin/cqlsh.py): +* Requires Python 3.6+ or 2.7 (although support for Python 2 is deprecated). +* Although this is pulled from a Cassandra `4.x` release, it should generally work against Cassandra `3.x` clusters without needing to set any flags. + + +#### 6.0.0b4 (Mar 9, 2021) + +This packages `cqlsh` `5.0.1` from [Cassandra 4.0-beta4](https://github.com/apache/cassandra/blob/cassandra-4.0-beta4/bin/cqlsh.py): +* Now supports Python 3. +* Although this is pulled from a Cassandra `4.x` release, it should generally work against Cassandra `3.x` clusters without needing to set any flags. + +#### 5.0.5 (Mar 9, 2021) + +This packages `cqlsh` `5.0.1` from [Cassandra 3.11.10](https://github.com/apache/cassandra/blob/cassandra-3.11.10/bin/cqlsh.py). + +#### 5.0.4 (Mar 29, 2017) + +This packages `cqlsh` `5.0.1` from [Cassandra 3.4.0](https://github.com/apache/cassandra/blob/cassandra-3.4/bin/cqlsh.py). + + +#### 5.0.3 (Mar 21, 2016) + +This packages `cqlsh` `5.0.1` from [Cassandra 2.2.0](https://github.com/apache/cassandra/blob/cassandra-2.2.0/bin/cqlsh.py). + + +#### 4.1.1 (Feb 11, 2014) + +This packages `cqlsh` `4.1.1` from [Cassandra 2.0.5](https://github.com/apache/cassandra/blob/cassandra-2.0.5/bin/cqlsh). + + +#### 4.1.0 (Dec 2, 2013) + +This packages `cqlsh` `4.1.0` from [Cassandra 2.0.3](https://github.com/apache/cassandra/blob/cassandra-2.0.3/bin/cqlsh). + + +#### 4.0.1 (Oct 14, 2013) + +This packages `cqlsh` `4.0.1` from [Cassandra 2.0.1](https://github.com/apache/cassandra/blob/cassandra-2.0.1/bin/cqlsh). + + +%prep +%autosetup -n cqlsh-6.1.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-cqlsh -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 6.1.2-1 +- Package Spec generated @@ -0,0 +1 @@ +243b6a2110aa6e9e4ebc890c605f99c8 cqlsh-6.1.2.tar.gz |