Compare commits

..

24 Commits

Author SHA1 Message Date
c7dfca46e0 fix(ci): combined docker + python CI 2024-04-26 17:15:41 +01:00
7394dc2c1c chore(pip-prod)(deps): bump sentry-sdk from 1.45.0 to 2.0.1 (#195)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.45.0 to 2.0.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/1.45.0...2.0.1)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-26 17:13:56 +01:00
a6cef02802 chore(pip-prod)(deps): bump webex-bot from 0.4.7 to 0.5.1 (#194)
Bumps [webex-bot](https://github.com/fbradyirl/webex_bot) from 0.4.7 to 0.5.1.
- [Release notes](https://github.com/fbradyirl/webex_bot/releases)
- [Commits](https://github.com/fbradyirl/webex_bot/compare/v0.4.7...v0.5.1)

---
updated-dependencies:
- dependency-name: webex-bot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-26 17:07:24 +01:00
e82cfebe8f fix(ci): auto generate release notes 2024-04-26 17:03:23 +01:00
a016e0c376 chore(pip-prod)(deps): bump webex-bot from 0.4.1 to 0.4.7 (#190)
* chore(pip-prod)(deps): bump webex-bot from 0.4.1 to 0.4.7

Bumps [webex-bot](https://github.com/fbradyirl/webex_bot) from 0.4.1 to 0.4.7.
- [Release notes](https://github.com/fbradyirl/webex_bot/releases)
- [Commits](https://github.com/fbradyirl/webex_bot/compare/v0.4.1...v0.4.7)

---
updated-dependencies:
- dependency-name: webex-bot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(pip-prod)(deps): bump websockets from 10.2 to 11.0.3

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Tainton <luke@tainton.uk>
2024-04-24 21:45:44 +01:00
6d524402e7 chore(pip-prod)(deps): bump platformdirs from 4.2.0 to 4.2.1 (#191)
Bumps [platformdirs](https://github.com/platformdirs/platformdirs) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/platformdirs/platformdirs/releases)
- [Changelog](https://github.com/platformdirs/platformdirs/blob/main/CHANGES.rst)
- [Commits](https://github.com/platformdirs/platformdirs/compare/4.2.0...4.2.1)

---
updated-dependencies:
- dependency-name: platformdirs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-24 21:40:28 +01:00
d67e9e3cf7 chore(pip-prod)(deps): bump virtualenv from 20.25.3 to 20.26.0 (#189)
Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.25.3 to 20.26.0.
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/virtualenv/compare/20.25.3...20.26.0)

---
updated-dependencies:
- dependency-name: virtualenv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-24 21:32:39 +01:00
56a9b2b49d Merge pull request #188 from luketainton/dependabot/pip/pluggy-1.5.0
chore(pip-prod)(deps): bump pluggy from 1.4.0 to 1.5.0
2024-04-23 07:31:29 +01:00
35e7267771 chore(pip-prod)(deps): bump pluggy from 1.4.0 to 1.5.0
Bumps [pluggy](https://github.com/pytest-dev/pluggy) from 1.4.0 to 1.5.0.
- [Changelog](https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pluggy/compare/1.4.0...1.5.0)

---
updated-dependencies:
- dependency-name: pluggy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 18:54:00 +00:00
84fa632fa4 Merge pull request #187 from luketainton/dependabot/pip/identify-2.5.36
chore(pip-prod)(deps): bump identify from 2.5.35 to 2.5.36
2024-04-22 19:52:37 +01:00
70abc22680 chore(pip-prod)(deps): bump identify from 2.5.35 to 2.5.36
Bumps [identify](https://github.com/pre-commit/identify) from 2.5.35 to 2.5.36.
- [Commits](https://github.com/pre-commit/identify/compare/v2.5.35...v2.5.36)

---
updated-dependencies:
- dependency-name: identify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 16:44:05 +00:00
3210fef785 Fix unit test for APP_VERSION 2024-04-21 17:01:22 +01:00
61144056ae Add release to Sentry SDK 2024-04-21 16:56:27 +01:00
a4007d585b Auto-inject version into image 2024-04-21 16:52:55 +01:00
123ed8aa15 Add APM (#184)
* Add APM
* Fix unit tests
* Remove apm.py
* Add SonarCloud recommendations
* SonarCloud python:S6890
2024-04-21 16:17:00 +01:00
97be51bd59 chore(pip-prod)(deps): bump virtualenv from 20.25.1 to 20.25.3
Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.25.1 to 20.25.3.
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/virtualenv/compare/20.25.1...20.25.3)

---
updated-dependencies:
- dependency-name: virtualenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-17 18:38:03 +01:00
6300b11591 chore(pip-prod)(deps): bump idna from 3.6 to 3.7
Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-11 22:08:49 +01:00
dc62af1574 chore(pip-prod)(deps): bump filelock from 3.13.3 to 3.13.4
Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.13.3 to 3.13.4.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.13.3...3.13.4)

---
updated-dependencies:
- dependency-name: filelock
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 20:51:35 +01:00
1de66ee3c6 chore(pip-prod)(deps): bump filelock from 3.13.2 to 3.13.3
Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.13.2 to 3.13.3.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.13.2...3.13.3)

---
updated-dependencies:
- dependency-name: filelock
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 16:42:37 +00:00
4687a6aa38 chore(pip-prod)(deps): bump filelock from 3.13.1 to 3.13.2
Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.13.1 to 3.13.2.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.13.1...3.13.2)

---
updated-dependencies:
- dependency-name: filelock
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 19:22:15 +00:00
041299d3fc chore(pip-prod)(deps): bump autopep8 from 2.0.4 to 2.1.0
Bumps [autopep8](https://github.com/hhatto/autopep8) from 2.0.4 to 2.1.0.
- [Release notes](https://github.com/hhatto/autopep8/releases)
- [Commits](https://github.com/hhatto/autopep8/compare/v2.0.4...v2.1.0)

---
updated-dependencies:
- dependency-name: autopep8
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 12:38:36 +00:00
26b846d297 chore(actions)(deps): bump mathieudutour/github-tag-action
Bumps [mathieudutour/github-tag-action](https://github.com/mathieudutour/github-tag-action) from 6.1 to 6.2.
- [Release notes](https://github.com/mathieudutour/github-tag-action/releases)
- [Commits](https://github.com/mathieudutour/github-tag-action/compare/v6.1...v6.2)

---
updated-dependencies:
- dependency-name: mathieudutour/github-tag-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 22:39:39 +00:00
37ae25adbe chore(pip-prod)(deps): bump packaging from 23.2 to 24.0
Bumps [packaging](https://github.com/pypa/packaging) from 23.2 to 24.0.
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/packaging/compare/23.2...24.0)

---
updated-dependencies:
- dependency-name: packaging
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-12 07:28:29 +00:00
aab67ef378 chore(pip-prod)(deps): bump pyparsing from 3.1.1 to 3.1.2
Bumps [pyparsing](https://github.com/pyparsing/pyparsing) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/pyparsing/pyparsing/releases)
- [Changelog](https://github.com/pyparsing/pyparsing/blob/master/CHANGES)
- [Commits](https://github.com/pyparsing/pyparsing/compare/3.1.1...pyparsing_3.1.2)

---
updated-dependencies:
- dependency-name: pyparsing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-06 17:22:30 +00:00
7 changed files with 26 additions and 16 deletions

View File

@ -11,14 +11,8 @@ on:
- ".github/dependabot.yml"
jobs:
pythonci:
uses: luketainton/gha-workflows/.github/workflows/ci-python.yml@main
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
dockerci:
uses: luketainton/gha-workflows/.github/workflows/ci-docker.yml@main
ci:
uses: luketainton/gha-workflows/.github/workflows/ci-python-with-docker.yml@main
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

View File

@ -23,6 +23,7 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
generateReleaseNotes: true
publish:
name: GitHub Container Registry
@ -33,7 +34,11 @@ jobs:
- name: Login to GitHub Container Registry
run: echo ${{ secrets.GHCR_ACCESS_TOKEN }} | docker login ghcr.io -u luketainton --password-stdin
- name: Build image for GitHub Package Registry
run: docker build . --file Dockerfile --tag ghcr.io/luketainton/roboluke-tasks:${{ needs.release.outputs.new_tag }} --tag ghcr.io/luketainton/roboluke-tasks:latest
run: |
docker build . --file Dockerfile \
--build-arg "version=${{ needs.release.outputs.new_tag }}" \
--tag ghcr.io/luketainton/roboluke-tasks:${{ needs.release.outputs.new_tag }} \
--tag ghcr.io/luketainton/roboluke-tasks:latest
- name: Push image to GitHub Package Registry
run: |
docker push ghcr.io/luketainton/roboluke-tasks:latest

View File

@ -15,4 +15,7 @@ RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
ARG version="dev"
ENV APP_VERSION=$version
COPY app /run/app

View File

@ -15,6 +15,7 @@ if config.sentry_enabled:
dsn=config.sentry_dsn,
enable_tracing=True,
environment=config.environment,
release=config.version,
integrations=[StdlibIntegration()],
spotlight=True
)

View File

@ -8,6 +8,7 @@ class Config:
def __init__(self) -> None:
"""Configuration module."""
self.__environment: str = os.environ.get("APP_LIFECYCLE", "DEV").upper()
self.__version: str = os.environ["APP_VERSION"]
self.__bot_name: str = os.environ["BOT_NAME"]
self.__webex_token: str = os.environ["WEBEX_API_KEY"]
self.__admin_first_name: str = os.environ["ADMIN_FIRST_NAME"]
@ -24,6 +25,11 @@ class Config:
"""Returns the current app lifecycle."""
return self.__environment
@property
def version(self) -> str:
"""Returns the current app version."""
return self.__version
@property
def sentry_enabled(self) -> bool:
"""Returns True if Sentry SDK is enabled, else False."""

View File

@ -13,7 +13,7 @@ distlib==0.3.8
filelock==3.13.4
future==1.0.0
humanfriendly==10.0
identify==2.5.35
identify==2.5.36
idna==3.7
iniconfig==2.0.0
lazy-object-proxy==1.10.0
@ -22,8 +22,8 @@ mypy-extensions==1.0.0
nodeenv==1.8.0
packaging==24.0
pathspec==0.12.1
platformdirs==4.2.0
pluggy==1.4.0
platformdirs==4.2.1
pluggy==1.5.0
py==1.11.0
pycodestyle==2.11.1
PyJWT==2.8.0
@ -33,15 +33,15 @@ python-dotenv==1.0.1
PyYAML==6.0.1
requests==2.31.0
requests-toolbelt==1.0.0
sentry-sdk==1.45.0
sentry-sdk==2.0.1
six==1.16.0
toml==0.10.2
tomli==2.0.1
tomlkit==0.12.4
urllib3==2.2.1
virtualenv==20.25.3
webex-bot==0.4.1
virtualenv==20.26.0
webex-bot==0.5.1
webexteamssdk==1.6.1
websockets==10.2
websockets==11.0.3
wrapt==1.16.0
xmltodict==0.13.0

View File

@ -6,6 +6,7 @@ import os
vars: dict = {
"APP_VERSION": "dev",
"BOT_NAME": "TestBot",
"WEBEX_API_KEY": "testing",
"ADMIN_FIRST_NAME": "Test",