diff options
Diffstat (limited to 'python-django-pattern-library.spec')
| -rw-r--r-- | python-django-pattern-library.spec | 270 |
1 files changed, 270 insertions, 0 deletions
diff --git a/python-django-pattern-library.spec b/python-django-pattern-library.spec new file mode 100644 index 0000000..0b9fdc2 --- /dev/null +++ b/python-django-pattern-library.spec @@ -0,0 +1,270 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-pattern-library +Version: 1.0.0 +Release: 1 +Summary: A module for Django that allows to build pattern libraries for your projects. +License: BSD-3-Clause +URL: https://github.com/torchbox/django-pattern-library +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/34/1234bbc5802b2eeb9afbda48bcd53663231f28a1d0e99176b4387e884f0f/django-pattern-library-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-PyYAML +Requires: python3-Markdown + +%description +# [django-pattern-library](https://torchbox.github.io/django-pattern-library/) + +[](https://pypi.org/project/django-pattern-library/) [](https://pypi.org/project/django-pattern-library/) [](https://github.com/torchbox/django-pattern-library/actions) + +> UI pattern libraries for Django templates. Try our [online demo](https://torchbox.github.io/django-pattern-library/demo/). + + + +## Features + +This package automates the maintenance of UI pattern libraries or styleguides for Django projects, and allows developers to experiment with Django templates without having to create Django views and models. + +- Create reusable patterns by creating Django templates files as usual. +- All patterns automatically show up in the pattern library’s interface. +- Define data as YAML files for the templates to render with the relevant Django context. +- Override Django templates tags as needed to mock the template’s dependencies. +- Document your patterns with Markdown. + +## Why you need this + +Pattern libraries will change your workflow for the better: + +- They help separate concerns, both in code, and between members of a development team. +- If needed, they make it possible for UI development to happen before models and views are created. +- They encourage code reuse – defining independent UI components, that can be reused across apps, or ported to other projects. +- It makes it much simpler to test UI components – no need to figure out where they’re used across a site or app. + +Learn more by watching our presentation – [Reusable UI components: A journey from React to Wagtail](https://www.youtube.com/watch?v=isrOufI7TKc). + +## Online demo + +The pattern library is dependent on Django for rendering – but also supports exporting as a static site if needed. Try out our online demo: + +- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/molecules/accordion/accordion.html) +- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/people/person_page.html) + +## Documentation + +Documentation is available at [torchbox.github.io/django-pattern-library](https://torchbox.github.io/django-pattern-library/), with source files in the `docs` directory. + +- **[Getting started](https://torchbox.github.io/django-pattern-library/getting-started/)** +- **Guides** + - [Defining template context](https://torchbox.github.io/django-pattern-library/guides/defining-template-context/) + - [Overriding template tags](https://torchbox.github.io/django-pattern-library/guides/overriding-template-tags/) + - [Customizing template rendering](https://torchbox.github.io/django-pattern-library/guides/customizing-template-rendering/) + - [Usage tips](https://torchbox.github.io/django-pattern-library/guides/usage-tips/) +- **Reference** + - [API & settings](https://torchbox.github.io/django-pattern-library/reference/api/) + - [Known issues and limitations](https://torchbox.github.io/django-pattern-library/reference/known-issues/) + +## Contributing + +See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our [contribution guidelines](https://github.com/torchbox/django-pattern-library/blob/main/CONTRIBUTING.md). + +If you want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands. + +### Nightly builds + +To try out the latest features before a release, we also create builds from every commit to `main`. Note we make no guarantee as to the quality of those pre-releases, and the pre-releases are overwritten on every build so shouldn’t be relied on for reproducible builds. [Download the latest `django_pattern_library-0.0.0.dev0-py3-none-any.whl`](http://torchbox.github.io/django-pattern-library/dist/django_pattern_library-0.0.0.dev0-py3-none-any.whl). + +## Credits + +View the full list of [contributors](https://github.com/torchbox/django-pattern-library/graphs/contributors). [BSD](https://github.com/torchbox/django-pattern-library/blob/main/LICENSE) licensed. + +Project logo from [FxEmoji](https://github.com/mozilla/fxemoji). Documentation website built with [MkDocs](https://www.mkdocs.org/), and hosted in [GitHub Pages](https://pages.github.com/). + + +%package -n python3-django-pattern-library +Summary: A module for Django that allows to build pattern libraries for your projects. +Provides: python-django-pattern-library +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-pattern-library +# [django-pattern-library](https://torchbox.github.io/django-pattern-library/) + +[](https://pypi.org/project/django-pattern-library/) [](https://pypi.org/project/django-pattern-library/) [](https://github.com/torchbox/django-pattern-library/actions) + +> UI pattern libraries for Django templates. Try our [online demo](https://torchbox.github.io/django-pattern-library/demo/). + + + +## Features + +This package automates the maintenance of UI pattern libraries or styleguides for Django projects, and allows developers to experiment with Django templates without having to create Django views and models. + +- Create reusable patterns by creating Django templates files as usual. +- All patterns automatically show up in the pattern library’s interface. +- Define data as YAML files for the templates to render with the relevant Django context. +- Override Django templates tags as needed to mock the template’s dependencies. +- Document your patterns with Markdown. + +## Why you need this + +Pattern libraries will change your workflow for the better: + +- They help separate concerns, both in code, and between members of a development team. +- If needed, they make it possible for UI development to happen before models and views are created. +- They encourage code reuse – defining independent UI components, that can be reused across apps, or ported to other projects. +- It makes it much simpler to test UI components – no need to figure out where they’re used across a site or app. + +Learn more by watching our presentation – [Reusable UI components: A journey from React to Wagtail](https://www.youtube.com/watch?v=isrOufI7TKc). + +## Online demo + +The pattern library is dependent on Django for rendering – but also supports exporting as a static site if needed. Try out our online demo: + +- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/molecules/accordion/accordion.html) +- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/people/person_page.html) + +## Documentation + +Documentation is available at [torchbox.github.io/django-pattern-library](https://torchbox.github.io/django-pattern-library/), with source files in the `docs` directory. + +- **[Getting started](https://torchbox.github.io/django-pattern-library/getting-started/)** +- **Guides** + - [Defining template context](https://torchbox.github.io/django-pattern-library/guides/defining-template-context/) + - [Overriding template tags](https://torchbox.github.io/django-pattern-library/guides/overriding-template-tags/) + - [Customizing template rendering](https://torchbox.github.io/django-pattern-library/guides/customizing-template-rendering/) + - [Usage tips](https://torchbox.github.io/django-pattern-library/guides/usage-tips/) +- **Reference** + - [API & settings](https://torchbox.github.io/django-pattern-library/reference/api/) + - [Known issues and limitations](https://torchbox.github.io/django-pattern-library/reference/known-issues/) + +## Contributing + +See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our [contribution guidelines](https://github.com/torchbox/django-pattern-library/blob/main/CONTRIBUTING.md). + +If you want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands. + +### Nightly builds + +To try out the latest features before a release, we also create builds from every commit to `main`. Note we make no guarantee as to the quality of those pre-releases, and the pre-releases are overwritten on every build so shouldn’t be relied on for reproducible builds. [Download the latest `django_pattern_library-0.0.0.dev0-py3-none-any.whl`](http://torchbox.github.io/django-pattern-library/dist/django_pattern_library-0.0.0.dev0-py3-none-any.whl). + +## Credits + +View the full list of [contributors](https://github.com/torchbox/django-pattern-library/graphs/contributors). [BSD](https://github.com/torchbox/django-pattern-library/blob/main/LICENSE) licensed. + +Project logo from [FxEmoji](https://github.com/mozilla/fxemoji). Documentation website built with [MkDocs](https://www.mkdocs.org/), and hosted in [GitHub Pages](https://pages.github.com/). + + +%package help +Summary: Development documents and examples for django-pattern-library +Provides: python3-django-pattern-library-doc +%description help +# [django-pattern-library](https://torchbox.github.io/django-pattern-library/) + +[](https://pypi.org/project/django-pattern-library/) [](https://pypi.org/project/django-pattern-library/) [](https://github.com/torchbox/django-pattern-library/actions) + +> UI pattern libraries for Django templates. Try our [online demo](https://torchbox.github.io/django-pattern-library/demo/). + + + +## Features + +This package automates the maintenance of UI pattern libraries or styleguides for Django projects, and allows developers to experiment with Django templates without having to create Django views and models. + +- Create reusable patterns by creating Django templates files as usual. +- All patterns automatically show up in the pattern library’s interface. +- Define data as YAML files for the templates to render with the relevant Django context. +- Override Django templates tags as needed to mock the template’s dependencies. +- Document your patterns with Markdown. + +## Why you need this + +Pattern libraries will change your workflow for the better: + +- They help separate concerns, both in code, and between members of a development team. +- If needed, they make it possible for UI development to happen before models and views are created. +- They encourage code reuse – defining independent UI components, that can be reused across apps, or ported to other projects. +- It makes it much simpler to test UI components – no need to figure out where they’re used across a site or app. + +Learn more by watching our presentation – [Reusable UI components: A journey from React to Wagtail](https://www.youtube.com/watch?v=isrOufI7TKc). + +## Online demo + +The pattern library is dependent on Django for rendering – but also supports exporting as a static site if needed. Try out our online demo: + +- For a component, [accordion.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/molecules/accordion/accordion.html) +- For a page-level template, [person_page.html](https://torchbox.github.io/django-pattern-library/demo/pattern/patterns/pages/people/person_page.html) + +## Documentation + +Documentation is available at [torchbox.github.io/django-pattern-library](https://torchbox.github.io/django-pattern-library/), with source files in the `docs` directory. + +- **[Getting started](https://torchbox.github.io/django-pattern-library/getting-started/)** +- **Guides** + - [Defining template context](https://torchbox.github.io/django-pattern-library/guides/defining-template-context/) + - [Overriding template tags](https://torchbox.github.io/django-pattern-library/guides/overriding-template-tags/) + - [Customizing template rendering](https://torchbox.github.io/django-pattern-library/guides/customizing-template-rendering/) + - [Usage tips](https://torchbox.github.io/django-pattern-library/guides/usage-tips/) +- **Reference** + - [API & settings](https://torchbox.github.io/django-pattern-library/reference/api/) + - [Known issues and limitations](https://torchbox.github.io/django-pattern-library/reference/known-issues/) + +## Contributing + +See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our [contribution guidelines](https://github.com/torchbox/django-pattern-library/blob/main/CONTRIBUTING.md). + +If you want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands. + +### Nightly builds + +To try out the latest features before a release, we also create builds from every commit to `main`. Note we make no guarantee as to the quality of those pre-releases, and the pre-releases are overwritten on every build so shouldn’t be relied on for reproducible builds. [Download the latest `django_pattern_library-0.0.0.dev0-py3-none-any.whl`](http://torchbox.github.io/django-pattern-library/dist/django_pattern_library-0.0.0.dev0-py3-none-any.whl). + +## Credits + +View the full list of [contributors](https://github.com/torchbox/django-pattern-library/graphs/contributors). [BSD](https://github.com/torchbox/django-pattern-library/blob/main/LICENSE) licensed. + +Project logo from [FxEmoji](https://github.com/mozilla/fxemoji). Documentation website built with [MkDocs](https://www.mkdocs.org/), and hosted in [GitHub Pages](https://pages.github.com/). + + +%prep +%autosetup -n django-pattern-library-1.0.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-pattern-library -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated |
