Skip to content

Commit

Permalink
Merge pull request #118 from MOV-AI/fix/update_cicd
Browse files Browse the repository at this point in the history
Fix: update cicd to v2
  • Loading branch information
AlexFernandes-MOVAI authored Feb 21, 2025
2 parents 238eba4 + d7e8e33 commit 9d7f5b1
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 67 deletions.
15 changes: 0 additions & 15 deletions .bumpversion.cfg

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/DeployOnGitRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on:

jobs:
Release:
uses: MOV-AI/.github/.github/workflows/py-deb-workflow.yml@v1
uses: MOV-AI/.github/.github/workflows/py-deb-workflow.yml@v2
with:
release: 'true'
release: true
prod_publish_repos: '["ppa-main","ppa-public"]'
secrets:
auto_commit_user: ${{ secrets.RAISE_BOT_COMMIT_USER }}
auto_commit_mail: ${{ secrets.RAISE_BOT_COMMIT_MAIL }}
auto_commit_password: ${{ secrets.RAISE_BOT_COMMIT_PASSWORD }}
registry_user: ${{ secrets.PORTUS_APP_USER }}
registry_password: ${{ secrets.PORTUS_APP_TOKEN }}
nexus_publisher_user: ${{ secrets.NEXUS_PUBLISHER_USR }}
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/DeployOnMergeMain.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: "CI - On Push"
name: "Deploy - On branch main/release Push"
on:
push:
branches:
- main
- 'releases/**'
paths-ignore:
- '.bumpversion.cfg'
- 'setup.py'

jobs:
CI:
uses: MOV-AI/.github/.github/workflows/py-deb-workflow.yml@v1
uses: MOV-AI/.github/.github/workflows/py-deb-workflow.yml@v2
with:
deploy: 'true'
deploy: true
with_docs: false
secrets:
auto_commit_user: ${{ secrets.RAISE_BOT_COMMIT_USER }}
auto_commit_mail: ${{ secrets.RAISE_BOT_COMMIT_MAIL }}
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/TestOnPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ on:
- dev
- main
- 'releases/**'
paths-ignore:
- '.bumpversion.cfg'
- 'setup.py'

jobs:
CI:
uses: MOV-AI/.github/.github/workflows/py-deb-workflow.yml@v1
uses: MOV-AI/.github/.github/workflows/py-deb-workflow.yml@v2
with:
deploy: 'false'
deploy: false
with_docs: false
secrets:
auto_commit_user: ${{ secrets.RAISE_BOT_COMMIT_USER }}
auto_commit_mail: ${{ secrets.RAISE_BOT_COMMIT_MAIL }}
auto_commit_password: ${{ secrets.RAISE_BOT_COMMIT_PASSWORD }}
registry_user: ${{ secrets.PORTUS_APP_USER }}
registry_password: ${{ secrets.PORTUS_APP_TOKEN }}
nexus_publisher_user: ${{ secrets.NEXUS_PUBLISHER_USR }}
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repos:
- id: mixed-line-ending # fixes line files line ending
args: [--fix=lf]
- id: trailing-whitespace # removes trailing whitespaces from text files
exclude: .bumpversion.cfg # a tool edits this file and leaves trailing spaces, must be ignored
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ disable=print-statement,
no-self-use,
duplicate-code,
invalid-name
ignore=setup.py, tests, node_modules, start.py, local_deploy.py
ignore=tests, node_modules, start.py, local_deploy.py
ignore-patterns=.*_test.*?py,.*test_.*?py,.*test.*?py,.*pb2.*,.*yml, .*toml, .*txt, .*md, .*yaml, .*bash, .*json

[FORMAT]
Expand Down
Empty file added CHANGELOG.md
Empty file.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Python framework to enable building and packaging of MOV.AI ROS components.



**main branch:**

[![Deploy - On branch main/release Push](https://github.com/MOV-AI/mobros-build-system/actions/workflows/DeployOnMergeMain.yml/badge.svg)](https://github.com/MOV-AI/mobros-build-system/actions/workflows/DeployOnMergeMain.yml)
Expand Down
3 changes: 1 addition & 2 deletions build-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
pytest
pytest-cov
mock
bump2version
flake8
pylint
black
tox
tox==4.*
ruamel.yaml
boto3
pydpkg
Expand Down
2 changes: 1 addition & 1 deletion mobros/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" Module that contains the application version """
version = "2.1.0-0"
version = "2.1.0-14"
62 changes: 59 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,62 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
"setuptools>=61",
"setuptools-scm>=8.0",
]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"

[project]
name = "mobros"
version = "2.1.0.14"
authors = [
{name = "DevOps team", email = "[email protected]"},
]
description = "Movai Object Builder for Ros, The framework to build, raise and package ros and ros movai packages"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"boto3",
"ruamel.yaml",
"pydpkg",
"rosdep",
"setuptools==45.0",
"pyopenssl==23.0.0",
"anytree",
"termcolor",
"urllib3==1.*"
]

[project.urls]
Repository = "https://github.com/MOV-AI/movai-ros-build-system"

[project.scripts]
mobros = "mobros.handler:handle"

[tool.setuptools.packages.find]
include = ["mobros*"]
exclude = ["mobros.tests*"]

[tool.black]
line-length = 100

[tool.bumpversion]
current_version = "2.1.0.14"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)?(\\.(?P<build>\\d+))?"
serialize = ["{major}.{minor}.{patch}.{build}"]

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
regex = true

[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = '# vTBD'
serialize = ["{major}.{minor}.{patch}"]
replace = "# v{new_version}"
regex = true
ignore_missing_version = true
31 changes: 0 additions & 31 deletions setup.py

This file was deleted.

0 comments on commit 9d7f5b1

Please sign in to comment.