From c039aeac16cf6b4319d0da1eb613ec77872f6b41 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Mon, 2 Sep 2024 16:01:28 +0000 Subject: [PATCH 1/4] Prepare Next Version --- ovos_PHAL/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovos_PHAL/version.py b/ovos_PHAL/version.py index f9d456b..316a5fd 100644 --- a/ovos_PHAL/version.py +++ b/ovos_PHAL/version.py @@ -1,7 +1,7 @@ # The following lines are replaced during the release process. # START_VERSION_BLOCK VERSION_MAJOR = 0 -VERSION_MINOR = 0 -VERSION_BUILD = 5 +VERSION_MINOR = 1 +VERSION_BUILD = 0 VERSION_ALPHA = 0 # END_VERSION_BLOCK From a62467fbc196539edb48813ead0d7dce8735f5b1 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Tue, 10 Sep 2024 19:42:05 +0100 Subject: [PATCH 2/4] chore:semver_automations (#36) --- .github/workflows/conventional-label.yaml | 10 ++ .github/workflows/dev2master.yml | 20 ---- .github/workflows/notify_matrix.yml | 23 ----- .github/workflows/publish_alpha.yml | 73 --------------- .github/workflows/publish_build.yml | 76 --------------- .github/workflows/publish_docker.yml | 45 --------- .github/workflows/publish_major.yml | 76 --------------- .github/workflows/publish_minor.yml | 76 --------------- .github/workflows/publish_stable.yml | 58 ++++++++++++ .github/workflows/release_workflow.yml | 108 ++++++++++++++++++++++ scripts/bump_alpha.py | 18 ---- scripts/bump_build.py | 21 ----- scripts/bump_major.py | 27 ------ scripts/bump_minor.py | 24 ----- scripts/remove_alpha.py | 13 --- 15 files changed, 176 insertions(+), 492 deletions(-) create mode 100644 .github/workflows/conventional-label.yaml delete mode 100644 .github/workflows/dev2master.yml delete mode 100644 .github/workflows/notify_matrix.yml delete mode 100644 .github/workflows/publish_alpha.yml delete mode 100644 .github/workflows/publish_build.yml delete mode 100644 .github/workflows/publish_docker.yml delete mode 100644 .github/workflows/publish_major.yml delete mode 100644 .github/workflows/publish_minor.yml create mode 100644 .github/workflows/publish_stable.yml create mode 100644 .github/workflows/release_workflow.yml delete mode 100644 scripts/bump_alpha.py delete mode 100644 scripts/bump_build.py delete mode 100644 scripts/bump_major.py delete mode 100644 scripts/bump_minor.py delete mode 100644 scripts/remove_alpha.py diff --git a/.github/workflows/conventional-label.yaml b/.github/workflows/conventional-label.yaml new file mode 100644 index 0000000..0a449cb --- /dev/null +++ b/.github/workflows/conventional-label.yaml @@ -0,0 +1,10 @@ +# auto add labels to PRs +on: + pull_request_target: + types: [ opened, edited ] +name: conventional-release-labels +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: bcoe/conventional-release-labels@v1 \ No newline at end of file diff --git a/.github/workflows/dev2master.yml b/.github/workflows/dev2master.yml deleted file mode 100644 index cc76fee..0000000 --- a/.github/workflows/dev2master.yml +++ /dev/null @@ -1,20 +0,0 @@ -# This workflow will generate a distribution and upload it to PyPI - -name: Push dev -> master -on: - workflow_dispatch: - -jobs: - build_and_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - ref: dev - - name: Push dev -> master - uses: ad-m/github-push-action@master - - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: master \ No newline at end of file diff --git a/.github/workflows/notify_matrix.yml b/.github/workflows/notify_matrix.yml deleted file mode 100644 index ba31058..0000000 --- a/.github/workflows/notify_matrix.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Notify Matrix Chat - -# only trigger on pull request closed events -on: - pull_request: - types: [ closed ] - -jobs: - merge_job: - # this job will only run if the PR has been merged - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Send message to Matrix bots channel - id: matrix-chat-message - uses: fadenb/matrix-chat-message@v0.0.6 - with: - homeserver: 'matrix.org' - token: ${{ secrets.MATRIX_TOKEN }} - channel: '!WjxEKjjINpyBRPFgxl:krbel.duckdns.org' - message: | - new ovos-PHAL PR merged! https://github.com/OpenVoiceOS/ovos_PHAL/pull/${{ github.event.number }} diff --git a/.github/workflows/publish_alpha.yml b/.github/workflows/publish_alpha.yml deleted file mode 100644 index a3e3a27..0000000 --- a/.github/workflows/publish_alpha.yml +++ /dev/null @@ -1,73 +0,0 @@ -# This workflow will generate a distribution and upload it to PyPI - -name: Publish Alpha Build ...aX -on: - push: - branches: - - dev - paths-ignore: - - 'ovos_PHAL/version.py' - - 'test/**' - - 'examples/**' - - '.github/**' - - '.gitignore' - - 'LICENSE' - - 'Dockerfile' - - 'CHANGELOG.md' - - 'MANIFEST.in' - - 'readme.md' - - 'scripts/**' - workflow_dispatch: - -jobs: - build_and_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: dev - fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - - name: Setup Python - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install Build Tools - run: | - python -m pip install build wheel - - name: Increment Version - run: | - VER=$(python setup.py --version) - python scripts/bump_alpha.py - - name: "Generate release changelog" - uses: heinrichreimer/github-changelog-generator-action@v2.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - id: changelog - - name: Commit to dev - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Increment Version - branch: dev - - name: version - run: echo "::set-output name=version::$(python setup.py --version)" - id: version - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: V${{ steps.version.outputs.version }} - release_name: Release ${{ steps.version.outputs.version }} - body: | - Changes in this Release - ${{ steps.changelog.outputs.changelog }} - draft: false - prerelease: true - - name: Build Distribution Packages - run: | - python setup.py bdist_wheel - - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{secrets.PYPI_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/publish_build.yml b/.github/workflows/publish_build.yml deleted file mode 100644 index 9fdcd30..0000000 --- a/.github/workflows/publish_build.yml +++ /dev/null @@ -1,76 +0,0 @@ -# This workflow will generate a distribution and upload it to PyPI - -name: Publish Build Release ..X -on: - workflow_dispatch: - -jobs: - build_and_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: dev - fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - - name: Setup Python - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install Build Tools - run: | - python -m pip install build wheel - - name: Remove alpha (declare stable) - run: | - VER=$(python setup.py --version) - python scripts/remove_alpha.py - - name: "Generate release changelog" - uses: heinrichreimer/github-changelog-generator-action@v2.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - id: changelog - - name: Commit to dev - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Declare alpha stable - branch: dev - - name: Push dev -> master - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: master - force: true - - name: version - run: echo "::set-output name=version::$(python setup.py --version)" - id: version - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: V${{ steps.version.outputs.version }} - release_name: Release ${{ steps.version.outputs.version }} - body: | - Changes in this Release - ${{ steps.changelog.outputs.changelog }} - draft: false - prerelease: false - - name: Build Distribution Packages - run: | - python setup.py bdist_wheel - - name: Prepare next Build version - run: echo "::set-output name=version::$(python setup.py --version)" - id: alpha - - name: Increment Version ${{ steps.alpha.outputs.version }}Alpha0 - run: | - VER=$(python setup.py --version) - python scripts/bump_build.py - - name: Commit to dev - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Prepare Next Version - branch: dev - - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{secrets.PYPI_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml deleted file mode 100644 index ccde8d0..0000000 --- a/.github/workflows/publish_docker.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Publish Docker Container -on: - push: - branches: - - dev - workflow_dispatch: - -env: - REGISTRY: ghcr.io - IMAGE_NAME: OpenVoiceOS/PHAL - -jobs: - build_and_publish_docker: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - ref: ${{ github.ref }} - - - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata for Docker - id: meta - uses: docker/metadata-action@v2 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=ref,event=branch - - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc - with: - context: . - file: Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/publish_major.yml b/.github/workflows/publish_major.yml deleted file mode 100644 index 87cee86..0000000 --- a/.github/workflows/publish_major.yml +++ /dev/null @@ -1,76 +0,0 @@ -# This workflow will generate a distribution and upload it to PyPI - -name: Publish Major Release X.0.0 -on: - workflow_dispatch: - -jobs: - build_and_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: dev - fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - - name: Setup Python - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install Build Tools - run: | - python -m pip install build wheel - - name: Remove alpha (declare stable) - run: | - VER=$(python setup.py --version) - python scripts/remove_alpha.py - - name: "Generate release changelog" - uses: heinrichreimer/github-changelog-generator-action@v2.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - id: changelog - - name: Commit to dev - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Declare alpha stable - branch: dev - - name: Push dev -> master - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: master - force: true - - name: version - run: echo "::set-output name=version::$(python setup.py --version)" - id: version - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: V${{ steps.version.outputs.version }} - release_name: Release ${{ steps.version.outputs.version }} - body: | - Changes in this Release - ${{ steps.changelog.outputs.changelog }} - draft: false - prerelease: false - - name: Build Distribution Packages - run: | - python setup.py bdist_wheel - - name: Prepare next Major version - run: echo "::set-output name=version::$(python setup.py --version)" - id: alpha - - name: Increment Version ${{ steps.alpha.outputs.version }}Alpha0 - run: | - VER=$(python setup.py --version) - python scripts/bump_major.py - - name: Commit to dev - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Prepare Next Version - branch: dev - - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{secrets.PYPI_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/publish_minor.yml b/.github/workflows/publish_minor.yml deleted file mode 100644 index 4e8b231..0000000 --- a/.github/workflows/publish_minor.yml +++ /dev/null @@ -1,76 +0,0 @@ -# This workflow will generate a distribution and upload it to PyPI - -name: Publish Minor Release .X.0 -on: - workflow_dispatch: - -jobs: - build_and_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: dev - fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - - name: Setup Python - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install Build Tools - run: | - python -m pip install build wheel - - name: Remove alpha (declare stable) - run: | - VER=$(python setup.py --version) - python scripts/remove_alpha.py - - name: "Generate release changelog" - uses: heinrichreimer/github-changelog-generator-action@v2.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - id: changelog - - name: Commit to dev - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Declare alpha stable - branch: dev - - name: Push dev -> master - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: master - force: true - - name: version - run: echo "::set-output name=version::$(python setup.py --version)" - id: version - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: V${{ steps.version.outputs.version }} - release_name: Release ${{ steps.version.outputs.version }} - body: | - Changes in this Release - ${{ steps.changelog.outputs.changelog }} - draft: false - prerelease: false - - name: Build Distribution Packages - run: | - python setup.py bdist_wheel - - name: Prepare next Minor version - run: echo "::set-output name=version::$(python setup.py --version)" - id: alpha - - name: Increment Version ${{ steps.alpha.outputs.version }}Alpha0 - run: | - VER=$(python setup.py --version) - python scripts/bump_minor.py - - name: Commit to dev - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Prepare Next Version - branch: dev - - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{secrets.PYPI_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/publish_stable.yml b/.github/workflows/publish_stable.yml new file mode 100644 index 0000000..3184bbe --- /dev/null +++ b/.github/workflows/publish_stable.yml @@ -0,0 +1,58 @@ +name: Stable Release +on: + push: + branches: [master] + workflow_dispatch: + +jobs: + publish_stable: + uses: TigreGotico/gh-automations/.github/workflows/publish-stable.yml@master + secrets: inherit + with: + branch: 'master' + version_file: 'ovos_PHAL/version.py' + setup_py: 'setup.py' + publish_release: true + + publish_pypi: + needs: publish_stable + if: success() # Ensure this job only runs if the previous job succeeds + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: dev + fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install Build Tools + run: | + python -m pip install build wheel + - name: version + run: echo "::set-output name=version::$(python setup.py --version)" + id: version + - name: Build Distribution Packages + run: | + python setup.py sdist bdist_wheel + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{secrets.PYPI_TOKEN}} + + + sync_dev: + needs: publish_stable + if: success() # Ensure this job only runs if the previous job succeeds + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. + ref: master + - name: Push master -> dev + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: dev \ No newline at end of file diff --git a/.github/workflows/release_workflow.yml b/.github/workflows/release_workflow.yml new file mode 100644 index 0000000..a255a35 --- /dev/null +++ b/.github/workflows/release_workflow.yml @@ -0,0 +1,108 @@ +name: Release Alpha and Propose Stable + +on: + pull_request: + types: [closed] + branches: [dev] + +jobs: + publish_alpha: + if: github.event.pull_request.merged == true + uses: TigreGotico/gh-automations/.github/workflows/publish-alpha.yml@master + secrets: inherit + with: + branch: 'dev' + version_file: 'ovos_PHAL/version.py' + setup_py: 'setup.py' + update_changelog: true + publish_prerelease: true + changelog_max_issues: 100 + + notify: + if: github.event.pull_request.merged == true + needs: publish_alpha + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Send message to Matrix bots channel + id: matrix-chat-message + uses: fadenb/matrix-chat-message@v0.0.6 + with: + homeserver: 'matrix.org' + token: ${{ secrets.MATRIX_TOKEN }} + channel: '!WjxEKjjINpyBRPFgxl:krbel.duckdns.org' + message: | + new ${{ github.event.repository.name }} PR merged! https://github.com/${{ github.repository }}/pull/${{ github.event.number }} + + publish_pypi: + needs: publish_alpha + if: success() # Ensure this job only runs if the previous job succeeds + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: dev + fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install Build Tools + run: | + python -m pip install build wheel + - name: version + run: echo "::set-output name=version::$(python setup.py --version)" + id: version + - name: Build Distribution Packages + run: | + python setup.py sdist bdist_wheel + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{secrets.PYPI_TOKEN}} + + + propose_release: + needs: publish_alpha + if: success() # Ensure this job only runs if the previous job succeeds + runs-on: ubuntu-latest + steps: + - name: Checkout dev branch + uses: actions/checkout@v3 + with: + ref: dev + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + + - name: Get version from setup.py + id: get_version + run: | + VERSION=$(python setup.py --version) + echo "VERSION=$VERSION" >> $GITHUB_ENV + + - name: Create and push new branch + run: | + git checkout -b release-${{ env.VERSION }} + git push origin release-${{ env.VERSION }} + + - name: Open Pull Request from dev to master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # Variables + BRANCH_NAME="release-${{ env.VERSION }}" + BASE_BRANCH="master" + HEAD_BRANCH="release-${{ env.VERSION }}" + PR_TITLE="Release ${{ env.VERSION }}" + PR_BODY="Human review requested!" + + # Create a PR using GitHub API + curl -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token $GITHUB_TOKEN" \ + -d "{\"title\":\"$PR_TITLE\",\"body\":\"$PR_BODY\",\"head\":\"$HEAD_BRANCH\",\"base\":\"$BASE_BRANCH\"}" \ + https://api.github.com/repos/${{ github.repository }}/pulls + diff --git a/scripts/bump_alpha.py b/scripts/bump_alpha.py deleted file mode 100644 index 59b96b1..0000000 --- a/scripts/bump_alpha.py +++ /dev/null @@ -1,18 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "ovos_PHAL", "version.py") -version_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - else: - print(line.rstrip('\n')) diff --git a/scripts/bump_build.py b/scripts/bump_build.py deleted file mode 100644 index 52818ce..0000000 --- a/scripts/bump_build.py +++ /dev/null @@ -1,21 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "ovos_PHAL", "version.py") -version_var_name = "VERSION_BUILD" -alpha_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - elif line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) diff --git a/scripts/bump_major.py b/scripts/bump_major.py deleted file mode 100644 index 72a6667..0000000 --- a/scripts/bump_major.py +++ /dev/null @@ -1,27 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "ovos_PHAL", "version.py") -version_var_name = "VERSION_MAJOR" -minor_var_name = "VERSION_MINOR" -build_var_name = "VERSION_BUILD" -alpha_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - elif line.startswith(minor_var_name): - print(f"{minor_var_name} = 0") - elif line.startswith(build_var_name): - print(f"{build_var_name} = 0") - elif line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) diff --git a/scripts/bump_minor.py b/scripts/bump_minor.py deleted file mode 100644 index 203686d..0000000 --- a/scripts/bump_minor.py +++ /dev/null @@ -1,24 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "ovos_PHAL", "version.py") -version_var_name = "VERSION_MINOR" -build_var_name = "VERSION_BUILD" -alpha_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - elif line.startswith(build_var_name): - print(f"{build_var_name} = 0") - elif line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) diff --git a/scripts/remove_alpha.py b/scripts/remove_alpha.py deleted file mode 100644 index 41b8a1a..0000000 --- a/scripts/remove_alpha.py +++ /dev/null @@ -1,13 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "ovos_PHAL", "version.py") - -alpha_var_name = "VERSION_ALPHA" - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) From cf545cda0eb665c28ed5dea029ad3627dce45787 Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Tue, 10 Sep 2024 18:42:18 +0000 Subject: [PATCH 3/4] Increment Version to 0.1.0a1 --- ovos_PHAL/version.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ovos_PHAL/version.py b/ovos_PHAL/version.py index 316a5fd..5fcf6d3 100644 --- a/ovos_PHAL/version.py +++ b/ovos_PHAL/version.py @@ -1,7 +1,6 @@ -# The following lines are replaced during the release process. # START_VERSION_BLOCK VERSION_MAJOR = 0 VERSION_MINOR = 1 VERSION_BUILD = 0 -VERSION_ALPHA = 0 -# END_VERSION_BLOCK +VERSION_ALPHA = 1 +# END_VERSION_BLOCK \ No newline at end of file From cc0657793a9a5bde3766c1ba6f007e9c9776bd0e Mon Sep 17 00:00:00 2001 From: JarbasAl Date: Tue, 10 Sep 2024 18:42:40 +0000 Subject: [PATCH 4/4] Update Changelog --- CHANGELOG.md | 251 +-------------------------------------------------- 1 file changed, 3 insertions(+), 248 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 440ff29..c54eaf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,257 +1,12 @@ # Changelog -## [V0.0.5a17](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a17) (2024-06-28) +## [0.1.0a1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/0.1.0a1) (2024-09-10) -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a16...V0.0.5a17) +[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5...0.1.0a1) **Merged pull requests:** -- Support `enabled: False` config for plugins with validators [\#35](https://github.com/OpenVoiceOS/ovos-PHAL/pull/35) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.5a16](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a16) (2024-06-02) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a15...V0.0.5a16) - -**Closed issues:** - -- ovos\_PHAL\_admin doesn't start because of combo\_lock. [\#29](https://github.com/OpenVoiceOS/ovos-PHAL/issues/29) - -**Merged pull requests:** - -- sj201 v6 and v10 division [\#32](https://github.com/OpenVoiceOS/ovos-PHAL/pull/32) ([builderjer](https://github.com/builderjer)) - -## [V0.0.5a15](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a15) (2023-12-29) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a14...V0.0.5a15) - -**Merged pull requests:** - -- packaging/update\_requirements [\#28](https://github.com/OpenVoiceOS/ovos-PHAL/pull/28) ([JarbasAl](https://github.com/JarbasAl)) -- Update requirements.txt [\#27](https://github.com/OpenVoiceOS/ovos-PHAL/pull/27) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a14](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a14) (2023-12-29) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a13...V0.0.5a14) - -**Merged pull requests:** - -- Update requirements.txt [\#26](https://github.com/OpenVoiceOS/ovos-PHAL/pull/26) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a13](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a13) (2023-10-18) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a12...V0.0.5a13) - -**Fixed bugs:** - -- fix/PHAL admin service status [\#25](https://github.com/OpenVoiceOS/ovos-PHAL/pull/25) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a12](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a12) (2023-09-19) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a11...V0.0.5a12) - -**Implemented enhancements:** - -- load either user or admin [\#24](https://github.com/OpenVoiceOS/ovos-PHAL/pull/24) ([emphasize](https://github.com/emphasize)) - -## [V0.0.5a11](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a11) (2023-09-12) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a10...V0.0.5a11) - -**Fixed bugs:** - -- fix/no\_need\_to\_subclass [\#23](https://github.com/OpenVoiceOS/ovos-PHAL/pull/23) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a10](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a10) (2023-07-14) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a9...V0.0.5a10) - -**Merged pull requests:** - -- rm deprecation logs name == skill\_id [\#21](https://github.com/OpenVoiceOS/ovos-PHAL/pull/21) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a9](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a9) (2023-07-12) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a8...V0.0.5a9) - -**Merged pull requests:** - -- Update requirements.txt [\#20](https://github.com/OpenVoiceOS/ovos-PHAL/pull/20) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a8](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a8) (2023-07-03) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a7...V0.0.5a8) - -## [V0.0.5a7](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a7) (2023-07-03) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a6...V0.0.5a7) - -## [V0.0.5a6](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a6) (2023-05-16) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a5...V0.0.5a6) - -**Merged pull requests:** - -- Update requirements.txt [\#19](https://github.com/OpenVoiceOS/ovos-PHAL/pull/19) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a5](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a5) (2023-05-12) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a4...V0.0.5a5) - -**Merged pull requests:** - -- add project description [\#18](https://github.com/OpenVoiceOS/ovos-PHAL/pull/18) ([emphasize](https://github.com/emphasize)) - -## [V0.0.5a4](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a4) (2023-04-11) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a3...V0.0.5a4) - -**Merged pull requests:** - -- refactor/update\_imports [\#17](https://github.com/OpenVoiceOS/ovos-PHAL/pull/17) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a3](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a3) (2023-04-08) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a2...V0.0.5a3) - -**Merged pull requests:** - -- bump requirements.txt [\#16](https://github.com/OpenVoiceOS/ovos-PHAL/pull/16) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a2](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a2) (2023-04-05) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.5a1...V0.0.5a2) - -**Merged pull requests:** - -- bump requirements.txt [\#15](https://github.com/OpenVoiceOS/ovos-PHAL/pull/15) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.5a1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.5a1) (2023-04-04) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.4...V0.0.5a1) - -## [V0.0.4](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.4) (2022-11-16) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.4a4...V0.0.4) - -## [V0.0.4a4](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.4a4) (2022-11-16) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.4a3...V0.0.4a4) - -**Closed issues:** - -- problem with download in buildroot [\#10](https://github.com/OpenVoiceOS/ovos-PHAL/issues/10) - -**Merged pull requests:** - -- Update OPM dependency to stable version [\#11](https://github.com/OpenVoiceOS/ovos-PHAL/pull/11) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.4a3](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.4a3) (2022-11-01) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.4a2...V0.0.4a3) - -## [V0.0.4a2](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.4a2) (2022-11-01) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.4a1...V0.0.4a2) - -## [V0.0.4a1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.4a1) (2022-11-01) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.3...V0.0.4a1) - -## [V0.0.3](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.3) (2022-10-27) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.3a2...V0.0.3) - -**Merged pull requests:** - -- Update license tests automation [\#8](https://github.com/OpenVoiceOS/ovos-PHAL/pull/8) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.3a2](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.3a2) (2022-10-27) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.3a1...V0.0.3a2) - -**Merged pull requests:** - -- Update dependencies to stable versions [\#7](https://github.com/OpenVoiceOS/ovos-PHAL/pull/7) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.3a1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.3a1) (2022-10-19) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2...V0.0.3a1) - -**Fixed bugs:** - -- Add kwargs handling to accept same arguments as services in ovos-core [\#6](https://github.com/OpenVoiceOS/ovos-PHAL/pull/6) ([NeonDaniel](https://github.com/NeonDaniel)) - -## [V0.0.2](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2) (2022-07-13) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a10...V0.0.2) - -## [V0.0.2a10](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a10) (2022-07-13) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a9...V0.0.2a10) - -## [V0.0.2a9](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a9) (2022-05-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a8...V0.0.2a9) - -## [V0.0.2a8](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a8) (2022-05-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a7...V0.0.2a8) - -## [V0.0.2a7](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a7) (2022-05-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a6...V0.0.2a7) - -## [V0.0.2a6](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a6) (2022-05-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a5...V0.0.2a6) - -## [V0.0.2a5](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a5) (2022-05-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a4...V0.0.2a5) - -## [V0.0.2a4](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a4) (2022-05-07) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a3...V0.0.2a4) - -**Merged pull requests:** - -- notify matrix chat on PR merged [\#5](https://github.com/OpenVoiceOS/ovos-PHAL/pull/5) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.2a3](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a3) (2022-03-16) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a2...V0.0.2a3) - -**Implemented enhancements:** - -- process status [\#4](https://github.com/OpenVoiceOS/ovos-PHAL/pull/4) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.2a2](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a2) (2022-03-14) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.2a1...V0.0.2a2) - -**Fixed bugs:** - -- Fix/phal config [\#3](https://github.com/OpenVoiceOS/ovos-PHAL/pull/3) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.2a1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.2a1) (2022-03-14) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.1...V0.0.2a1) - -**Implemented enhancements:** - -- PHAL validator [\#2](https://github.com/OpenVoiceOS/ovos-PHAL/pull/2) ([JarbasAl](https://github.com/JarbasAl)) - -## [V0.0.1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.1) (2022-02-25) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/V0.0.1a1...V0.0.1) - -## [V0.0.1a1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/V0.0.1a1) (2022-02-25) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/0.0.1a1...V0.0.1a1) - -## [0.0.1a1](https://github.com/OpenVoiceOS/ovos-PHAL/tree/0.0.1a1) (2022-02-05) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-PHAL/compare/bd50000eda7fbba247db888b123bd64cf5738ddc...0.0.1a1) +- chore:semver\_automations [\#36](https://github.com/OpenVoiceOS/ovos-PHAL/pull/36) ([JarbasAl](https://github.com/JarbasAl))