|
|
4be7ba4 |
Name: python3-mypy
|
|
|
6228451 |
Version: 0.620
|
|
|
3da012d |
Release: 2%{?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
|
|
|
4be7ba4 |
License: MIT
|
|
|
a4aba9f |
URL: https://github.com/python/mypy
|
|
|
372db25 |
Source0: https://github.com/python/mypy/releases/download/v%{version}/mypy-%{version}.tar.gz
|
|
|
4be7ba4 |
|
|
|
a4aba9f |
# doc files are missing from sdist, these are the copies from upstream github
|
|
|
a4aba9f |
Source1: LICENSE
|
|
|
a4aba9f |
Source2: README.md
|
|
|
a4aba9f |
Source3: CREDITS
|
|
|
9878e9d |
Source4: CONTRIBUTING.md
|
|
|
4be7ba4 |
|
|
|
4be7ba4 |
# Change the search for data_dir to use Fedora's typeshed package instead of a
|
|
|
4be7ba4 |
# bundled version
|
|
|
a4aba9f |
Patch1: 0001-Look-for-typeshed-in-usr-share.patch
|
|
|
4be7ba4 |
|
|
|
8600e1b |
# patch 1 breaks the data dir lookup when called as /bin/mypy instead of /usr/bin/mypy
|
|
|
a4aba9f |
Patch2: 0002-Canonicalize-bin_dir-when-looking-for-data_dir.patch
|
|
|
5a12ad0 |
|
|
|
a58da49 |
# passing the executable path down into main() got broken in upstream e491b5d4aa
|
|
|
a58da49 |
Patch3: 0003-Pass-executable-path-into-main-when-running-installe.patch
|
|
|
a58da49 |
|
|
|
4be7ba4 |
BuildRequires: python3-devel
|
|
|
4be7ba4 |
|
|
|
4be7ba4 |
# Needed to generate the man pages
|
|
|
4be7ba4 |
BuildRequires: help2man
|
|
|
3da012d |
BuildRequires: python3-typed_ast
|
|
|
4be7ba4 |
|
|
|
4be7ba4 |
Requires: python-typeshed
|
|
|
5fbbedb |
Requires: python3-typed_ast
|
|
|
43a86d0 |
Requires: python3-psutil
|
|
|
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
|
|
|
a4aba9f |
cp %{SOURCE1} .
|
|
|
a4aba9f |
cp %{SOURCE2} .
|
|
|
a4aba9f |
cp %{SOURCE3} .
|
|
|
9878e9d |
cp %{SOURCE4} .
|
|
|
4be7ba4 |
|
|
|
893c17e |
%build
|
|
|
893c17e |
%py3_build
|
|
|
4be7ba4 |
|
|
|
4be7ba4 |
%install
|
|
|
4be7ba4 |
%py3_install
|
|
|
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
|
|
|
9878e9d |
%doc README.md CREDITS CONTRIBUTING.md
|
|
|
4be7ba4 |
%license LICENSE
|
|
|
4be7ba4 |
%{python3_sitelib}/mypy
|
|
|
372db25 |
%{python3_sitelib}/mypy-*.egg-info
|
|
|
4be7ba4 |
%{_bindir}/mypy
|
|
|
6c9dcec |
%{_bindir}/dmypy
|
|
|
4be7ba4 |
%{_bindir}/stubgen
|
|
|
4be7ba4 |
%{_mandir}/man1/mypy.1*
|
|
|
4be7ba4 |
%{_mandir}/man1/stubgen.1*
|
|
|
4be7ba4 |
# distutils insists on putting data_files in /usr/lib, so just go with it
|
|
|
4be7ba4 |
%{_prefix}/lib/mypy
|
|
|
4be7ba4 |
|
|
|
4be7ba4 |
%changelog
|
|
|
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
|