summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 04:25:33 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 04:25:33 +0000
commit675003510884c09833dcd901027bb75ddc0065be (patch)
tree7bd7663a6d33d6387bfa6c3fae60dfce0fca4c4d
parent2299bf97d3e239fb992141a7156bab1edbee2c3b (diff)
automatic import of python-dj-inmemorystorage
-rw-r--r--.gitignore1
-rw-r--r--python-dj-inmemorystorage.spec284
-rw-r--r--sources1
3 files changed, 286 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4dcbab9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dj-inmemorystorage-2.1.0.tar.gz
diff --git a/python-dj-inmemorystorage.spec b/python-dj-inmemorystorage.spec
new file mode 100644
index 0000000..79cecbd
--- /dev/null
+++ b/python-dj-inmemorystorage.spec
@@ -0,0 +1,284 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dj-inmemorystorage
+Version: 2.1.0
+Release: 1
+Summary: A non-persistent in-memory data storage backend for Django.
+License: BSD
+URL: https://github.com/waveaccounting/dj-inmemorystorage
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bb/5b/89366ae96a0213437fd40b2e76791e8adcf790eda597a879bd2595bc41a5/dj-inmemorystorage-2.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+Requires: python3-six
+
+%description
+# dj-inmemorystorage
+
+[![image](https://travis-ci.org/waveaccounting/dj-inmemorystorage.png?branch=master)](https://travis-ci.org/waveaccounting/dj-inmemorystorage)
+
+[![PyPI](https://img.shields.io/pypi/v/dj-inmemorystorage.svg)](https://pypi.python.org/pypi/dj-inmemorystorage)
+
+An in-memory data storage backend for Django.
+
+Compatible with Django's [storage
+API](https://docs.djangoproject.com/en/dev/ref/files/storage/).
+
+# Supported Versions
+
+ - Python 2.7 with Django 1.11
+ - Python 3.5/3.6/3.7 with Django 1.11+
+ - Python 3.8 with Django 2.2+
+
+In general, we follow [Python's supported
+versions](https://devguide.python.org/#status-of-python-branches) and
+[Django's supported
+versions](https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django).
+Any major change in version support will be released as a new major
+version.
+
+# Usage
+
+In your test settings file, add
+
+``` python
+DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'
+```
+
+By default, the `InMemoryStorage` backend is non-persistant, meaning
+that writes to it from one section of your code will not be present when
+reading from another section of your code, unless both are sharing the
+same instance of the storage backend.
+
+If you need your storage to persist, you can add the following to your
+settings.
+
+``` python
+INMEMORYSTORAGE_PERSIST = True
+```
+
+# Differences
+
+This library is based on
+[django-inmemorystorage](https://github.com/codysoyland/django-inmemorystorage)
+by Cody Soyland, with
+[modifications](https://github.com/SeanHayes/django-inmemorystorage)
+made by Seán Hayes with support for the `url` method, with [additional
+support](https://github.com/Vostopia/django-inmemorystorage) from Tore
+Birkeland for writing to the file.
+
+Wave's modifications include packaging, and test modifications such that
+`python setup.py test` works. This version also bumps the version to
+`1.0.0` and renames it to dj-inmemorystorage such that it doesn't
+conflict on PyPI.
+
+The biggest difference is that this package works with Django 1.4 now
+(previously only 1.5+). It also supports Python 2.6/2.7 with Django
+1.4+, Python 3.2/3.3/3.4 with Django 1.5+ and Python 3.5/3.6 with Django
+1.7+.
+
+# Contributing
+
+1. Ensure that you open a pull request
+2. All feature additions/bug fixes MUST include tests
+
+
+
+
+%package -n python3-dj-inmemorystorage
+Summary: A non-persistent in-memory data storage backend for Django.
+Provides: python-dj-inmemorystorage
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dj-inmemorystorage
+# dj-inmemorystorage
+
+[![image](https://travis-ci.org/waveaccounting/dj-inmemorystorage.png?branch=master)](https://travis-ci.org/waveaccounting/dj-inmemorystorage)
+
+[![PyPI](https://img.shields.io/pypi/v/dj-inmemorystorage.svg)](https://pypi.python.org/pypi/dj-inmemorystorage)
+
+An in-memory data storage backend for Django.
+
+Compatible with Django's [storage
+API](https://docs.djangoproject.com/en/dev/ref/files/storage/).
+
+# Supported Versions
+
+ - Python 2.7 with Django 1.11
+ - Python 3.5/3.6/3.7 with Django 1.11+
+ - Python 3.8 with Django 2.2+
+
+In general, we follow [Python's supported
+versions](https://devguide.python.org/#status-of-python-branches) and
+[Django's supported
+versions](https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django).
+Any major change in version support will be released as a new major
+version.
+
+# Usage
+
+In your test settings file, add
+
+``` python
+DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'
+```
+
+By default, the `InMemoryStorage` backend is non-persistant, meaning
+that writes to it from one section of your code will not be present when
+reading from another section of your code, unless both are sharing the
+same instance of the storage backend.
+
+If you need your storage to persist, you can add the following to your
+settings.
+
+``` python
+INMEMORYSTORAGE_PERSIST = True
+```
+
+# Differences
+
+This library is based on
+[django-inmemorystorage](https://github.com/codysoyland/django-inmemorystorage)
+by Cody Soyland, with
+[modifications](https://github.com/SeanHayes/django-inmemorystorage)
+made by Seán Hayes with support for the `url` method, with [additional
+support](https://github.com/Vostopia/django-inmemorystorage) from Tore
+Birkeland for writing to the file.
+
+Wave's modifications include packaging, and test modifications such that
+`python setup.py test` works. This version also bumps the version to
+`1.0.0` and renames it to dj-inmemorystorage such that it doesn't
+conflict on PyPI.
+
+The biggest difference is that this package works with Django 1.4 now
+(previously only 1.5+). It also supports Python 2.6/2.7 with Django
+1.4+, Python 3.2/3.3/3.4 with Django 1.5+ and Python 3.5/3.6 with Django
+1.7+.
+
+# Contributing
+
+1. Ensure that you open a pull request
+2. All feature additions/bug fixes MUST include tests
+
+
+
+
+%package help
+Summary: Development documents and examples for dj-inmemorystorage
+Provides: python3-dj-inmemorystorage-doc
+%description help
+# dj-inmemorystorage
+
+[![image](https://travis-ci.org/waveaccounting/dj-inmemorystorage.png?branch=master)](https://travis-ci.org/waveaccounting/dj-inmemorystorage)
+
+[![PyPI](https://img.shields.io/pypi/v/dj-inmemorystorage.svg)](https://pypi.python.org/pypi/dj-inmemorystorage)
+
+An in-memory data storage backend for Django.
+
+Compatible with Django's [storage
+API](https://docs.djangoproject.com/en/dev/ref/files/storage/).
+
+# Supported Versions
+
+ - Python 2.7 with Django 1.11
+ - Python 3.5/3.6/3.7 with Django 1.11+
+ - Python 3.8 with Django 2.2+
+
+In general, we follow [Python's supported
+versions](https://devguide.python.org/#status-of-python-branches) and
+[Django's supported
+versions](https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django).
+Any major change in version support will be released as a new major
+version.
+
+# Usage
+
+In your test settings file, add
+
+``` python
+DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'
+```
+
+By default, the `InMemoryStorage` backend is non-persistant, meaning
+that writes to it from one section of your code will not be present when
+reading from another section of your code, unless both are sharing the
+same instance of the storage backend.
+
+If you need your storage to persist, you can add the following to your
+settings.
+
+``` python
+INMEMORYSTORAGE_PERSIST = True
+```
+
+# Differences
+
+This library is based on
+[django-inmemorystorage](https://github.com/codysoyland/django-inmemorystorage)
+by Cody Soyland, with
+[modifications](https://github.com/SeanHayes/django-inmemorystorage)
+made by Seán Hayes with support for the `url` method, with [additional
+support](https://github.com/Vostopia/django-inmemorystorage) from Tore
+Birkeland for writing to the file.
+
+Wave's modifications include packaging, and test modifications such that
+`python setup.py test` works. This version also bumps the version to
+`1.0.0` and renames it to dj-inmemorystorage such that it doesn't
+conflict on PyPI.
+
+The biggest difference is that this package works with Django 1.4 now
+(previously only 1.5+). It also supports Python 2.6/2.7 with Django
+1.4+, Python 3.2/3.3/3.4 with Django 1.5+ and Python 3.5/3.6 with Django
+1.7+.
+
+# Contributing
+
+1. Ensure that you open a pull request
+2. All feature additions/bug fixes MUST include tests
+
+
+
+
+%prep
+%autosetup -n dj-inmemorystorage-2.1.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-dj-inmemorystorage -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..88d0da3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b0467d1d1c5afcf961b2cbb3272f8d1b dj-inmemorystorage-2.1.0.tar.gz