From 258c1e3f5cbf0290c862dbc67535fdaecf2e4420 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 09:23:47 +0000 Subject: automatic import of python-django-schema-graph --- .gitignore | 1 + python-django-schema-graph.spec | 310 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 312 insertions(+) create mode 100644 python-django-schema-graph.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..36db68a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/django_schema_graph-2.2.1.tar.gz diff --git a/python-django-schema-graph.spec b/python-django-schema-graph.spec new file mode 100644 index 0000000..5f34b11 --- /dev/null +++ b/python-django-schema-graph.spec @@ -0,0 +1,310 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-schema-graph +Version: 2.2.1 +Release: 1 +Summary: An interactive graph of your Django model structure. +License: MIT +URL: https://github.com/meshy/django-schema-graph +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d0/12/4aa6ff1bc6dda31abf2aed3fea8e8c93a6595a3307c4bb22aa7b4b511f5e/django_schema_graph-2.2.1.tar.gz +BuildArch: noarch + +Requires: python3-attrs + +%description +# Django Schema Graph + +Django-schema-graph makes a colourful diagram out of your Django models. The +diagram is interactive, and makes it easy to toggle models and apps on/off at +will. + +It looks like this: + +| Feature | Screenshot | +| --- | --- | +| Models | ![models screenshot](docs-images/models.png) | +| Apps | ![apps screenshot](docs-images/apps.png) | +| Both together | ![models and apps screenshot](docs-images/combination.png) | +| Graph editor | ![menu screenshot](docs-images/menu.png) | + +(Apologies that the images above don't work on PyPI. [Check it out on +GitHub](https://github.com/meshy/django-schema-graph/blob/master/README.md).) + + +## Installation + +Install from PyPI: + +```bash +pip install django-schema-graph +``` + +Add to `INSTALLED_APPS`: + +```python +INSTALLED_APPS = [ + ... + 'schema_graph', + ... +] +``` + +Add to your URLs. + +```python +from schema_graph.views import Schema +urlpatterns += [ + # On Django 2+: + path("schema/", Schema.as_view()), + # Or, on Django < 2: + url(r"^schema/$", Schema.as_view()), +] +``` + +## Use + +Browse to `/schema/` (assuming that's where you put it in your URLs). + +You can control access to this page using the `SCHEMA_GRAPH_VISIBLE` setting, +or by subclassing `schema_graph.views.Schema` and overriding `access_permitted`. +By default the page is only visible when `DEBUG` is `True`, +because we assume that you don't want to leak sensitive information about your +website outside of local development. + +## Support + +Tests run on sensible combinations of: +- Python (3.6-3.11) +- Django (1.11-4.1) + +If you're stuck on old version of Python or Django, you may consider installing +old versions. +They will probably have fewer features, and there will be no support for them. + +The last version to support Python 2.7 and 3.5 was 1.2.0 + +The last version to support Django 1.8 was 1.2.0 + +## Alternatives + +- [`django-spaghetti-and-meatballs`](https://github.com/LegoStormtroopr/django-spaghetti-and-meatballs) + is great. At the time of writing, it offers a lot more detailed information + on the models in the diagram, but doesn't allow them to be turned on/off in + the page. + + +%package -n python3-django-schema-graph +Summary: An interactive graph of your Django model structure. +Provides: python-django-schema-graph +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-schema-graph +# Django Schema Graph + +Django-schema-graph makes a colourful diagram out of your Django models. The +diagram is interactive, and makes it easy to toggle models and apps on/off at +will. + +It looks like this: + +| Feature | Screenshot | +| --- | --- | +| Models | ![models screenshot](docs-images/models.png) | +| Apps | ![apps screenshot](docs-images/apps.png) | +| Both together | ![models and apps screenshot](docs-images/combination.png) | +| Graph editor | ![menu screenshot](docs-images/menu.png) | + +(Apologies that the images above don't work on PyPI. [Check it out on +GitHub](https://github.com/meshy/django-schema-graph/blob/master/README.md).) + + +## Installation + +Install from PyPI: + +```bash +pip install django-schema-graph +``` + +Add to `INSTALLED_APPS`: + +```python +INSTALLED_APPS = [ + ... + 'schema_graph', + ... +] +``` + +Add to your URLs. + +```python +from schema_graph.views import Schema +urlpatterns += [ + # On Django 2+: + path("schema/", Schema.as_view()), + # Or, on Django < 2: + url(r"^schema/$", Schema.as_view()), +] +``` + +## Use + +Browse to `/schema/` (assuming that's where you put it in your URLs). + +You can control access to this page using the `SCHEMA_GRAPH_VISIBLE` setting, +or by subclassing `schema_graph.views.Schema` and overriding `access_permitted`. +By default the page is only visible when `DEBUG` is `True`, +because we assume that you don't want to leak sensitive information about your +website outside of local development. + +## Support + +Tests run on sensible combinations of: +- Python (3.6-3.11) +- Django (1.11-4.1) + +If you're stuck on old version of Python or Django, you may consider installing +old versions. +They will probably have fewer features, and there will be no support for them. + +The last version to support Python 2.7 and 3.5 was 1.2.0 + +The last version to support Django 1.8 was 1.2.0 + +## Alternatives + +- [`django-spaghetti-and-meatballs`](https://github.com/LegoStormtroopr/django-spaghetti-and-meatballs) + is great. At the time of writing, it offers a lot more detailed information + on the models in the diagram, but doesn't allow them to be turned on/off in + the page. + + +%package help +Summary: Development documents and examples for django-schema-graph +Provides: python3-django-schema-graph-doc +%description help +# Django Schema Graph + +Django-schema-graph makes a colourful diagram out of your Django models. The +diagram is interactive, and makes it easy to toggle models and apps on/off at +will. + +It looks like this: + +| Feature | Screenshot | +| --- | --- | +| Models | ![models screenshot](docs-images/models.png) | +| Apps | ![apps screenshot](docs-images/apps.png) | +| Both together | ![models and apps screenshot](docs-images/combination.png) | +| Graph editor | ![menu screenshot](docs-images/menu.png) | + +(Apologies that the images above don't work on PyPI. [Check it out on +GitHub](https://github.com/meshy/django-schema-graph/blob/master/README.md).) + + +## Installation + +Install from PyPI: + +```bash +pip install django-schema-graph +``` + +Add to `INSTALLED_APPS`: + +```python +INSTALLED_APPS = [ + ... + 'schema_graph', + ... +] +``` + +Add to your URLs. + +```python +from schema_graph.views import Schema +urlpatterns += [ + # On Django 2+: + path("schema/", Schema.as_view()), + # Or, on Django < 2: + url(r"^schema/$", Schema.as_view()), +] +``` + +## Use + +Browse to `/schema/` (assuming that's where you put it in your URLs). + +You can control access to this page using the `SCHEMA_GRAPH_VISIBLE` setting, +or by subclassing `schema_graph.views.Schema` and overriding `access_permitted`. +By default the page is only visible when `DEBUG` is `True`, +because we assume that you don't want to leak sensitive information about your +website outside of local development. + +## Support + +Tests run on sensible combinations of: +- Python (3.6-3.11) +- Django (1.11-4.1) + +If you're stuck on old version of Python or Django, you may consider installing +old versions. +They will probably have fewer features, and there will be no support for them. + +The last version to support Python 2.7 and 3.5 was 1.2.0 + +The last version to support Django 1.8 was 1.2.0 + +## Alternatives + +- [`django-spaghetti-and-meatballs`](https://github.com/LegoStormtroopr/django-spaghetti-and-meatballs) + is great. At the time of writing, it offers a lot more detailed information + on the models in the diagram, but doesn't allow them to be turned on/off in + the page. + + +%prep +%autosetup -n django-schema-graph-2.2.1 + +%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-schema-graph -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot - 2.2.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..dfcb9f6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7674b9355600bc6dda9dafda53147a49 django_schema_graph-2.2.1.tar.gz -- cgit v1.2.3