ovld 0.3.6__tar.gz → 0.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ovld-0.3.6 → ovld-0.3.7}/.github/workflows/python-package.yml +18 -4
- {ovld-0.3.6 → ovld-0.3.7}/PKG-INFO +1 -1
- {ovld-0.3.6 → ovld-0.3.7}/pyproject.toml +3 -2
- {ovld-0.3.6 → ovld-0.3.7}/requirements-dev.lock +1 -0
- {ovld-0.3.6 → ovld-0.3.7}/src/ovld/core.py +2 -0
- ovld-0.3.7/src/ovld/version.py +1 -0
- {ovld-0.3.6 → ovld-0.3.7}/tests/test_ovld.py +16 -0
- ovld-0.3.6/src/ovld/version.py +0 -1
- {ovld-0.3.6 → ovld-0.3.7}/.envrc +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/.gitignore +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/.python-version +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/LICENSE +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/README.md +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/requirements.lock +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/src/ovld/__init__.py +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/src/ovld/mro.py +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/src/ovld/utils.py +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/tests/__init__.py +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/tests/modules/gingerbread.py +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/tests/test_global.py +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/tests/test_typemap.py +0 -0
- {ovld-0.3.6 → ovld-0.3.7}/tests/test_utils.py +0 -0
@@ -30,18 +30,32 @@ jobs:
|
|
30
30
|
runs-on: ubuntu-latest
|
31
31
|
strategy:
|
32
32
|
matrix:
|
33
|
-
|
33
|
+
settings:
|
34
|
+
- python: '3.8'
|
35
|
+
coverage: false
|
36
|
+
- python: '3.9'
|
37
|
+
coverage: false
|
38
|
+
- python: '3.10'
|
39
|
+
coverage: false
|
40
|
+
- python: '3.11'
|
41
|
+
coverage: false
|
42
|
+
- python: '3.12'
|
43
|
+
coverage: true
|
34
44
|
steps:
|
35
45
|
- name: Check out the code
|
36
46
|
uses: actions/checkout@v3
|
37
47
|
- name: Install rye
|
38
48
|
uses: eifinger/setup-rye@v4
|
39
49
|
- name: Pin Python version
|
40
|
-
run: rye pin ${{ matrix.python
|
50
|
+
run: rye pin ${{ matrix.settings.python }}
|
41
51
|
- name: Sync dependencies
|
42
52
|
run: rye sync
|
43
53
|
- name: Test with pytest
|
44
|
-
|
54
|
+
if: ${{ !matrix.settings.coverage }}
|
55
|
+
run: rye run pytest
|
56
|
+
- name: Test with pytest and coverage
|
57
|
+
if: ${{ matrix.settings.coverage }}
|
58
|
+
run: rye run pytest --cov=src --cov-report term-missing
|
45
59
|
- name: Verify coverage
|
46
|
-
if: ${{ matrix.
|
60
|
+
if: ${{ matrix.settings.coverage }}
|
47
61
|
run: rye run coverage report | tail -1 | egrep "TOTAL +[0-9]+ +0 +100%"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "ovld"
|
3
|
-
version = "0.3.
|
3
|
+
version = "0.3.7"
|
4
4
|
description = "Overloading Python functions"
|
5
5
|
authors = [
|
6
6
|
{ name = "Olivier Breuleux", email = "breuleux@gmail.com" }
|
@@ -19,9 +19,10 @@ build-backend = "hatchling.build"
|
|
19
19
|
[tool.rye]
|
20
20
|
managed = true
|
21
21
|
dev-dependencies = [
|
22
|
-
"codefind
|
22
|
+
"codefind~=0.1.6",
|
23
23
|
"pytest>=8.3.2",
|
24
24
|
"pytest-cov>=5.0.0",
|
25
|
+
"uv>=0.2.30",
|
25
26
|
]
|
26
27
|
|
27
28
|
[tool.hatch.metadata]
|
@@ -0,0 +1 @@
|
|
1
|
+
version = "0.3.7"
|
@@ -1108,6 +1108,22 @@ def test_generic_type_argument():
|
|
1108
1108
|
assert f(dict[str, int]) == "dict"
|
1109
1109
|
|
1110
1110
|
|
1111
|
+
@pytest.mark.skipif(
|
1112
|
+
sys.version_info < (3, 9),
|
1113
|
+
reason="type[...] syntax requires python3.9 or higher",
|
1114
|
+
)
|
1115
|
+
def test_any():
|
1116
|
+
@ovld
|
1117
|
+
def f(t: type[dict]):
|
1118
|
+
return "no"
|
1119
|
+
|
1120
|
+
@ovld
|
1121
|
+
def f(t: type[object]):
|
1122
|
+
return "yes"
|
1123
|
+
|
1124
|
+
assert f(typing.Any) == "yes"
|
1125
|
+
|
1126
|
+
|
1111
1127
|
@pytest.mark.skipif(
|
1112
1128
|
sys.version_info < (3, 9),
|
1113
1129
|
reason="type[...] syntax requires python3.9 or higher",
|
ovld-0.3.6/src/ovld/version.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
version = "0.3.6"
|
{ovld-0.3.6 → ovld-0.3.7}/.envrc
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|