Skip to content

feat: minimal python version warning#260

Merged
marwin-roth merged 8 commits intodevelopmentfrom
CHL-1503-minimal-python-version-warning
Nov 12, 2024
Merged

feat: minimal python version warning#260
marwin-roth merged 8 commits intodevelopmentfrom
CHL-1503-minimal-python-version-warning

Conversation

@marwin-roth
Copy link
Copy Markdown
Contributor

Adds a check for the minimal python version required to use the sdk. If not fulfilled, will throw a exception.

@sonarqubecloud
Copy link
Copy Markdown

"""
def __init__(self, app_token=None):
if not sys.version_info >= (3, 9):
raise emnify_errors.MinimalPythonVersionException('Python version 3.9 or higher is required')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😸

@marwin-roth marwin-roth merged commit 6d233a7 into development Nov 12, 2024
@marwin-roth marwin-roth deleted the CHL-1503-minimal-python-version-warning branch November 12, 2024 15:49
Th3Un1q3 added a commit that referenced this pull request Nov 26, 2024
* feat: minimal python version warning (#260)

* [Automated] Version Bump from 0.4.0 to 0.4.1

* Add check for minimal python version and e2e testing

* refactor: add linter to the CI (#261)

* Add lint check to CI

* Modify lint check and perform format

* Apply ruff format and modify readme and bump-version.yml

* build(deps): bump the python group across 1 directory with 3 updates

Bumps the python group with 3 updates in the / directory: [requests](https://github.com/psf/requests), [pydantic](https://github.com/pydantic/pydantic) and [ruff](https://github.com/astral-sh/ruff).


Updates `requests` from 2.29.0 to 2.32.3
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.29.0...v2.32.3)

Updates `pydantic` from 1.10.19 to 2.10.1
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v1.10.19...v2.10.1)

Updates `ruff` from 0.7.3 to 0.8.0
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.7.3...0.8.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python
...

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

* refactor: add lint format check to CI (#267)

* Add lint check to CI

* Modify lint check and perform format

* Apply ruff format and modify readme and bump-version.yml

* Add ruff format check to CI

* Add ruff format check to CI

* Revert version change of pydantic and requests

* fix: fix url lib and bump requests

* fix: format remarks

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: marwin-roth <150677923+marwin-roth@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mikhail.gubenko <mikhail.gubenko@emnify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants