Skip to content

Commit 19de6e5

Browse files
authored
Version 1.10.0 release (#104)
1 parent e3ce0bf commit 19de6e5

File tree

7 files changed

+24
-33
lines changed

7 files changed

+24
-33
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
17-
pytest-version: ["~=6.2", "==7.0.0rc1"] # TODO: enable `~=7.0`
16+
python-version: ["3.7", "3.8", "3.9", "3.10"]
17+
pytest-version: ["~=6.2", "~=7.1"]
1818

1919
steps:
2020
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Version history
22

33

4+
## Version 1.10.0
5+
6+
### Features
7+
8+
- Changes how `mypy>=0.970` handles `MYPYPATH`
9+
- Bumps minimal `mypy` version to `mypy>=0.970`
10+
- Drops `python3.6` support
11+
12+
413
## Version 1.9.3
514

615
### Bugfixes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You can also specify `PYTHONPATH`, `MYPYPATH`, or any other environment variable
5353
instance: Pair
5454
reveal_type(instance) # N: Revealed type is 'pair.Pair'
5555
env:
56-
- MYPYPATH=./pytest_mypy_plugins/tests/fixtures
56+
- MYPYPATH=../fixtures
5757
```
5858
5959

pytest_mypy_plugins/item.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ def _collect_mypy_path(self, rootdir: Optional[Path]) -> None:
384384
existing_mypy_path = os.environ.get("MYPYPATH")
385385
if existing_mypy_path:
386386
mypy_path_parts.append(existing_mypy_path)
387-
if self.base_ini_fpath:
388-
mypy_path_parts.append(os.path.dirname(self.base_ini_fpath))
389387
mypy_path_key = self.environment_variables.get("MYPYPATH")
390388
if mypy_path_key:
391389
mypy_path_parts.append(maybe_to_abspath(mypy_path_key, rootdir))

pytest_mypy_plugins/tests/fixtures/pair.py

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
1-
- case: mypy_path_from_env
2-
main: |
3-
from pair import Pair
4-
5-
a: Pair
6-
reveal_type(a) # N: Revealed type is "pair.Pair"
7-
env:
8-
- MYPYPATH=./pytest_mypy_plugins/tests/fixtures
9-
10-
11-
- case: mypy_path_from_env_with_error
12-
main: |
13-
from pair import Missing
14-
out: |
15-
main:1: error: Module "pair" has no attribute "Missing"
16-
env:
17-
- MYPYPATH=./pytest_mypy_plugins/tests/fixtures
18-
19-
201
- case: add_mypypath_env_var_to_package_search
212
main: |
223
import extra_module
4+
extra_module.extra_fn()
5+
6+
extra_module.missing() # E: Module has no attribute "missing"
237
env:
24-
- MYPYPATH=./extras
8+
- MYPYPATH=../extras
259
files:
26-
- path: extras/extra_module.py
10+
- path: ../extras/extra_module.py
2711
content: |
28-
def extra_fn():
12+
def extra_fn() -> None:
2913
pass

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
dependencies = [
77
"pytest>=6.0.0",
8-
"mypy>=0.900",
8+
"mypy>=0.970",
99
"decorator",
1010
"pyyaml",
1111
"chevron",
@@ -15,24 +15,26 @@
1515

1616
setup(
1717
name="pytest-mypy-plugins",
18-
version="1.9.3",
18+
version="1.10.0",
1919
description="pytest plugin for writing tests for mypy plugins",
2020
long_description=readme,
2121
long_description_content_type="text/markdown",
2222
license="MIT",
2323
url="https://github.com/TypedDjango/pytest-mypy-plugins",
2424
author="Maksim Kurnikov",
2525
author_email="[email protected]",
26+
maintainer="Nikita Sobolev",
27+
maintainer_email="[email protected]",
2628
packages=["pytest_mypy_plugins"],
2729
# the following makes a plugin available to pytest
2830
entry_points={"pytest11": ["pytest-mypy-plugins = pytest_mypy_plugins.collect"]},
2931
install_requires=dependencies,
30-
python_requires=">=3.6",
32+
python_requires=">=3.7",
3133
package_data={
3234
"pytest_mypy_plugins": ["py.typed"],
3335
},
3436
classifiers=[
35-
"Development Status :: 3 - Alpha",
37+
"Development Status :: 4 - Beta",
3638
"License :: OSI Approved :: MIT License",
3739
"Programming Language :: Python :: 3.6",
3840
"Programming Language :: Python :: 3.7",

0 commit comments

Comments
 (0)