Skip to content

Commit 1cf3b60

Browse files
authored
Merge pull request #45 from ambiata/feat/update-requirements-v6.0.0
[#major] Update SDK to v6.0.0
2 parents 36cc9ce + 15f4e93 commit 1cf3b60

File tree

9 files changed

+654
-828
lines changed

9 files changed

+654
-828
lines changed

.github/workflows/cicd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-20.04
1515
strategy:
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1818

1919
steps:
2020
- name: Checkout
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install Poetry
2929
uses: snok/install-poetry@v1
3030
with:
31-
version: 1.3.1
31+
version: 1.8.4
3232
virtualenvs-create: true
3333
virtualenvs-in-project: true
3434

@@ -74,12 +74,12 @@ jobs:
7474
- name: Set up Python ${{ matrix.python-version }}
7575
uses: actions/setup-python@v4
7676
with:
77-
python-version: 3.9
77+
python-version: 3.12
7878

7979
- name: Install Poetry
8080
uses: snok/install-poetry@v1
8181
with:
82-
version: 1.3.1
82+
version: 1.8.4
8383
virtualenvs-create: true
8484
virtualenvs-in-project: true
8585

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Ambiata
3+
Copyright (c) 2021-2024 Ambiata
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

atmosphere/custom_activity/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from fastapi import FastAPI
44
from fastapi.exception_handlers import request_validation_exception_handler
55
from fastapi.testclient import TestClient
6-
from pydantic.error_wrappers import ValidationError
6+
from pydantic import ValidationError
77

88
from .api.endpoints import Endpoints
99
from .base_config import Config

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v6.0.0
4+
5+
* Dropped support for Python 3.8.x
6+
* Included support for Python 3.12.x
7+
38
## v3.0.0
49

510
### Breaking change

poetry.lock

Lines changed: 605 additions & 804 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
[tool.poetry]
22
name = "atmosphere"
3-
version = "v5.0.0"
3+
version = "v6.0.0"
44
description = "The atmosphere python SDK including multiple modules to help with setting up activities, transformers and more."
55
authors = ["Ambiata <atmosphere@ambiata.com>"]
66
license = "MIT"
77
readme = "README.md"
88

99

1010
[tool.poetry.dependencies]
11-
python = ">=3.8,<3.12"
11+
python = ">=3.9,<3.13"
12+
pydantic = ">=1.10.18,<2.0"
1213
apscheduler = ">=3.10.1,<4.0.0"
13-
fastapi = ">=0.95.0,<1.0.0"
14-
httpx = ">=0.23.3,<1.0.0"
15-
pyjwt = ">=2.6.0,<3.0.0"
16-
pyyaml = ">=6.0,<7.0"
17-
simplejson = ">=3.18.4,<4.0.0"
18-
uvicorn = ">=0.21.1,<1.0.0"
14+
fastapi = ">=0.115.2,<1.0.0"
15+
httpx = ">=0.27.2,<1.0.0"
16+
pyjwt = ">=2.9.0,<3.0.0"
17+
pyyaml = ">=6.0.2,<7.0"
18+
simplejson = ">=3.19.3,<4.0.0"
19+
uvicorn = ">=0.32.0,<1.0.0"
1920

2021
[tool.poetry.group.dev.dependencies]
21-
autoflake = "2.0.2"
22-
autopep8 = "2.0.2"
23-
black = "23.1.0"
24-
coverage = "7.2.2"
22+
autoflake = "2.3.1"
23+
autopep8 = "2.3.1"
24+
black = "24.10.0"
25+
coverage = "7.6.4"
2526
httpretty = "1.1.4"
26-
isort = "5.12.0"
27+
isort = "5.13.2"
2728
mypy-extensions = "1.0.0"
28-
pylint = "2.17.0"
29-
pytest = "7.2.2"
30-
pytest-cov = "4.0.0"
31-
pytest-env = "0.8.1"
32-
requests-mock = "1.10.0"
29+
pylint = "3.3.1"
30+
pytest = "8.3.3"
31+
pytest-cov = "5.0.0"
32+
pytest-env = "1.1.5"
33+
requests-mock = "1.12.1"
3334

3435
[build-system]
3536
requires = ["poetry-core"]

scripts/format.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$env:python_packages="atmosphere"
2+
3+
# Remove unused imports
4+
autoflake "--ignore-init-module-imports" "--in-place" "-r" "--remove-all-unused-imports" "$env:python_packages"
5+
# Sort imports one per line, so autoflake can remove unused imports
6+
autopep8 --in-place --aggressive --aggressive --recursive $env:python_packages
7+
isort --force-single-line-imports $env:python_packages
8+
# --exclude=__init__.py
9+
black $env:python_packages
10+
isort $env:python_packages

scripts/lint.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$env:python_packages="atmosphere"
2+
3+
isort --check-only --verbose $env:python_packages
4+
$env:EXIT_STATUS=$LASTEXITCODE
5+
pylint $env:python_packages
6+
$env:EXIT_STATUS=$LASTEXITCODE
7+
8+
exit $env:EXIT_STATUS

scripts/test.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest --cov=atmosphere --cov-report=term-missing "${@}"

0 commit comments

Comments
 (0)