Skip to content

Commit 2ceb712

Browse files
committed
cvtools -> cvmod
1 parent 7ed5e3f commit 2ceb712

17 files changed

+16
-17
lines changed

.github/workflows/testing.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
python -m pip install --upgrade pip poetry
2929
poetry install -n
3030
- name: Check format with black
31-
run: poetry run black cvtools/ tests/ --check
31+
run: poetry run black cvmod/ tests/ --check
3232
- name: Static typing
33-
run: poetry run mypy cvtools --strict
33+
run: poetry run mypy cvmod --strict
3434
- name: Test with pytest
3535
run: poetry run pytest

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# cvtools
1+
# cvmod
22

3-
Utilities for computer vision.
3+
OpenCV extensions for more Pythonic interactions.
44

55
## Install
66

77
```sh
8-
pip install cvtools-alkasm
8+
pip install cvmod-alkasm
99
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cvtools/imgio.py cvmod/imgio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _html_imshow(img: np.ndarray) -> str:
123123
success, encoded_img = cv.imencode(".png", img)
124124

125125
html = """<html>
126-
<title>cvtools/imshow</title>
126+
<title>cvmod/imshow</title>
127127
<head>
128128
<meta charset="UTF-8">
129129
<meta name="viewport" content="width=device-width, initial-scale=1">

cvtools/py.typed cvmod/py.typed

File renamed without changes.

cvtools/videoio.py cvmod/videoio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33
import cv2 as cv
44
import numpy as np
5-
from cvtools.cvtypes import Size
5+
from .cvtypes import Size
66

77

88
class VideoCaptureProperty:

mypy.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
[mypy]
44
python_version = 3.6
5-
warn_return_any = True
6-
warn_unused_configs = True
5+
strict = True
76

87
# Per-module options:
98

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[tool.poetry]
2-
name = "cvtools-alkasm"
2+
name = "cvmod-alkasm"
33
packages = [
4-
{ include = "cvtools" },
4+
{ include = "cvmod" },
55
]
66
version = "1.0.2"
77
description = "Utilities for computer vision in Python"
88
authors = ["Alexander Reynolds <[email protected]>"]
9-
homepage = "https://github.com/alkasm/cvtools"
10-
repository = "https://github.com/alkasm/cvtools"
11-
keywords = ["cvtools", "computer vision", "cv", "opencv"]
9+
homepage = "https://github.com/alkasm/cvmod"
10+
repository = "https://github.com/alkasm/cvmod"
11+
keywords = ["cvmod", "computer vision", "cv", "opencv"]
1212
readme = "README.md"
1313
license = "MIT"
1414
classifiers = [

tests/test_point_size.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pytest
66
import numpy as np
77
import cv2 as cv
8-
from cvtools import Point, Point3, Size
8+
from cvmod import Point, Point3, Size
99

1010

1111
# Hard coded test cases

tests/test_rect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from hypothesis.strategies import builds, integers
33
import numpy as np
44
import cv2 as cv
5-
from cvtools import Rect
5+
from cvmod import Rect
66
from .test_point_size import Rationals, PositiveRationals, PointStrategy, SizeStrategy
77

88

tests/test_rotated_rect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from hypothesis import given, assume
22
from hypothesis.strategies import builds, integers
3-
from cvtools import Rect, RotatedRect, Point
3+
from cvmod import Rect, RotatedRect, Point
44
import pytest
55

66
Integers = integers(min_value=-1_000_000, max_value=1_000_000)

0 commit comments

Comments
 (0)