Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to old neuro-cli/sdk packages #3034

Merged
merged 3 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,14 @@ jobs:
run: |
cd apolo-sdk
python -m build
sed -i 's/name = apolo-sdk/name = neuro-sdk/g' setup.cfg
python -m build -o dist-neuro
- name: Make CLI dists
run: |
cd apolo-cli
python -m build
sed -i 's/name = apolo-cli/name = neuro-cli/g' setup.cfg
python -m build -o dist-neuro
- name: PyPI upload SDK
env:
TWINE_USERNAME: __token__
Expand All @@ -224,6 +228,22 @@ jobs:
TWINE_NON_INTERACTIVE: 1
run: |
twine upload apolo-cli/dist/*
- name: PyPI upload neuro SDK
# for backward compatibility
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_SDK_NEURO }}
TWINE_NON_INTERACTIVE: 1
run: |
twine upload apolo-sdk/dist-neuro/*
- name: PyPI upload neuro CLI
# for backward compatibility
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_CLI_NEURO }}
TWINE_NON_INTERACTIVE: 1
run: |
twine upload apolo-cli/dist-neuro/*
- name: Merge dists for GitHub Release
run: |
mkdir dist
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
.vscode
apolo-cli/build
apolo-cli/dist
apolo-cli/dist-neuro
apolo-sdk/build
apolo-sdk/dist
apolo-sdk/dist-neuro
apolo-sdk/docs/_build
coverage.xml
pip-wheel-metadata
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.D/3034.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Release neuro-cli/sdk packages for backward compatibility.
2 changes: 2 additions & 0 deletions apolo-cli/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ install_requires =
[options.entry_points]
console_scripts =
apolo = apolo_cli.main:main
neuro = apolo_cli.main:main
docker-credential-apolo = apolo_cli.docker_credential_helper:main
docker-credential-neuro = apolo_cli.docker_credential_helper:main
apolo_api =
apolo-cli=apolo_cli.plugin:setup

Expand Down
1 change: 1 addition & 0 deletions apolo-sdk/src/neuro_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from apolo_sdk import * # noqa: F401, F403
Loading