Skip to content

Commit

Permalink
rename package name of sql-cli from opensearch-sqlcli to `opensearc…
Browse files Browse the repository at this point in the history
…hsql` (#392) (#393)

* rename sql-cli to opensearchsql

Signed-off-by: Zhongnan Su <[email protected]>

* update workflow

Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu authored Jan 25, 2022
1 parent 284ffb5 commit d1ee116
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: lychee
uses: lycheeverse/lychee-action@master
with:
args: --accept=200,403,429,999 "./**/*.html" "./**/*.md" "./**/*.txt" --exclude "http://localhost*" "https://localhost" "https://odfe-node1:9200/" "https://community.tableau.com/docs/DOC-17978" ".*family.zzz" "https://pypi.python.org/pypi/opensearch-sqlcli/" "opensearch*" ".*@amazon.com" ".*email.com" "[email protected]" "http://timestamp.verisign.com/scripts/timstamp.dll"
args: --accept=200,403,429,999 "./**/*.html" "./**/*.md" "./**/*.txt" --exclude "http://localhost*" "https://localhost" "https://odfe-node1:9200/" "https://community.tableau.com/docs/DOC-17978" ".*family.zzz" "https://pypi.python.org/pypi/opensearchsql/" "opensearch*" ".*@amazon.com" ".*email.com" "[email protected]" "http://timestamp.verisign.com/scripts/timstamp.dll"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sql-cli-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:

- name: Create Artifact Path
run: |
mkdir -p opensearch-sqlcli-builds
cp -r ./dist/*.tar.gz ./dist/*.whl opensearch-sqlcli-builds/
mkdir -p opensearchsql-builds
cp -r ./dist/*.tar.gz ./dist/*.whl opensearchsql-builds/
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: opensearch-sqlcli
path: sql-cli/opensearch-sqlcli-builds
name: opensearchsql
path: sql-cli/opensearchsql-builds
6 changes: 3 additions & 3 deletions sql-cli/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![SQL CLI Test and Build](https://github.com/opensearch-project/sql/workflows/SQL%20CLI%20Test%20and%20Build/badge.svg)](https://github.com/opensearch-project/sql/actions)
[![Latest Version](https://img.shields.io/pypi/v/opensearch-sqlcli.svg)](https://pypi.python.org/pypi/opensearch-sqlcli/)
[![Latest Version](https://img.shields.io/pypi/v/opensearchsql.svg)](https://pypi.python.org/pypi/opensearchsql/)
[![Documentation](https://img.shields.io/badge/documentation-blue.svg)](https://docs-beta.opensearch.org/docs/sql/cli/)
[![Chat](https://img.shields.io/badge/chat-on%20forums-blue)](https://discuss.opendistrocommunity.dev/c/sql/)
![PyPi Downloads](https://img.shields.io/pypi/dm/opensearch-sqlcli.svg)
![PyPi Downloads](https://img.shields.io/pypi/dm/opensearchsql.svg)
![PRs welcome!](https://img.shields.io/badge/PRs-welcome!-success)

# OpenSearch SQL CLI
Expand Down Expand Up @@ -60,7 +60,7 @@ To install the SQL CLI:
1. Install the CLI:

```
pip3 install opensearch-sqlcli
pip3 install opensearchsql
```

The SQL CLI only works with Python 3, since Python 2 is no longer maintained since 01/01/2020. See https://pythonclock.org/
Expand Down
2 changes: 1 addition & 1 deletion sql-cli/development_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ https uses 443 by default.
2. `python3 -m pip install --user --upgrade twine`
3. `python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*`
6. Install your package from TestPyPI and do manual test
1. `pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple opensearch-sqlcli`
1. `pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple opensearchsql`
7. Upload to PyPI
1. Register an account on [PyPI](https://pypi.org/), note that these are two separate servers and the credentials from the test server are not shared with the main server.
2. Use `twine upload dist/*` to upload your package and enter your credentials for the account you registered on PyPI.You don’t need to specify --repository; the package will upload to https://pypi.org/ by default.
Expand Down
2 changes: 1 addition & 1 deletion sql-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
long_description = fh.read()

setup(
name="opensearch-sqlcli",
name="opensearchsql",
author="OpenSearch",
author_email="[email protected]",
version=version,
Expand Down

0 comments on commit d1ee116

Please sign in to comment.