From f65ffb493b1c617eb79bcc121770760ecc5da048 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 16:16:35 +0000 Subject: automatic import of python-djangorestframework-stubs --- python-djangorestframework-stubs.spec | 210 ++++++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 python-djangorestframework-stubs.spec (limited to 'python-djangorestframework-stubs.spec') diff --git a/python-djangorestframework-stubs.spec b/python-djangorestframework-stubs.spec new file mode 100644 index 0000000..209a67d --- /dev/null +++ b/python-djangorestframework-stubs.spec @@ -0,0 +1,210 @@ +%global _empty_manifest_terminate_build 0 +Name: python-djangorestframework-stubs +Version: 1.10.0 +Release: 1 +Summary: PEP-484 stubs for django-rest-framework +License: MIT +URL: https://github.com/typeddjango/djangorestframework-stubs +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ef/77/c9d60a9d3f0f98e8ef401a06b1ea5f72d9965ba0319f0c1662c6374dd677/djangorestframework-stubs-1.10.0.tar.gz +BuildArch: noarch + +Requires: python3-mypy +Requires: python3-django-stubs +Requires: python3-typing-extensions +Requires: python3-requests +Requires: python3-types-requests +Requires: python3-types-PyYAML +Requires: python3-mypy +Requires: python3-coreapi +Requires: python3-types-Markdown + +%description +mypy logo + +# pep484 stubs for Django REST framework + +[![Build Status](https://travis-ci.com/typeddjango/djangorestframework-stubs.svg?branch=master)](https://travis-ci.com/typeddjango/djangorestframework-stubs) +[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) +[![Gitter](https://badges.gitter.im/mypy-django/Lobby.svg)](https://gitter.im/mypy-django/Lobby) + + +Mypy stubs for [Django REST Framework](https://pypi.org/project/djangorestframework/). +Supports Python 3.7 and up. + +## Installation + +```bash +pip install djangorestframework-stubs[compatible-mypy] +``` + +To make mypy aware of the plugin, you need to add + +```ini +[mypy] +plugins = + mypy_drf_plugin.main +``` + +in your `mypy.ini` file. + + +## To get help + +We have Gitter here: +If you think you have more generic typing issue, please refer to and their Gitter. + +## Contributing + +This project is open source and community driven. As such we encourage contributions big and small. You can contribute by doing any of the following: + +1. Contribute code (e.g. improve stubs, add plugin capabilities, write tests etc) - to do so please follow the [contribution guide](./CONTRIBUTING.md). +2. Assist in code reviews and discussions in issues. +3. Identify bugs and issues and report these + +You can always also reach out in gitter to discuss your contributions! + + +%package -n python3-djangorestframework-stubs +Summary: PEP-484 stubs for django-rest-framework +Provides: python-djangorestframework-stubs +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-djangorestframework-stubs +mypy logo + +# pep484 stubs for Django REST framework + +[![Build Status](https://travis-ci.com/typeddjango/djangorestframework-stubs.svg?branch=master)](https://travis-ci.com/typeddjango/djangorestframework-stubs) +[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) +[![Gitter](https://badges.gitter.im/mypy-django/Lobby.svg)](https://gitter.im/mypy-django/Lobby) + + +Mypy stubs for [Django REST Framework](https://pypi.org/project/djangorestframework/). +Supports Python 3.7 and up. + +## Installation + +```bash +pip install djangorestframework-stubs[compatible-mypy] +``` + +To make mypy aware of the plugin, you need to add + +```ini +[mypy] +plugins = + mypy_drf_plugin.main +``` + +in your `mypy.ini` file. + + +## To get help + +We have Gitter here: +If you think you have more generic typing issue, please refer to and their Gitter. + +## Contributing + +This project is open source and community driven. As such we encourage contributions big and small. You can contribute by doing any of the following: + +1. Contribute code (e.g. improve stubs, add plugin capabilities, write tests etc) - to do so please follow the [contribution guide](./CONTRIBUTING.md). +2. Assist in code reviews and discussions in issues. +3. Identify bugs and issues and report these + +You can always also reach out in gitter to discuss your contributions! + + +%package help +Summary: Development documents and examples for djangorestframework-stubs +Provides: python3-djangorestframework-stubs-doc +%description help +mypy logo + +# pep484 stubs for Django REST framework + +[![Build Status](https://travis-ci.com/typeddjango/djangorestframework-stubs.svg?branch=master)](https://travis-ci.com/typeddjango/djangorestframework-stubs) +[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) +[![Gitter](https://badges.gitter.im/mypy-django/Lobby.svg)](https://gitter.im/mypy-django/Lobby) + + +Mypy stubs for [Django REST Framework](https://pypi.org/project/djangorestframework/). +Supports Python 3.7 and up. + +## Installation + +```bash +pip install djangorestframework-stubs[compatible-mypy] +``` + +To make mypy aware of the plugin, you need to add + +```ini +[mypy] +plugins = + mypy_drf_plugin.main +``` + +in your `mypy.ini` file. + + +## To get help + +We have Gitter here: +If you think you have more generic typing issue, please refer to and their Gitter. + +## Contributing + +This project is open source and community driven. As such we encourage contributions big and small. You can contribute by doing any of the following: + +1. Contribute code (e.g. improve stubs, add plugin capabilities, write tests etc) - to do so please follow the [contribution guide](./CONTRIBUTING.md). +2. Assist in code reviews and discussions in issues. +3. Identify bugs and issues and report these + +You can always also reach out in gitter to discuss your contributions! + + +%prep +%autosetup -n djangorestframework-stubs-1.10.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-djangorestframework-stubs -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 1.10.0-1 +- Package Spec generated -- cgit v1.2.3