-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from thegridelectric/dev
Dependency updates, cleanups and python 3.12 support. - Adds support for python 3.12. - Removed dependency on gridworks and safety, which removes 43 other dependencies. - Update other dependencies.
- Loading branch information
Showing
119 changed files
with
1,490 additions
and
1,938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pip==23.3.2 | ||
nox==2023.4.22 | ||
pip==24.0 | ||
nox==2024.3.2 | ||
nox-poetry==1.0.3 | ||
poetry==1.7.1 | ||
virtualenv==20.25.0 | ||
poetry==1.8.2 | ||
virtualenv==20.25.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,21 +57,21 @@ jobs: | |
- name: Publish package on PyPI | ||
if: steps.check-version.outputs.tag | ||
uses: pypa/[email protected].11 | ||
uses: pypa/[email protected].14 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
|
||
- name: Publish package on TestPyPI | ||
if: "! steps.check-version.outputs.tag" | ||
uses: pypa/[email protected].11 | ||
uses: pypa/[email protected].14 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish the release notes | ||
uses: release-drafter/release-drafter@v5.25.0 | ||
uses: release-drafter/release-drafter@v6.0.0 | ||
with: | ||
publish: ${{ steps.check-version.outputs.tag != '' }} | ||
tag: ${{ steps.check-version.outputs.tag }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "gridworks-protocol" | ||
version = "0.7.1" | ||
version = "0.7.2" | ||
description = "Gridworks Protocol" | ||
authors = ["Jessica Millar <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -19,12 +19,12 @@ classifiers = [ | |
Changelog = "https://github.com/thegridelectric/gridworks-protocol/releases" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.10, <4.0" | ||
python = "^3.10" | ||
pydantic = "^1.10.2" | ||
pendulum = "^2.1.2" | ||
fastapi-utils = "^0.2.1" | ||
gridworks = "^0.2.9" | ||
pendulum = "^3" | ||
yarl = "^1.9.2" | ||
pytz = "^2024.1" | ||
fastapi-utils = "^0.2.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
Pygments = ">=2.10.0" | ||
|
@@ -44,7 +44,6 @@ pre-commit = ">=2.16.0" | |
pre-commit-hooks = ">=4.1.0" | ||
pytest = ">=6.2.5" | ||
pyupgrade = ">=2.29.1" | ||
safety = ">=1.10.3" | ||
sphinx = ">=4.3.2" | ||
sphinx-autobuild = ">=2021.3.14" | ||
sphinx-click = ">=3.0.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""ElectricMeterCac definition""" | ||
|
||
from typing import Dict | ||
from typing import List | ||
from typing import Optional | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from gwproto.data_classes.component_attribute_class import ComponentAttributeClass | ||
|
||
|
||
class FibaroSmartImplantCac(ComponentAttributeClass): | ||
... | ||
class FibaroSmartImplantCac(ComponentAttributeClass): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from gwproto.data_classes.component_attribute_class import ComponentAttributeClass | ||
|
||
|
||
class HubitatCac(ComponentAttributeClass): | ||
... | ||
class HubitatCac(ComponentAttributeClass): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from gwproto.data_classes.component_attribute_class import ComponentAttributeClass | ||
|
||
|
||
class HubitatPollerCac(ComponentAttributeClass): | ||
... | ||
class HubitatPollerCac(ComponentAttributeClass): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from gwproto.data_classes.component_attribute_class import ComponentAttributeClass | ||
|
||
|
||
class HubitatTankModuleCac(ComponentAttributeClass): | ||
... | ||
class HubitatTankModuleCac(ComponentAttributeClass): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""PipeFlowSensorCac definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""RelayCac definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""ElectricHeaterCac definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from gwproto.data_classes.component_attribute_class import ComponentAttributeClass | ||
|
||
|
||
class RESTPollerCac(ComponentAttributeClass): | ||
... | ||
class RESTPollerCac(ComponentAttributeClass): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""SimpleTempSensorCac definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
""" ComponentAttributeClass""" | ||
|
||
from abc import ABC | ||
from typing import Dict | ||
from typing import Optional | ||
|
1 change: 1 addition & 0 deletions
1
src/gwproto/data_classes/components/electric_meter_component.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/gwproto/data_classes/components/multipurpose_sensor_component.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/gwproto/data_classes/components/pipe_flow_sensor_component.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""PipeFlowSensorComponent definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""RelayComponent definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
1 change: 1 addition & 0 deletions
1
src/gwproto/data_classes/components/resistive_heater_component.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""ResistiveHeaterComponent definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
1 change: 1 addition & 0 deletions
1
src/gwproto/data_classes/components/simple_temp_sensor_component.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""SimpleTempSensorComponent definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""ShNode definition""" | ||
|
||
from typing import Dict | ||
from typing import Optional | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
from gridworks.errors import AlgoError | ||
from gridworks.errors import DcError | ||
from gridworks.errors import RegistryError | ||
from gridworks.errors import SchemaError | ||
class SchemaError(Exception): | ||
"""Base class for Schema errors""" | ||
|
||
pass | ||
|
||
|
||
class AlgoError(Exception): | ||
"""Base class for errors related to Algorand""" | ||
|
||
pass | ||
|
||
|
||
class DcError(Exception): | ||
"""Base class for dataclass errors""" | ||
|
||
pass | ||
|
||
|
||
class RegistryError(Exception): | ||
"""Base class for registry errors""" | ||
|
||
pass |
Oops, something went wrong.