Skip to content

Commit

Permalink
🔥 removed upper dependency constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzBeck committed Aug 28, 2024
1 parent 99164d3 commit 427d97e
Show file tree
Hide file tree
Showing 8 changed files with 1,362 additions and 1,373 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12"]
steps:
- name: 🕸️ Install Graphviz
run: sudo apt-get install graphviz
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ a 🐍 Python framework for generating streams of labelled data
</p>

<p align="center">
<a href="https://www.python.org/"><img alt="Python" src="https://img.shields.io/badge/Python-3.10|3.11|3.12-yellow?logo=python"></a>
<a href="https://www.python.org/"><img alt="Python" src="https://img.shields.io/badge/Python-3.11|3.12-yellow?logo=python"></a>
<a href="https://python-poetry.org/"><img alt="Poetry" src="https://img.shields.io/badge/Poetry-1.8.2-blue?logo=Poetry"></a>
<a href="https://joss.theoj.org/papers/4b6bac90bd1eb54700f8afb9f32caebe"><img src="https://joss.theoj.org/papers/4b6bac90bd1eb54700f8afb9f32caebe/status.svg"></a>
</p>
Expand Down
1,259 changes: 613 additions & 646 deletions poetry.lock

Large diffs are not rendered by default.

56 changes: 27 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,31 @@ docs_local = ["convert_notebooks", "build_documentation"]
build_paper = "docker run --rm --volume $PWD/docs:/data --env JOURNAL=joss openjournals/inara"

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
# 🌳 Graphs and Trees
anytree = "^2.12.1" # Apache license 2.0
graphviz = "^0.20.3"
anytree = ">=2.12.1" # Apache license 2.0
graphviz = ">=0.20.3"
# 📄 Data handling
numpy = "^1.26.4" # custom license -> seems permissive
pandas = "^2.2.1" # BSD 3-clause license
numpy = ">=1.26.4" # custom license -> seems permissive
pandas = ">=2.2.1" # BSD 3-clause license
# 🖼️ Visualizations
matplotlib = "^3.8.3" # custom license -> seems permissive
seaborn = "^0.13.2" # multiple licenses -> seems permissive (like MIT) if licenses are included
matplotlib = ">=3.8.3" # custom license -> seems permissive
seaborn = ">=0.13.2" # multiple licenses -> seems permissive (like MIT) if licenses are included
# ✍️ Typing
beartype = "^0.17.2" # MIT license
typing-extensions = "^4.12.2"
beartype = ">=0.17.2" # MIT license
# 🖨️ Logging
loguru = "^0.7.2" # MIT license
rich = "^13.7.1" # MIT license
loguru = ">=0.7.2" # MIT license
rich = ">=13.7.1" # MIT license
# 🔁 Continual Learning
#avalanche-lib = { version = "^0.5.0", optional = true } # MIT license
continuum = { version = "^1.2.7", optional = true } # MIT license
continuum = { version = ">=1.2.7", optional = true } # MIT license
# version pins required for an import error caused by avalanche
torch = { version = "<=2.3", optional = true } # MIT license
torch = { version = ">=2.3", optional = true } # MIT license
pytorchcv = { version = ">=0.0.67", optional = true } # MIT license
# 👾 Example/Application Dependencies
polars = { version = "^0.20.13", optional = true } # MIT license
ipympl = { version = "^0.9.4", optional = true }
scikit-image = { version = "^0.24", optional = true }

polars = { version = ">=0.20.13", optional = true } # MIT license
ipympl = { version = ">=0.9.4", optional = true }
scikit-image = { version = ">=0.24", optional = true }


[tool.poetry.extras]
Expand All @@ -72,20 +70,20 @@ all = [
]

[tool.poetry.group.dev.dependencies]
ruff = "^0.3.4"
pre-commit = "^3.6.2"
poethepoet = "^0.25.0"
pytest = "^8.0.2"
coverage = "^7.4.3"
jupyter = "^1.0.0"
ipywidgets = "^8.1.2"
nbconvert = "^7.16.2"
portray = "^1.8.0"
itables = "^2.0.0" # MIT license
ruff = ">=0.3.4"
pre-commit = ">=3.6.2"
poethepoet = ">=0.25.0"
pytest = ">=8.0.2"
coverage = ">=7.4.3"
jupyter = ">=1.0.0"
ipywidgets = ">=8.1.2"
nbconvert = ">=7.16.2"
portray = ">=1.8.0"
itables = ">=2.0.0" # MIT license
qpsolvers = { extras = [
"open-source-solvers",
], version = "^4.3.2" } # explicit install required to solve plotting issue in pytest
towncrier = "^24.7.1"
], version = ">=4.3.2" } # explicit install required to solve plotting issue in pytest
towncrier = ">=24.7.1"

[tool.ruff]
exclude = [
Expand Down
1,407 changes: 717 additions & 690 deletions requirements.txt

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions streamgen/parameter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
from collections.abc import Iterable
from copy import deepcopy
from itertools import cycle
from typing import Generic, TypedDict, TypeVar
from typing import Generic, Self, TypedDict, TypeVar

from beartype import beartype
from typing_extensions import Self

from streamgen.enums import (
ParameterOutOfRangeStrategy,
Expand Down
3 changes: 1 addition & 2 deletions streamgen/parameter/store.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
"""🗃️ parameter stores are dictionary-like collections of parameters and schedules."""

from typing import Any
from typing import Any, Self

import pandas as pd
from beartype import beartype
from loguru import logger
from rich.pretty import pretty_repr
from typing_extensions import Self

from streamgen.parameter import Parameter, ScopedParameterDict

Expand Down
3 changes: 1 addition & 2 deletions streamgen/samplers/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from copy import deepcopy
from itertools import pairwise
from pathlib import Path
from typing import Any
from typing import Any, Self

import anytree
import numpy as np
Expand All @@ -18,7 +18,6 @@
from matplotlib import pyplot as plt
from pandas import DataFrame
from rich.progress import track
from typing_extensions import Self

from streamgen.enums import SamplingStrategy, SamplingStrategyLit
from streamgen.nodes import ClassLabelNode, SampleBufferNode, TransformNode
Expand Down

0 comments on commit 427d97e

Please sign in to comment.