* Make fieldnames of csv.DictReader Optional (#3534) * Update orjson stub from orjson repository(#3532) * Update stub for socket module (#3451) * Use Literal to improve SpooledTemporaryFile (#3526) * random: fix type for sample (#3525) * add raw property to BufferedIOBase (#3483) * Minor fixes to cryptography (x509) (#3520) * Simplify `WatchedFileHandler.__init__` (#3506) * Improve warnings stubs (#3501) * padding can take an int or an object (PSS.MAX_LENGTH) (#3521) * __future__: add _Feature.compiler_flag (#3522) * A few return annotations for redis client (#3517) * SMTPChannel.push() accepts str (#3516) * Optional initial-value parameter for itertools.accumulate() (#3503) * In python versions 3.7 and above, re-export Pattern and Match (#3510) * builtins.print: make sep and end Optional (#3468) (#3511) * Add ImportError constructor arguments (#3512) * Fix the signature of unittest.TestCase.assertLogs #3513 (#3514) * asyncio/future.pyi - wrap_future loop keyword arg (#3507) * Change return type of Message.get_payload() to Any (#3504) * Modulefinder stubs (#3497) * Type socketserver's RequestHandlerClass as a callable. (#3422) * add no_type_check_decorator stub for #2884 (#3460) * Add mailcap module (#3482) * mailbox: Fix signature of Mailbox.update method (#3493) * Refactor warnings.catch_warning to be a class. (#3499) * Fix type hints in Template class (#3491) * mailbox: Couple small fixes (#3490) * timeout argument to urllib.request.urlopen is Optional (#3487) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typeshed?expand=0&rev=10
78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-typeshed
|
|
#
|
|
# Copyright (c) 2019 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define modname typeshed
|
|
Name: python-typeshed
|
|
Version: 0.0.1+git.20191209.a06abc5d
|
|
Release: 0
|
|
Summary: Static type information for python modules
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/python/typeshed
|
|
Source0: %{modname}-%{version}.tar.xz
|
|
Source1: python-typeshed-rpmlintrc
|
|
BuildRequires: fdupes
|
|
# For tests
|
|
BuildRequires: mypy
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-base
|
|
BuildRequires: python3-flake8
|
|
BuildRequires: python3-flake8-bugbear
|
|
BuildRequires: python3-flake8-pyi
|
|
#BuildRequires: python3-pytype
|
|
BuildRequires: python3-typed-ast
|
|
Recommends: mypy
|
|
Provides: python3-typeshed = %{version}
|
|
Obsoletes: python3-typeshed < %{version}
|
|
Provides: python2-typeshed = %{version}
|
|
Obsoletes: python2-typeshed < %{version}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Typeshed models function types for the Python standard library
|
|
and Python builtins, as well as third party packages.
|
|
|
|
This data can e.g. be used for static analysis, type checking or
|
|
type inference.
|
|
|
|
This package stores the typedata in %{_datadir}/typeshed
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%build
|
|
# Nothing to build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{_datadir}/typeshed
|
|
for dir in stdlib third_party ; do
|
|
cp -r $dir %{buildroot}/%{_datadir}/typeshed/$dir
|
|
done
|
|
%fdupes %{buildroot}%{_datadir}/typeshed
|
|
|
|
%check
|
|
python3 tests/mypy_test.py -v
|
|
# python3 tests/pytype_test.py
|
|
|
|
%files
|
|
%doc CONTRIBUTING.md README.md
|
|
%license LICENSE
|
|
%{_datadir}/typeshed
|
|
|
|
%changelog
|