File python-typeshed.spec of Package python-typeshed

# spec file for package python-typeshed
# Copyright (c) 2018 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

%define modname typeshed
Name:           python-typeshed
Version:        0.0.1+git.1539385126.cec22025
Release:        0
Summary:        Static type information for python modules
License:        Apache-2.0
Group:          Development/Languages/Python
Source0:        %{modname}-%{version}.tar.xz
Source1:        python-typeshed-rpmlintrc
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  python3-base
Recommends:     mypy
# For tests
BuildRequires:  mypy
BuildRequires:  python3-flake8
BuildRequires:  python3-flake8-bugbear
BuildRequires:  python3-typed-ast
# BuildRequires:  flake8-pyi>=18.3.1
# BuildRequires:  pytype>=2018.9.19
BuildArch:      noarch
Provides:       python3-typeshed = %{version}
Obsoletes:      python3-typeshed < %{version}

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 /usr/share/typeshed

%setup -n %{modname}-%{version}

# Nothing to build

mkdir -p %{buildroot}/%{_datadir}/typeshed
for dir in stdlib third_party ; do
    cp -r $dir %{buildroot}/%{_datadir}/typeshed/$dir
%fdupes %{buildroot}%{_datadir}/typeshed

# python3 tests/
# python3 tests/
# flake8
# python3 tests/

%license LICENSE

openSUSE Build Service is sponsored by