Skip to content

Commit

Permalink
[bug] Fix for python 3.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Zarubin committed Nov 12, 2024
1 parent 343a416 commit 2c5e2e2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

### Subscribe and like!

[![Version](https://img.shields.io/badge/PyPI-3.2.0-blue?logo=pypi&logoColor=white)](https://pypi.org/project/aurora-cli/)
[![Releases](https://img.shields.io/badge/dynamic/json?url=https://api.github.com/repos/keygenqt/aurora-cli/releases/latest&query=assets[0][download_count]&label=Releases&color=blue&logo=github&prefix=3.2.0%20(&suffix=))](https://github.com/keygenqt/aurora-cli/releases)
[![Version](https://img.shields.io/badge/PyPI-3.2.1-blue?logo=pypi&logoColor=white)](https://pypi.org/project/aurora-cli/)
[![Releases](https://img.shields.io/badge/dynamic/json?url=https://api.github.com/repos/keygenqt/aurora-cli/releases/latest&query=assets[0][download_count]&label=Releases&color=blue&logo=github&prefix=3.2.1%20(&suffix=))](https://github.com/keygenqt/aurora-cli/releases)

![picture](https://github.com/keygenqt/aurora-cli/blob/main/data/images/banner/banner_1000.png?raw=true)

Expand Down
3 changes: 2 additions & 1 deletion aurora_cli/src/base/common/features/request_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,13 @@ def request_versions_applications() -> []:
apps = {}
sorts = {}
for value in result:
name = f'{value['name']}|{value['arch']}'
name = '{}|{}'.format(value['name'], value['arch'])
if not name in sorts.keys():
sorts[name] = [value['version']]
else:
sorts[name].append(value['version'])

# @todo Needs optimization
for key in sorts.keys():
sorts[key].sort(key=Version)
name = key.split('|')[0]
Expand Down
2 changes: 1 addition & 1 deletion aurora_cli/src/base/constants/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

APP_NAME = 'aurora-cli'

APP_VERSION = '3.2.0'
APP_VERSION = '3.2.1'

PATH_DIR = '~/.aurora-cli'

Expand Down
4 changes: 2 additions & 2 deletions aurora_cli/src/base/utils/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def prompt_flutter_select_version(select: bool) -> Any:


def prompt_apps_id_select(apps) -> Any:
versions = [f'{apps[key]['spec']['name']}' for key in apps.keys()]
versions = ['{}'.format(apps[key]['spec']['name']) for key in apps.keys()]
prompt_result = prompt_model_select('application', versions, True, None)
if prompt_result.is_error():
echo_stdout(prompt_result)
Expand All @@ -53,7 +53,7 @@ def prompt_apps_id_select(apps) -> Any:


def prompt_apps_arch_select(apps, app_id) -> Any:
arches = [f'{item['arch']}' for item in apps[app_id]['versions']]
arches = ['{}'.format(item['arch']) for item in apps[app_id]['versions']]
prompt_result = prompt_model_select('architecture', arches, True, None)
if prompt_result.is_error():
echo_stdout(prompt_result)
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ sudo apt-get install \
Для запуска такого приложения достаточно выполнить:

```shell
python3 ~/Downloads/aurora-cli-3.2.0.pyz
python3 ~/Downloads/aurora-cli-3.2.1.pyz
```
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

setuptools.setup(
name='aurora-cli',
version='3.2.0',
version='3.2.1',
author='Vitaliy Zarubin',
author_email='[email protected]',
description='An application that simplifies the life of an application developer for the Aurora OS.',
Expand Down

0 comments on commit 2c5e2e2

Please sign in to comment.