summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-djangorestframework-stubs.spec210
-rw-r--r--sources1
3 files changed, 212 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ea57e2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/djangorestframework-stubs-1.10.0.tar.gz
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
+<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/>
+
+# 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: <https://gitter.im/mypy-django/Lobby>
+If you think you have more generic typing issue, please refer to <https://github.com/python/mypy> 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
+<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/>
+
+# 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: <https://gitter.im/mypy-django/Lobby>
+If you think you have more generic typing issue, please refer to <https://github.com/python/mypy> 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
+<img src="http://mypy-lang.org/static/mypy_light.svg" alt="mypy logo" width="300px"/>
+
+# 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: <https://gitter.im/mypy-django/Lobby>
+If you think you have more generic typing issue, please refer to <https://github.com/python/mypy> 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 <Python_Bot@openeuler.org> - 1.10.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a6c84f2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bd590e71eb430dbf2eeb169db08b0aff djangorestframework-stubs-1.10.0.tar.gz