summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 22:11:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 22:11:22 +0000
commit0f664052d6d842bb27f20726e86c3eff4cfdd1e7 (patch)
tree36894ceea3bd48e6231eac13d582237b9f069de7
parent70ece19936922e49327a50fbdeccd37c78d323fa (diff)
automatic import of python-django-downloadview
-rw-r--r--.gitignore1
-rw-r--r--python-django-downloadview.spec300
-rw-r--r--sources1
3 files changed, 302 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..344381b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-downloadview-2.3.0.tar.gz
diff --git a/python-django-downloadview.spec b/python-django-downloadview.spec
new file mode 100644
index 0000000..0b17b94
--- /dev/null
+++ b/python-django-downloadview.spec
@@ -0,0 +1,300 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-downloadview
+Version: 2.3.0
+Release: 1
+Summary: Serve files with Django and reverse-proxies.
+License: BSD
+URL: https://django-downloadview.readthedocs.io/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a8/1c/cc1d3a1abf52d52c631b920d2f99fb7038c85053192f4185e39cd6aef072/django-downloadview-2.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+Requires: python3-requests
+Requires: python3-tox
+
+%description
+###################
+django-downloadview
+###################
+
+.. image:: https://jazzband.co/static/img/badge.svg
+ :target: https://jazzband.co/
+ :alt: Jazzband
+
+.. image:: https://img.shields.io/pypi/v/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/pyversions/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/djversions/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/dm/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://github.com/jazzband/django-downloadview/workflows/Test/badge.svg
+ :target: https://github.com/jazzband/django-downloadview/actions
+ :alt: GitHub Actions
+
+.. image:: https://codecov.io/gh/jazzband/django-downloadview/branch/master/graph/badge.svg
+ :target: https://codecov.io/gh/jazzband/django-downloadview
+ :alt: Coverage
+
+`django-downloadview` makes it easy to serve files with `Django`_:
+
+* you manage files with Django (permissions, filters, generation, ...);
+
+* files are stored somewhere or generated somehow (local filesystem, remote
+ storage, memory...);
+
+* `django-downloadview` helps you stream the files with very little code;
+
+* `django-downloadview` helps you improve performances with reverse proxies,
+ via mechanisms such as Nginx's X-Accel or Apache's X-Sendfile.
+
+
+*******
+Example
+*******
+
+Let's serve a file stored in a file field of some model:
+
+.. code:: python
+
+ from django.conf.urls import url, url_patterns
+ from django_downloadview import ObjectDownloadView
+ from demoproject.download.models import Document # A model with a FileField
+
+ # ObjectDownloadView inherits from django.views.generic.BaseDetailView.
+ download = ObjectDownloadView.as_view(model=Document, file_field='file')
+
+ url_patterns = ('',
+ url('^download/(?P<slug>[A-Za-z0-9_-]+)/$', download, name='download'),
+ )
+
+
+*********
+Resources
+*********
+
+* Documentation: https://django-downloadview.readthedocs.io
+* PyPI page: http://pypi.python.org/pypi/django-downloadview
+* Code repository: https://github.com/jazzband/django-downloadview
+* Bugtracker: https://github.com/jazzband/django-downloadview/issues
+* Continuous integration: https://github.com/jazzband/django-downloadview/actions
+* Roadmap: https://github.com/jazzband/django-downloadview/milestones
+
+.. _`Django`: https://djangoproject.com
+
+
+
+
+%package -n python3-django-downloadview
+Summary: Serve files with Django and reverse-proxies.
+Provides: python-django-downloadview
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-downloadview
+###################
+django-downloadview
+###################
+
+.. image:: https://jazzband.co/static/img/badge.svg
+ :target: https://jazzband.co/
+ :alt: Jazzband
+
+.. image:: https://img.shields.io/pypi/v/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/pyversions/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/djversions/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/dm/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://github.com/jazzband/django-downloadview/workflows/Test/badge.svg
+ :target: https://github.com/jazzband/django-downloadview/actions
+ :alt: GitHub Actions
+
+.. image:: https://codecov.io/gh/jazzband/django-downloadview/branch/master/graph/badge.svg
+ :target: https://codecov.io/gh/jazzband/django-downloadview
+ :alt: Coverage
+
+`django-downloadview` makes it easy to serve files with `Django`_:
+
+* you manage files with Django (permissions, filters, generation, ...);
+
+* files are stored somewhere or generated somehow (local filesystem, remote
+ storage, memory...);
+
+* `django-downloadview` helps you stream the files with very little code;
+
+* `django-downloadview` helps you improve performances with reverse proxies,
+ via mechanisms such as Nginx's X-Accel or Apache's X-Sendfile.
+
+
+*******
+Example
+*******
+
+Let's serve a file stored in a file field of some model:
+
+.. code:: python
+
+ from django.conf.urls import url, url_patterns
+ from django_downloadview import ObjectDownloadView
+ from demoproject.download.models import Document # A model with a FileField
+
+ # ObjectDownloadView inherits from django.views.generic.BaseDetailView.
+ download = ObjectDownloadView.as_view(model=Document, file_field='file')
+
+ url_patterns = ('',
+ url('^download/(?P<slug>[A-Za-z0-9_-]+)/$', download, name='download'),
+ )
+
+
+*********
+Resources
+*********
+
+* Documentation: https://django-downloadview.readthedocs.io
+* PyPI page: http://pypi.python.org/pypi/django-downloadview
+* Code repository: https://github.com/jazzband/django-downloadview
+* Bugtracker: https://github.com/jazzband/django-downloadview/issues
+* Continuous integration: https://github.com/jazzband/django-downloadview/actions
+* Roadmap: https://github.com/jazzband/django-downloadview/milestones
+
+.. _`Django`: https://djangoproject.com
+
+
+
+
+%package help
+Summary: Development documents and examples for django-downloadview
+Provides: python3-django-downloadview-doc
+%description help
+###################
+django-downloadview
+###################
+
+.. image:: https://jazzband.co/static/img/badge.svg
+ :target: https://jazzband.co/
+ :alt: Jazzband
+
+.. image:: https://img.shields.io/pypi/v/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/pyversions/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/djversions/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://img.shields.io/pypi/dm/django-downloadview.svg
+ :target: https://pypi.python.org/pypi/django-downloadview
+
+.. image:: https://github.com/jazzband/django-downloadview/workflows/Test/badge.svg
+ :target: https://github.com/jazzband/django-downloadview/actions
+ :alt: GitHub Actions
+
+.. image:: https://codecov.io/gh/jazzband/django-downloadview/branch/master/graph/badge.svg
+ :target: https://codecov.io/gh/jazzband/django-downloadview
+ :alt: Coverage
+
+`django-downloadview` makes it easy to serve files with `Django`_:
+
+* you manage files with Django (permissions, filters, generation, ...);
+
+* files are stored somewhere or generated somehow (local filesystem, remote
+ storage, memory...);
+
+* `django-downloadview` helps you stream the files with very little code;
+
+* `django-downloadview` helps you improve performances with reverse proxies,
+ via mechanisms such as Nginx's X-Accel or Apache's X-Sendfile.
+
+
+*******
+Example
+*******
+
+Let's serve a file stored in a file field of some model:
+
+.. code:: python
+
+ from django.conf.urls import url, url_patterns
+ from django_downloadview import ObjectDownloadView
+ from demoproject.download.models import Document # A model with a FileField
+
+ # ObjectDownloadView inherits from django.views.generic.BaseDetailView.
+ download = ObjectDownloadView.as_view(model=Document, file_field='file')
+
+ url_patterns = ('',
+ url('^download/(?P<slug>[A-Za-z0-9_-]+)/$', download, name='download'),
+ )
+
+
+*********
+Resources
+*********
+
+* Documentation: https://django-downloadview.readthedocs.io
+* PyPI page: http://pypi.python.org/pypi/django-downloadview
+* Code repository: https://github.com/jazzband/django-downloadview
+* Bugtracker: https://github.com/jazzband/django-downloadview/issues
+* Continuous integration: https://github.com/jazzband/django-downloadview/actions
+* Roadmap: https://github.com/jazzband/django-downloadview/milestones
+
+.. _`Django`: https://djangoproject.com
+
+
+
+
+%prep
+%autosetup -n django-downloadview-2.3.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-django-downloadview -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a0922e4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+afcc6ca55a4a7a0cfc65ff1bfa7cd2d9 django-downloadview-2.3.0.tar.gz