Skip to content

Commit

Permalink
New hspylib-askai revision: v'unspecified' >> No commits
Browse files Browse the repository at this point in the history
  • Loading branch information
yorevs committed Dec 9, 2024
1 parent f841e39 commit 1d2ed2e
Show file tree
Hide file tree
Showing 35 changed files with 95 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: dist
path: dist/
path: build/dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

Expand Down
6 changes: 3 additions & 3 deletions bumpver.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
current_version = "1.2.9"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "++version {old_version} -> {new_version}"
commit = true
tag = true
push = true
commit = false
tag = false
push = false

[bumpver.file_patterns]
"bumpver.toml" = ['current_version = "{version}"']
Expand Down
30 changes: 28 additions & 2 deletions gradle/pypi-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,34 @@ task sdist(type: Task) {
task publish(type: Task) {
group = 'Publish'
description = "Publish the module to PyPi repository"
dependsOn sdist
finalizedBy patchVersion
def out = new ByteArrayOutputStream()
exec {
commandLine 'git', 'log', '--pretty=format:%s', 'origin/master..HEAD'
standardOutput = out
}
def tag = "v${project.ext.app_version}"
def commit_logs = out.toString()
def prefix = commit_logs?.trim() ? commit_logs?.split('\n').size() + ' commits' : ' No commits'
def commitMsg = "New ${project.app_name} revision: '${tag}' >> ${prefix}"
println("Publishing ${project.app_name}...")
println("Revision commits: ${commitMsg} Tag?= ${tag}")
if (tag) {
exec {
commandLine 'git', 'tag', '-a', "${tag}", '-m', "New ${project.app_name} revision ${tag}"
}
exec {
commandLine 'git', 'push', 'origin', "${tag}"
}
}
exec {
commandLine 'git', 'add', '-A', ':/'
}
exec {
commandLine 'git', 'commit', '-m', "${commitMsg}"
}
exec {
commandLine 'git', 'push', 'origin', 'HEAD'
}
}

/* Show PyPi module details */
Expand Down
4 changes: 2 additions & 2 deletions src/demo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: demo
"""Package initialization."""
Expand All @@ -12,4 +12,4 @@
'others',
'utils'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/demo/components/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: demo.components
"""Package initialization."""
Expand All @@ -14,4 +14,4 @@
'vision_demo',
'webcam_demo'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/demo/devel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: demo.devel
"""Package initialization."""
Expand All @@ -10,4 +10,4 @@
'gpt2_suggester',
'vision-tests'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/demo/features/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: demo.features
"""Package initialization."""
Expand All @@ -10,4 +10,4 @@
'router_demo',
'tools'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/demo/features/rag/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: demo.features.rag
"""Package initialization."""

__all__ = [
'x_refs_demo'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/demo/features/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: demo.features.tools
"""Package initialization."""

__all__ = [
'query_output_demo'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/demo/others/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: demo.others
"""Package initialization."""
Expand All @@ -14,4 +14,4 @@
'translate_demo',
'vision_model_demos'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
2 changes: 1 addition & 1 deletion src/main/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Terminal](https://badgen.net/badge/icon/terminal?icon=terminal&label)](https://github.com/yorevs/homesetup)
[![License](https://badgen.net/badge/license/MIT/gray)](LICENSE.md)
[![Release](https://badgen.net/badge/release/v1.2.8/gray)](docs/CHANGELOG.md#unreleased)
[![Release](https://badgen.net/badge/release/v1.2.9/gray)](docs/CHANGELOG.md#unreleased)
[![Donate](https://badgen.net/badge/paypal/donate/yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J5CDEFLF6M3H4)
[![build-and-test](https://github.com/yorevs/askai/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/yorevs/askai/actions/workflows/build-and-test.yml)

Expand Down
4 changes: 2 additions & 2 deletions src/main/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main
"""Package initialization."""

__all__ = [
'askai'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai
"""Package initialization."""
Expand All @@ -11,4 +11,4 @@
'language',
'tui'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core
"""Package initialization."""
Expand All @@ -22,4 +22,4 @@
'router',
'support'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/commander/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.commander
"""Package initialization."""
Expand All @@ -9,4 +9,4 @@
'commander',
'commands'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/commander/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.commander.commands
"""Package initialization."""
Expand All @@ -13,4 +13,4 @@
'settings_cmd',
'tts_stt_cmd'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/component/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.component
"""Package initialization."""
Expand All @@ -18,4 +18,4 @@
'summarizer',
'text_streamer'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/engine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.engine
"""Package initialization."""
Expand All @@ -12,4 +12,4 @@
'engine_factory',
'openai'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/engine/openai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.engine.openai
"""Package initialization."""
Expand All @@ -12,4 +12,4 @@
'openai_vision',
'temperature'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/enums/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.enums
"""Package initialization."""
Expand All @@ -12,4 +12,4 @@
'run_modes',
'verbosity'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.model
"""Package initialization."""
Expand All @@ -16,4 +16,4 @@
'search_result',
'summary_result'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/processors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.processors
"""Package initialization."""
Expand All @@ -14,4 +14,4 @@
'splitter',
'task_splitter'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/processors/splitter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.processors.splitter
"""Package initialization."""
Expand All @@ -13,4 +13,4 @@
'splitter_states',
'splitter_transitions'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/router/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.router
"""Package initialization."""
Expand All @@ -12,4 +12,4 @@
'task_agent',
'tools'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/router/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.router.tools
"""Package initialization."""
Expand All @@ -15,4 +15,4 @@
'vision',
'webcam'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/core/support/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.core.support
"""Package initialization."""
Expand All @@ -16,4 +16,4 @@
'text_formatter',
'utilities'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
4 changes: 2 additions & 2 deletions src/main/askai/exception/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-askai v1.2.8
# hspylib-askai v1.2.9
#
# Package: main.askai.exception
"""Package initialization."""

__all__ = [
'exceptions'
]
__version__ = '1.2.8'
__version__ = '1.2.9'
Loading

0 comments on commit 1d2ed2e

Please sign in to comment.