Skip to content

Commit

Permalink
Re-add Pytohn 3.11 (#314)
Browse files Browse the repository at this point in the history
* mypy is picky about this import

* fixed a failing test
(regardless of python version, a missing file in cdf)

* re-add 3.11 to supported versions

* version bump

* changelog

* typo

* Update pyproject.toml

Co-authored-by: Anders Albert <[email protected]>

* test with 3.12, updated changelog

* changed model file

---------

Co-authored-by: Anders Albert <[email protected]>
  • Loading branch information
frnhr and doctrino authored Feb 22, 2024
1 parent 364dee7 commit a6726ab
Show file tree
Hide file tree
Showing 7 changed files with 2,762 additions and 2,756 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
- "3.9"
# Assume these are covered by 3.12
# - "3.10"
- "3.11"
# - "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.88.1] - 2024-02-22
### Fixed
* Restored support for Python up to 3.12.*

## [0.88.0] - 2024-02-21
### Changed
* Changed PriceScenarios container to enable view to be more flexible / fit better with frontend
Expand Down
2 changes: 1 addition & 1 deletion cognite/powerops/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.88.0"
__version__ = "0.88.1"
4 changes: 2 additions & 2 deletions cognite/powerops/utils/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

try:
import tomllib # type: ignore[import]
except ModuleNotFoundError:
import tomli as tomllib # py < 3.11
except ModuleNotFoundError: # py < 3.11
import tomli as tomllib # type: ignore


def read_toml_file(toml_file: Path | str) -> dict[str, Any]:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cognite-power-ops"
version = "0.88.0"
version = "0.88.1"
description = "SDK for power markets operations on Cognite Data Fusion"
readme = "README.md"
authors = ["Cognite <[email protected]>"]
Expand Down Expand Up @@ -50,7 +50,7 @@ allow_redefinition = true


[tool.poetry.dependencies]
python = ">=3.9,<3.11"
python = ">=3.9,<3.13"
typer = {version="^0.9.0", extras=["rich"]}
PyYAML = "^6.0"
cognite-sdk = {version = ">=7.13.8", extras = ["pandas"]}
Expand Down
Loading

0 comments on commit a6726ab

Please sign in to comment.