diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-django-jsonform.spec | 301 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 303 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-jsonform-2.17.0.tar.gz diff --git a/python-django-jsonform.spec b/python-django-jsonform.spec new file mode 100644 index 0000000..1203a5d --- /dev/null +++ b/python-django-jsonform.spec @@ -0,0 +1,301 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-jsonform +Version: 2.17.0 +Release: 1 +Summary: A user-friendly JSON editing form for Django admin. +License: BSD-3-Clause +URL: https://www.github.com/bhch/django-jsonform +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8e/9c/85fdaca6ff207608a8d94d13b55f16b8374cf39974ab71723403e49c948a/django-jsonform-2.17.0.tar.gz +BuildArch: noarch + +Requires: python3-django + +%description +<p align="center"> + <img src="https://raw.githubusercontent.com/bhch/django-jsonform/master/docs/_static/logo.png" width="200" alt="django-jsonform icon"> +</p> + +<p align="center"> + A user-friendly JSON editing form for django admin. +</p> + +<p align="center"> + <img src="https://img.shields.io/badge/Python-%3E%3D%203.4-blue"> + <img src="https://img.shields.io/badge/Django-%3E%3D%202.0-blue"> + <img src="https://img.shields.io/pypi/dm/django-jsonform"> +</p> + +<p align="center"> + <strong><a href="https://django-jsonform.rtfd.io">Documentation</a></strong> • + <strong><a href="https://bhch.github.io/react-json-form/playground/">Playground</a></strong> • + <strong><a href="https://pypi.org/project/django-jsonform/">PyPI</a></strong> +</p> + +## Features + + - [x] File uploads + - [x] Postgres `ArrayField` + - [x] Many inputs and field types + - [x] UI matches with Django admin's + - [x] Recursion (nesting with self references) + - [x] Validation + +## Screenshots + +Here's a screenshot of items being added to a shopping list (JSON array) dynamically: + + + +## Install + +Install via pip: + +```sh +$ pip install django-jsonform +``` + +Edit your *settings.py* file: + +```python +# settings.py + +INSTALLED_APPS = [ + # ... + 'django_jsonform' +] +``` + +## Upgrading notes + +When upgrading from an older version of this library, please ensure that your +browser is loading the latest static JavaScript files that come with this library. + + - In the development environment, clear the browser cache. + - In the production environment, you must run the `collectstatic` command to update + the static files. + +## Documentation + +Quickstart and usage docs can be found at [http://django-jsonform.rtfd.io](http://django-jsonform.rtfd.io). + +## Contributing + + - The JavaScript code is written in React and it lives in another repo: https://github.com/bhch/react-json-form. + The JS code lacks proper documentation or comments, so before contributing, maybe open an issue and I can help you out. + - For everything else (related to Django or widget's css), contribute directly to this repo. + +## License + +[BSD-3-Clause](LICENSE.txt) + + +%package -n python3-django-jsonform +Summary: A user-friendly JSON editing form for Django admin. +Provides: python-django-jsonform +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-jsonform +<p align="center"> + <img src="https://raw.githubusercontent.com/bhch/django-jsonform/master/docs/_static/logo.png" width="200" alt="django-jsonform icon"> +</p> + +<p align="center"> + A user-friendly JSON editing form for django admin. +</p> + +<p align="center"> + <img src="https://img.shields.io/badge/Python-%3E%3D%203.4-blue"> + <img src="https://img.shields.io/badge/Django-%3E%3D%202.0-blue"> + <img src="https://img.shields.io/pypi/dm/django-jsonform"> +</p> + +<p align="center"> + <strong><a href="https://django-jsonform.rtfd.io">Documentation</a></strong> • + <strong><a href="https://bhch.github.io/react-json-form/playground/">Playground</a></strong> • + <strong><a href="https://pypi.org/project/django-jsonform/">PyPI</a></strong> +</p> + +## Features + + - [x] File uploads + - [x] Postgres `ArrayField` + - [x] Many inputs and field types + - [x] UI matches with Django admin's + - [x] Recursion (nesting with self references) + - [x] Validation + +## Screenshots + +Here's a screenshot of items being added to a shopping list (JSON array) dynamically: + + + +## Install + +Install via pip: + +```sh +$ pip install django-jsonform +``` + +Edit your *settings.py* file: + +```python +# settings.py + +INSTALLED_APPS = [ + # ... + 'django_jsonform' +] +``` + +## Upgrading notes + +When upgrading from an older version of this library, please ensure that your +browser is loading the latest static JavaScript files that come with this library. + + - In the development environment, clear the browser cache. + - In the production environment, you must run the `collectstatic` command to update + the static files. + +## Documentation + +Quickstart and usage docs can be found at [http://django-jsonform.rtfd.io](http://django-jsonform.rtfd.io). + +## Contributing + + - The JavaScript code is written in React and it lives in another repo: https://github.com/bhch/react-json-form. + The JS code lacks proper documentation or comments, so before contributing, maybe open an issue and I can help you out. + - For everything else (related to Django or widget's css), contribute directly to this repo. + +## License + +[BSD-3-Clause](LICENSE.txt) + + +%package help +Summary: Development documents and examples for django-jsonform +Provides: python3-django-jsonform-doc +%description help +<p align="center"> + <img src="https://raw.githubusercontent.com/bhch/django-jsonform/master/docs/_static/logo.png" width="200" alt="django-jsonform icon"> +</p> + +<p align="center"> + A user-friendly JSON editing form for django admin. +</p> + +<p align="center"> + <img src="https://img.shields.io/badge/Python-%3E%3D%203.4-blue"> + <img src="https://img.shields.io/badge/Django-%3E%3D%202.0-blue"> + <img src="https://img.shields.io/pypi/dm/django-jsonform"> +</p> + +<p align="center"> + <strong><a href="https://django-jsonform.rtfd.io">Documentation</a></strong> • + <strong><a href="https://bhch.github.io/react-json-form/playground/">Playground</a></strong> • + <strong><a href="https://pypi.org/project/django-jsonform/">PyPI</a></strong> +</p> + +## Features + + - [x] File uploads + - [x] Postgres `ArrayField` + - [x] Many inputs and field types + - [x] UI matches with Django admin's + - [x] Recursion (nesting with self references) + - [x] Validation + +## Screenshots + +Here's a screenshot of items being added to a shopping list (JSON array) dynamically: + + + +## Install + +Install via pip: + +```sh +$ pip install django-jsonform +``` + +Edit your *settings.py* file: + +```python +# settings.py + +INSTALLED_APPS = [ + # ... + 'django_jsonform' +] +``` + +## Upgrading notes + +When upgrading from an older version of this library, please ensure that your +browser is loading the latest static JavaScript files that come with this library. + + - In the development environment, clear the browser cache. + - In the production environment, you must run the `collectstatic` command to update + the static files. + +## Documentation + +Quickstart and usage docs can be found at [http://django-jsonform.rtfd.io](http://django-jsonform.rtfd.io). + +## Contributing + + - The JavaScript code is written in React and it lives in another repo: https://github.com/bhch/react-json-form. + The JS code lacks proper documentation or comments, so before contributing, maybe open an issue and I can help you out. + - For everything else (related to Django or widget's css), contribute directly to this repo. + +## License + +[BSD-3-Clause](LICENSE.txt) + + +%prep +%autosetup -n django-jsonform-2.17.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-jsonform -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 2.17.0-1 +- Package Spec generated @@ -0,0 +1 @@ +db28c2203963fb0f6a996ebeae3bf2e1 django-jsonform-2.17.0.tar.gz |
