Blame python3-mypy.spec

4be7ba4
Name:           python3-mypy
4be7ba4
# Last actual version was 0.2.0, which is 7805b2c, continues as 0.2.0_dev
9878e9d
Version:        0.4.3
1859365
Release:        3
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
9878e9d
Source0:        https://pypi.python.org/packages/a8/8c/a20d897c709901c3332e87c8521a18664671fe7fd9e426082300b4b9a341/mypy-lang-%{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
4be7ba4
BuildRequires:  python3-devel
4be7ba4
4be7ba4
# Needed to generate the man pages
4be7ba4
BuildRequires:  help2man
4be7ba4
4be7ba4
Requires:       python-typeshed
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
8b13ee8
%autosetup -n mypy-lang-%{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
4be7ba4
%{python3_sitelib}/mypy_lang-*.egg-info
4be7ba4
%{_bindir}/mypy
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
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