Skip to content

Commit b5ff21d

Browse files
author
dberenbaum
committed
merge
2 parents 73357b2 + 3d70888 commit b5ff21d

File tree

9 files changed

+342
-29
lines changed

9 files changed

+342
-29
lines changed

.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Set up Python
2828
uses: actions/setup-python@v4
2929
with:
30-
python-version: '3.8'
31-
cache: 'pip'
30+
python-version: "3.9"
31+
cache: "pip"
3232
cache-dependency-path: setup.cfg
3333

3434
- name: Upgrade pip
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: mypy
5454
run: |
55-
python -m mypy
55+
python -m mypy
5656
5757
- name: Run tests
5858
run: pytest -v tests --cov --cov-report=xml --cov-config=pyproject.toml
@@ -67,7 +67,7 @@ jobs:
6767
fail-fast: false
6868
matrix:
6969
os: [ubuntu-20.04, windows-latest, macos-latest]
70-
pyv: ["3.8", "3.9", "3.10"]
70+
pyv: ["3.9", "3.10", "3.11", "3.12"]
7171

7272
steps:
7373
- name: Check out the repository
@@ -79,7 +79,7 @@ jobs:
7979
uses: actions/setup-python@v4
8080
with:
8181
python-version: ${{ matrix.pyv }}
82-
cache: 'pip'
82+
cache: "pip"
8383
cache-dependency-path: setup.cfg
8484

8585
- name: Upgrade pip

CONTRIBUTING.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Request features on the `Issue Tracker`_.
4141
How to set up your development environment
4242
------------------------------------------
4343

44-
You need Python 3.8+.
44+
You need Python 3.9+.
4545

4646
- Clone the repository:
4747

noxfile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Automation using nox."""
2+
23
import glob
34
import os
45

@@ -9,7 +10,7 @@
910
locations = "src", "tests"
1011

1112

12-
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"])
13+
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"])
1314
def tests(session: nox.Session) -> None:
1415
session.install(".[tests]")
1516
session.run(

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ keywords = [
2020
license = { text = "Apache License 2.0" }
2121
maintainers = [{ name = "Iterative", email = "[email protected]" }]
2222
authors = [{ name = "Iterative", email = "[email protected]" }]
23-
requires-python = ">=3.8"
23+
requires-python = ">=3.9"
2424
classifiers = [
2525
"Development Status :: 4 - Beta",
2626
"Programming Language :: Python :: 3",
27-
"Programming Language :: Python :: 3.8",
2827
"Programming Language :: Python :: 3.9",
2928
"Programming Language :: Python :: 3.10",
3029
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
3131
]
3232
dynamic = ["version"]
3333
dependencies = [

src/dvclive/error.py

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ def __init__(self):
1717
super().__init__("`dvcyaml` path must have filename 'dvc.yaml'")
1818

1919

20+
class InvalidImageNameError(DvcLiveError):
21+
def __init__(self, name):
22+
self.name = name
23+
super().__init__(f"Cannot log image with name '{name}'")
24+
25+
2026
class InvalidPlotTypeError(DvcLiveError):
2127
def __init__(self, name):
2228
from .plots import SKLEARN_PLOTS

0 commit comments

Comments
 (0)