Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
update python (#357)
Browse files Browse the repository at this point in the history
* update python

* bump to v0.15.8
  • Loading branch information
SatyaBade12 authored Mar 27, 2023
1 parent e75e209 commit 458af9d
Show file tree
Hide file tree
Showing 7 changed files with 1,751 additions and 2,161 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ max-line-length = 88
select = C,E,F,W,B,B950
ignore = E203, E501, W503
exclude = *tests/*, *old_graph*, *.venv/*, entropylab/flame/example/complex/entropynodes/library/*, entropylab/flame/template/*
per-file-ignores = __init__.py:F401
per-file-ignores = __init__.py:F401, entropylab/components/instrument_driver.py:B027
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
version: ${{ steps.project-version.outputs.version }}
env:
JUNIT_REPORT_PATH: pytest-junit-report
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: ${{ matrix.python-version }}

- name: Setup pip Cache
id: cache-pip
Expand Down Expand Up @@ -150,4 +153,4 @@ jobs:
- name: Publish distribution 📦 to PyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.15.8]
### Changed
* supporting python versions 3.8, 3.9, 3.10, 3.11
* removed unused python packages

## [0.15.7]
### Added
* _dir__() method for ParamStore, adds Param keys to auto-complete
Expand Down
1 change: 1 addition & 0 deletions entropylab/pipeline/api/data_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def save_plot(self, experiment_id: int, plot: PlotSpec, data: Any):
)
pass

@abstractmethod
def save_figure(self, experiment_id: int, figure: go.Figure) -> None:
"""
save a new plotly figure to the db and associates it with an experiment
Expand Down
2 changes: 1 addition & 1 deletion entropylab/pipeline/params/param_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, value):

def __eq__(self, other):
if isinstance(self.value, np.ndarray): # numpy arrays
if np.issubdtype(self.value.dtype, np.float): # dtype float
if np.issubdtype(self.value.dtype, float): # dtype float
return np.allclose(self.value, other.value, atol=1e-09, rtol=0.0)
else: # non-float dtype
return (self.value == other.value).all()
Expand Down
3,877 changes: 1,735 additions & 2,142 deletions poetry.lock

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "entropylab"

version = "0.15.7"
version = "0.15.8"

description = ""
license = "BSD-3-Clause"
Expand Down Expand Up @@ -33,7 +33,7 @@ entropy = 'entropylab.cli.main:main'
n3p = 'entropylab.cli.main:main'

[tool.poetry.dependencies]
python = ">=3.7.1,<3.10"
python = ">3.8,<4.0"
sqlalchemy = "^1.4.0"
bokeh = "^2.3.0"
param = "^1.10.1"
Expand All @@ -42,7 +42,6 @@ pandas = "^1.2.3"
numpy = "^1.19"
jsonpickle = "^2.0.0"
graphviz = "^0.16"
networkx = "^2.6.0"
matplotlib = "^3.4.1"
h5py = "^3.3.0"
alembic = "^1.6.5"
Expand All @@ -53,24 +52,13 @@ waitress = "^2.1.2"
tinydb = "^4.5.2"
munch = "^2.5.0"
hupper = "^1.10.3"
hiredis = "^2.0.0"
redis = "^4.1.0"
Jinja2 = "^3.0.3"
psutil = "^5.9.0"
pyzmq = ">=22.3,<24.0"
msgpack = "^1.0.3"
pika = "^1.2.0"
psycopg2-binary = "^2.9.3"
pytz = ">=2021.3,<2023.0"
tzlocal = "^4.1"
tenacity = "^8.0.1"
asyncpg = "^0.25"
celery = "^5.2.3"
fastapi = ">=0.75,<0.78"
requests = "^2.27.1"
distro = "^1.7.0"
filelock = "^3.7.1"
qualang-tools = "^0.12.0"
networkx = "^3.0"

[tool.poetry.dev-dependencies]
pytest = "^7.1.2"
Expand Down

0 comments on commit 458af9d

Please sign in to comment.