* Fix HTTPConnection.putrequest parameter names (#3101) * Add in multiprocessing.managers.ValueProxy types (#3100) * PurePath methods accept os.PathLike[str] from 3.6 (#3099) * Fix contextlib GeneratorContextManager name for py>=3.2 (#3083) * QueueHandler / QueueListener accept SimpleQueue too (#3098) * xml.etree.ElementTree: fix missing None in get(), findtext() return type (#3093) * Add Generic Typing to Queue.PriorityQueue and Queue.LifoQueue in python 2 (#3036) * Add TLSVersion & related attributes to SSLContext (#3097) * Make dataclasses.Field.metadata non-optional (#3094) * Add undocumented methods codecs.utf_16_be_{decode,encode}. (#3091) * Restore default value to click.echo_via_pager (#3090) * Install Black and isort autoformatters (#3069) * itsdangerous: update JSONWebSignatureSerializer.dumps return type (#3082) * "key" argument of builtin function sorted should be optional in python 2.7 (#3086) * Fix annotation of re.Match 'lastindex' and 'lastgroup' in Python 3 (#3085) * fix type of loop.sock_connect (#3073) * Revert "Define functools.partial as overloaded function instead of its own class (#2878)" (#3077) * Add mp_context parameter to concurrent.futures.ProcessPoolExecutor (#3078) * fix ssl.Purpose type in py3 (#3054) * Add types and functions in types.py that are new in 3.7 (#3066) * Refactor tests/pytype_test.py (#3065) * change http.cookies.Morsel to Dict[str, Any] (#3060) * Represent the use of IntEnums in functions in socket.py. (#3009) * HTMLParser.get_starttag_text() can return None (#3072) * redis: Add some type hints (#3055) * Sync recent typing and typing_extensions updates (#3070) * Overload ast.parse to recognize that mode=exec means Module return. (#3039) * str and unicode format functions take objects (#3068) * ssl.pyi: fix types of cadata argument (#3063) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typeshed?expand=0&rev=6
76 lines
2.2 KiB
RPMSpec
76 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-typeshed
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.1562136779.4af283e1
|
|
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-typed-ast
|
|
Recommends: mypy
|
|
Provides: python3-typeshed = %{version}
|
|
Obsoletes: python3-typeshed < %{version}
|
|
# BuildRequires: pytype>=2018.9.19
|
|
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
|