summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 07:30:56 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 07:30:56 +0000
commitfb85d9c7c87956874bc2f2d41850b069b3779eb2 (patch)
tree2d36b8531b12ae01edd855416bb297c8b7e81107
parentdc6d7765404809a70dff84a1bc1f933578a440e4 (diff)
automatic import of python3-django-storagesopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-django-storages.spec138
-rw-r--r--sources1
3 files changed, 140 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a938e23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-storages-1.13.2.tar.gz
diff --git a/python-django-storages.spec b/python-django-storages.spec
new file mode 100644
index 0000000..8765349
--- /dev/null
+++ b/python-django-storages.spec
@@ -0,0 +1,138 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-storages
+Version: 1.13.2
+Release: 1
+Summary: Support for many storage backends in Django
+License: BSD-3-Clause
+URL: https://github.com/jschneier/django-storages
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cb/8a/3872af7e3d61a8eb7616872549cd74f7f1090de41792a059adb7ce6854dc/django-storages-1.13.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+Requires: python3-azure-storage-blob
+Requires: python3-boto3
+Requires: python3-dropbox
+Requires: python3-google-cloud-storage
+Requires: python3-apache-libcloud
+Requires: python3-paramiko
+
+%description
+Installing from PyPI is as easy as doing:
+ pip install django-storages
+If you'd prefer to install from source (maybe there is a bugfix in master that
+hasn't been released yet) then the magic incantation you are looking for is:
+ pip install -e 'git+https://github.com/jschneier/django-storages.git#egg=django-storages'
+Once that is done set ``DEFAULT_FILE_STORAGE`` to the backend of your choice.
+If, for example, you want to use the boto3 backend you would set:
+ DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
+If you are using the ``FileSystemStorage`` as your storage management class in your models ``FileField`` fields, remove them
+and don't specify any storage parameter. That way, the ``DEFAULT_FILE_STORAGE`` class will be used by default in your field.
+For example, if you have a `photo` field defined as:
+ photo = models.FileField(
+ storage=FileSystemStorage(location=settings.MEDIA_ROOT),
+ upload_to='photos',
+ )
+Set it to just:
+ photo = models.FileField(
+ upload_to='photos',
+ )
+There are also a number of settings available to control how each storage backend functions,
+please consult the documentation for a comprehensive list.
+
+%package -n python3-django-storages
+Summary: Support for many storage backends in Django
+Provides: python-django-storages
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-django-storages
+Installing from PyPI is as easy as doing:
+ pip install django-storages
+If you'd prefer to install from source (maybe there is a bugfix in master that
+hasn't been released yet) then the magic incantation you are looking for is:
+ pip install -e 'git+https://github.com/jschneier/django-storages.git#egg=django-storages'
+Once that is done set ``DEFAULT_FILE_STORAGE`` to the backend of your choice.
+If, for example, you want to use the boto3 backend you would set:
+ DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
+If you are using the ``FileSystemStorage`` as your storage management class in your models ``FileField`` fields, remove them
+and don't specify any storage parameter. That way, the ``DEFAULT_FILE_STORAGE`` class will be used by default in your field.
+For example, if you have a `photo` field defined as:
+ photo = models.FileField(
+ storage=FileSystemStorage(location=settings.MEDIA_ROOT),
+ upload_to='photos',
+ )
+Set it to just:
+ photo = models.FileField(
+ upload_to='photos',
+ )
+There are also a number of settings available to control how each storage backend functions,
+please consult the documentation for a comprehensive list.
+
+%package help
+Summary: Development documents and examples for django-storages
+Provides: python3-django-storages-doc
+%description help
+Installing from PyPI is as easy as doing:
+ pip install django-storages
+If you'd prefer to install from source (maybe there is a bugfix in master that
+hasn't been released yet) then the magic incantation you are looking for is:
+ pip install -e 'git+https://github.com/jschneier/django-storages.git#egg=django-storages'
+Once that is done set ``DEFAULT_FILE_STORAGE`` to the backend of your choice.
+If, for example, you want to use the boto3 backend you would set:
+ DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
+If you are using the ``FileSystemStorage`` as your storage management class in your models ``FileField`` fields, remove them
+and don't specify any storage parameter. That way, the ``DEFAULT_FILE_STORAGE`` class will be used by default in your field.
+For example, if you have a `photo` field defined as:
+ photo = models.FileField(
+ storage=FileSystemStorage(location=settings.MEDIA_ROOT),
+ upload_to='photos',
+ )
+Set it to just:
+ photo = models.FileField(
+ upload_to='photos',
+ )
+There are also a number of settings available to control how each storage backend functions,
+please consult the documentation for a comprehensive list.
+
+%prep
+%autosetup -n django-storages-1.13.2
+
+%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-storages -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 1.13.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f3d9166
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4fb0e537f468c5256012b43ac4e1f578 django-storages-1.13.2.tar.gz