Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move mypy version upper bound to a [compatible-mypy] extra #979

Merged
merged 2 commits into from Jun 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -14,7 +14,7 @@ This package contains [type stubs](https://www.python.org/dev/peps/pep-0561/) an
## Installation

```bash
pip install django-stubs
pip install django-stubs[compatible-mypy]
```

To make mypy aware of the plugin, you need to add
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -7,7 +7,7 @@ pytest==7.1.2
pytest-mypy-plugins==1.9.3
psycopg2-binary
-e ./django_stubs_ext
-e .
-e .[compatible-mypy]

# Overrides:
mypy==0.960
7 changes: 6 additions & 1 deletion setup.py
Expand Up @@ -20,7 +20,7 @@ def find_stub_files(name: str) -> List[str]:
readme = f.read()

dependencies = [
"mypy>=0.930,<0.970",
"mypy>=0.930",
"django",
"django-stubs-ext>=0.4.0",
"tomli",
Expand All @@ -30,6 +30,10 @@ def find_stub_files(name: str) -> List[str]:
"types-PyYAML",
]

extras_require = {
"compatible-mypy": ["mypy>=0.930,<0.970"],
}

setup(
name="django-stubs",
version="1.11.1",
Expand All @@ -43,6 +47,7 @@ def find_stub_files(name: str) -> List[str]:
py_modules=[],
python_requires=">=3.7",
install_requires=dependencies,
extras_require=extras_require,
packages=["django-stubs", *find_packages(exclude=["scripts"])],
package_data={
"django-stubs": find_stub_files("django-stubs"),
Expand Down