4be7ba4
Name:           python3-mypy
2ca9673
Version:        0.790
2ca9673
Release:        1%{?dist}
4be7ba4
Summary:        A static type checker for Python
4be7ba4
%{?python_provide:%python_provide python3-mypy}
4be7ba4
4be7ba4
# The files under lib-python and lib-typing/3.2 are Python-licensed, but this
4be7ba4
# package does not include those files
909ea47
# mypy/typeshed is ASL 2.0
909ea47
License:        MIT and ASL 2.0
a4aba9f
URL:            https://github.com/python/mypy
d484c8e
Source0:        https://github.com/python/mypy/archive/v%{version}/mypy-%{version}.tar.gz
a58da49
4be7ba4
BuildRequires:  python3-devel
daf7d00
BuildRequires:  python3-setuptools
2a54bff
BuildRequires:  python-typeshed
1b5b21b
BuildRequires:  python3-typing-extensions
2a54bff
Requires:  python-typeshed
1b5b21b
Requires:  python3-typing-extensions
4be7ba4
4be7ba4
# Needed to generate the man pages
4be7ba4
BuildRequires:  help2man
c14a4b6
BuildRequires:  (python3dist(typed-ast) >= 1.4 with python3dist(typed-ast) < 1.5)
c14a4b6
BuildRequires:  (python3dist(mypy-extensions) >= 0.4 with python3dist(mypy-extensions) < 0.5)
4be7ba4
4be7ba4
BuildArch:      noarch
4be7ba4
4be7ba4
%description
4be7ba4
Mypy is an optional static type checker for Python.  You can add type
4be7ba4
hints to your Python programs using the upcoming standard for type
4be7ba4
annotations introduced in Python 3.5 beta 1 (PEP 484), and use mypy to
4be7ba4
type check them statically. Find bugs in your programs without even
4be7ba4
running them!
4be7ba4
4be7ba4
%prep
372db25
%autosetup -n mypy-%{version} -p1
909ea47
rm -vrf *.egg-info/
4be7ba4
893c17e
%build
893c17e
%py3_build
4be7ba4
4be7ba4
%install
4be7ba4
%py3_install
909ea47
rm -vrf %{buildroot}%{python3_sitelib}/mypy/{test,typeshed/tests}
2a54bff
ln -s /usr/share/typeshed %{buildroot}%{python3_sitelib}/mypy/typeshed
4be7ba4
4be7ba4
# Generate man pages
4be7ba4
mkdir -p %{buildroot}%{_mandir}/man1
4be7ba4
PYTHONPATH=%{buildroot}%{python3_sitelib} \
4be7ba4
    help2man --no-info --version-string 'mypy %{version}-dev' \
4be7ba4
        --no-discard-stderr -o %{buildroot}%{_mandir}/man1/mypy.1 \
4be7ba4
        %{buildroot}%{_bindir}/mypy
4be7ba4
4be7ba4
PYTHONPATH=%{buildroot}%{python3_sitelib} \
4be7ba4
    help2man --no-info --version-string 'mypy stubgen %{version}-dev' \
4be7ba4
        --no-discard-stderr -o %{buildroot}%{_mandir}/man1/stubgen.1 \
4be7ba4
        %{buildroot}%{_bindir}/stubgen
4be7ba4
4be7ba4
%files
4be7ba4
%license LICENSE
909ea47
%doc README.md
4be7ba4
%{python3_sitelib}/mypy
372db25
%{python3_sitelib}/mypy-*.egg-info
66a684c
%{python3_sitelib}/mypyc
4be7ba4
%{_bindir}/mypy
66a684c
%{_bindir}/mypyc
6c9dcec
%{_bindir}/dmypy
4be7ba4
%{_bindir}/stubgen
0205f5d
%{_bindir}/stubtest
4be7ba4
%{_mandir}/man1/mypy.1*
4be7ba4
%{_mandir}/man1/stubgen.1*
4be7ba4
4be7ba4
%changelog
2ca9673
* Sat Oct 10 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.790-1
2ca9673
- 0.790
2ca9673
f0ac307
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.782-2
f0ac307
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f0ac307
e5b58a7
* Tue Jun 23 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.782-1
e5b58a7
- 0.782
e5b58a7
67133f7
* Fri Jun 19 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.781-1
67133f7
- 0.781
67133f7
f79c60a
* Fri Jun 05 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.780-1
f79c60a
- 0.780
f79c60a
2ba6e3f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.770-2
2ba6e3f
- Rebuilt for Python 3.9
2ba6e3f
0205f5d
* Tue Mar 10 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.770-1
0205f5d
- 0.770
0205f5d
d9609c3
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.761-2
d9609c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d9609c3
ccb5535
* Fri Dec 20 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.761-1
ccb5535
- 0.761
ccb5535
7494851
* Wed Dec 18 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.760-1
7494851
- 0.760
7494851
ac83c25
* Mon Dec 02 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.750-1
ac83c25
- 0.750
ac83c25
1b5b21b
* Mon Nov 11 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.740-2
1b5b21b
- Require/BR python3-typing-extensions
1b5b21b
3e709e3
* Thu Oct 17 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.740-1
3e709e3
- 0.740
3e709e3
2a54bff
* Tue Oct 08 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.730-2
2a54bff
- Fix typeshed.
2a54bff
66a684c
* Thu Sep 26 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.730-1
66a684c
- 0.730
66a684c
b977556
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.720-3
b977556
- Rebuilt for Python 3.8
b977556
a7f3862
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.720-2
a7f3862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a7f3862
1a62db6
* Mon Jul 15 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.720-1
1a62db6
- 0.720
1a62db6
d484c8e
* Mon Jun 24 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.711-1
d484c8e
- 0.711
d484c8e
9627dc2
* Wed Jun 19 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.710-1
9627dc2
- 0.710
9627dc2
09e6568
* Wed Apr 17 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.701-1
09e6568
- 0.701
09e6568
0dbc10f
* Wed Apr 03 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.700-1
0dbc10f
- Update to 0.700
0dbc10f
daf7d00
* Sat Feb 23 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.670-1
daf7d00
- Update to 0.670
daf7d00
937379c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.620-3
937379c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
937379c
3da012d
* Tue Sep 25 2018 Matus Honek <mhonek@redhat.com> - 0.620-2
3da012d
- Add BuildRequire to fix man page generation
3da012d
6228451
* Fri Aug 10 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.620-1
6228451
- 0.620
6228451
4cad213
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.600-3
4cad213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4cad213
f314453
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.600-2
f314453
- Rebuilt for Python 3.7
f314453
28132c4
* Tue May 08 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.600-1
28132c4
- 0.600
28132c4
ece0f1f
* Tue Mar 27 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.580-1
ece0f1f
- 0.580
ece0f1f
fab2e4e
* Mon Mar 05 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.570-1
fab2e4e
- 0.570
fab2e4e
c208375
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.560-3
c208375
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c208375
43a86d0
* Mon Jan 22 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.560-2
43a86d0
- python3-psutil requires.
43a86d0
1d22b5c
* Mon Dec 18 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.560-1
1d22b5c
- 0.560
1d22b5c
6c9dcec
* Mon Nov 13 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.550-1
6c9dcec
- 0.550
6c9dcec
64de7d2
* Mon Oct 23 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.540-1
64de7d2
- 0.540
64de7d2
3e6f64a
* Fri Oct 20 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.530-1
3e6f64a
- 0.530
3e6f64a
c8f252a
* Tue Sep 05 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.521-3
c8f252a
- Typeshed patch.
c8f252a
489b929
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.521-2
489b929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
489b929
138dfb3
* Tue Jul 25 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.521-1
138dfb3
- 0.521
138dfb3
b92a307
* Tue Jul 11 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.520-1
b92a307
- 0.520
b92a307
5fbbedb
* Sun Jun 11 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.511-2
5fbbedb
- Add python3-typed_ast Requires.
5fbbedb
372db25
* Fri Jun 09 2017 Gwyn Ciesla <limburgher@gmail.com> - 0.511-1
372db25
- New upstream.
372db25
f30fd6d
* Sat May 13 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.4.6-4
f30fd6d
- Add dist tag back to Release
f30fd6d
9a1294b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-3
9a1294b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9a1294b
d57fb83
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.6-2
d57fb83
- Rebuild for Python 3.6
d57fb83
CAI Qian 6549925
* Mon Dec 19 2016 CAI Qian <caiqian@redhat.com> - 0.4.6-1
CAI Qian 6549925
- Update to mypy 0.4.6
CAI Qian 6549925
1859365
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.4.3-3
1859365
- Rebuild for Python 3.6
1859365
d229c1e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-2
d229c1e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d229c1e
9878e9d
* Mon Jul 18 2016 David Shea <dshea@redhat.com> - 0.4.3-1
9878e9d
- Update to mypy 0.4.3
9878e9d
25462fb
* Mon Jun 13 2016 David Shea <dshea@redhat.com> - 0.4.2-1
25462fb
- Update to mypy 0.4.2
25462fb
cf28c13
* Thu May 19 2016 David Shea <dshea@redhat.com> - 0.4.1-2
cf28c13
- Fix build issues
cf28c13
fbd8101
* Tue May 17 2016 David Shea <dshea@redhat.com> - 0.4.1-1
fbd8101
- Update to mypy 0.4.1
fbd8101
a4aba9f
* Mon Feb 22 2016 David Shea <dshea@redhat.com> - 0.3.1-1
a4aba9f
- Update to the first post-3.5 actual upstream release
a4aba9f
43480e0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2.dev20160128git
43480e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
43480e0
c819a9f
* Thu Jan 28 2016 David Shea <dshea@redhat.com> - 0.2.0-1.dev20160128git
c819a9f
- Generalize yield statement function type
c819a9f
- Avoid crash on outrageous non-ASCII characters.
c819a9f
- No longer need to pin flake8 version.
c819a9f
- Find partial types anywhere in the stack. (removes local patch)
c819a9f
- Update license year range to 2016
c819a9f
- If a base class is Any, don't get default constructor signature from object.
c819a9f
- Simplify union types when determining type sameness
c819a9f
- Generator fixup
c819a9f
- Add line number to "__init__ must return None" error
c819a9f
- Fix empty yield error in unannotated functions
c819a9f
- Fix "except (E1, E2):" parsing in PY2.
c819a9f
- Don't crash if no source files were found in a directory or package.
c819a9f
- Fail without traceback when duplicate module name encountered.
c819a9f
- Fix subtype check between generic class and Callable
c819a9f
- Avoid crash on "x in y" where y has a partial type.
c819a9f
- Fix type inference issue with dict(x=[], y=[])
c819a9f
- Fix #1160 (bogus error message)
c819a9f
- Fix function definition within for statement
c819a9f
8600e1b
* Fri Jan 15 2016 David Shea <dshea@redhat.com> - 0.2.0-1.dev20160115git
8600e1b
- Fix the order in which builtins are loaded.
8600e1b
- Fix crash on undefined variable actual_types in check_argument_count (replaces local patch)
8600e1b
- Fixes for Generator support
8600e1b
- Fix crash in check_overlapping_op_methods
8600e1b
- Hopeful fix for #1002 (lxml trouble)
8600e1b
- No longer need to pin flake8 version.
8600e1b
- Find partial types anywhere in the stack. (not yet committed upstream)
8600e1b
944aebd
* Mon Jan 11 2016 David Shea <dshea@redhat.com> - 0.2.0-1.dev20160111git
944aebd
- Add support for more kinds of function redefinition
944aebd
- Allow conditionally assigning None to a module
944aebd
- Support conditionally defined nested functions
944aebd
- Tighten argument type for Instance(erased=...) from Any to bool.
944aebd
- Reformat a few messages so they are easier to find using grep.
944aebd
- Update README.md to fix installation instructions for Python 3.5
944aebd
c440ca5
* Thu Jan  7 2016 David Shea <dshea@redhat.com> - 0.2.0-1.dev20160104git.1
c440ca5
- Fix a bug in the discovery of the typeshed files
c440ca5
5a12ad0
* Mon Jan  4 2016 David Shea <dshea@redhat.com> - 0.2.0-1.dev20160104git
5a12ad0
- Don't check git submodule in subprocesses.
5a12ad0
- Improve check for "# type: ignore".
5a12ad0
- Add --pdb flag to drop into pdb upon fatal error.
5a12ad0
- Don't report internal error when using a name that could not be imported.
5a12ad0
- Write type-checking errors to stdout. Make usage() more complete.
5a12ad0
- Avoid ever relying on a not-yet-initialized MRO
5a12ad0
- When comparing template to actual arg types, stop at shortest.
5a12ad0
- Be more clever about finding a Python 2 interpreter
5a12ad0
- Basic support for partial 'None' types
5a12ad0
- Handle multiple None initializers
5a12ad0
- Remove redundant annotations
5a12ad0
- Partial type improvements
5a12ad0
- Allow assignments to function definitions
5a12ad0
- Document --pdb option.
5a12ad0
- Look for the keyword type in the right place.
5a12ad0
893c17e
* Mon Dec 21 2015 David Shea <dshea@redhat.com> - 0.2.0-1.dev20151220git
893c17e
- Fix an internal error when updating a partial type from an outer scope
893c17e
4be7ba4
* Thu Dec 17 2015 David Shea <dshea@redhat.com> - 0.2.0-1.dev20151217git
4be7ba4
- Initial package