Blame SPECS/python3-mypy.spec

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