summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 09:32:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 09:32:57 +0000
commit9ef9df703784e7902afef4dd4ed509dabc6bf709 (patch)
tree748ef6f5675aa5530564b051c1175566457f6f50
parent66a5fe3126377377226c998223ddd43b44c068aa (diff)
automatic import of python-django-inlinecss
-rw-r--r--.gitignore1
-rw-r--r--python-django-inlinecss.spec313
-rw-r--r--sources1
3 files changed, 315 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..183d161 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-inlinecss-0.3.0.tar.gz
diff --git a/python-django-inlinecss.spec b/python-django-inlinecss.spec
new file mode 100644
index 0000000..1d41e2f
--- /dev/null
+++ b/python-django-inlinecss.spec
@@ -0,0 +1,313 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-inlinecss
+Version: 0.3.0
+Release: 1
+Summary: A Django app useful for inlining CSS (primarily for e-mails)
+License: MIT
+URL: https://github.com/roverdotcom/django-inlinecss
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c2/d7/fca167ea93f70185d6689df40aac136f0001d71d84ccc34151812c024b3b/django-inlinecss-0.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+Requires: python3-pynliner
+Requires: python3-future
+Requires: python3-flake8
+Requires: python3-flake8-isort
+Requires: python3-isort
+Requires: python3-testfixtures
+Requires: python3-mock
+Requires: python3-pytest
+Requires: python3-pytest-django
+
+%description
+[![Build Status](https://travis-ci.org/roverdotcom/django-inlinecss.png?branch=master)](https://travis-ci.org/roverdotcom/django-inlinecss)
+
+## About
+
+Inlining CSS is necessary for email generation and sending
+but is currently a surprisingly large hassle.
+
+This library aims to make it a breeze in the Django
+template language.
+
+## Usage
+
+#### Step 1: Dependencies
+
+- BeautifulSoup
+- cssutils
+- Python 2.7+,3.4+
+- Django 1.11+
+
+
+#### Step 2: Install django_inlinecss
+
+Add ```django_inlinecss``` to your ```settings.py```:
+
+```python
+INSTALLED_APPS = (
+ 'django.contrib.auth',
+ 'django.contrib.webdesign',
+ 'django.contrib.contenttypes',
+ '...',
+ '...',
+ '...',
+ 'django_inlinecss')
+```
+
+#### Step 3: Use the templatetag
+
+1. Place your CSS file somewhere staticfiles can find it
+2. Create your template:
+
+```html
+{% load inlinecss %}
+{% inlinecss "css/extra-padding.css" %}
+ <html>
+ <body>
+ <div class='lots-o-padding'>
+ Something in need of styling.
+ </div>
+ </body>
+ </html>
+{% endinlinecss %}
+```
+
+#### Step 4: Prepare to be Wowed
+
+```html
+<html>
+ <body>
+ <div style="padding-left: 10px; padding-right: 10px; padding-top: 10px;" class="lots-o-padding">
+ Something in need of styling.
+ </div>
+ </body>
+</html>
+```
+
+## Acknowledgements
+
+Thanks to Tanner Netterville for his efforts on [Pynliner](https://github.com/rennat/pynliner).
+
+Thanks to Thomas Yip for his unit tests on the `soupselect` module. These tests
+helped on getting the core CSS2 selectors to work.
+
+## License
+
+MIT license. See LICENSE.md for more detail.
+
+
+
+
+%package -n python3-django-inlinecss
+Summary: A Django app useful for inlining CSS (primarily for e-mails)
+Provides: python-django-inlinecss
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-inlinecss
+[![Build Status](https://travis-ci.org/roverdotcom/django-inlinecss.png?branch=master)](https://travis-ci.org/roverdotcom/django-inlinecss)
+
+## About
+
+Inlining CSS is necessary for email generation and sending
+but is currently a surprisingly large hassle.
+
+This library aims to make it a breeze in the Django
+template language.
+
+## Usage
+
+#### Step 1: Dependencies
+
+- BeautifulSoup
+- cssutils
+- Python 2.7+,3.4+
+- Django 1.11+
+
+
+#### Step 2: Install django_inlinecss
+
+Add ```django_inlinecss``` to your ```settings.py```:
+
+```python
+INSTALLED_APPS = (
+ 'django.contrib.auth',
+ 'django.contrib.webdesign',
+ 'django.contrib.contenttypes',
+ '...',
+ '...',
+ '...',
+ 'django_inlinecss')
+```
+
+#### Step 3: Use the templatetag
+
+1. Place your CSS file somewhere staticfiles can find it
+2. Create your template:
+
+```html
+{% load inlinecss %}
+{% inlinecss "css/extra-padding.css" %}
+ <html>
+ <body>
+ <div class='lots-o-padding'>
+ Something in need of styling.
+ </div>
+ </body>
+ </html>
+{% endinlinecss %}
+```
+
+#### Step 4: Prepare to be Wowed
+
+```html
+<html>
+ <body>
+ <div style="padding-left: 10px; padding-right: 10px; padding-top: 10px;" class="lots-o-padding">
+ Something in need of styling.
+ </div>
+ </body>
+</html>
+```
+
+## Acknowledgements
+
+Thanks to Tanner Netterville for his efforts on [Pynliner](https://github.com/rennat/pynliner).
+
+Thanks to Thomas Yip for his unit tests on the `soupselect` module. These tests
+helped on getting the core CSS2 selectors to work.
+
+## License
+
+MIT license. See LICENSE.md for more detail.
+
+
+
+
+%package help
+Summary: Development documents and examples for django-inlinecss
+Provides: python3-django-inlinecss-doc
+%description help
+[![Build Status](https://travis-ci.org/roverdotcom/django-inlinecss.png?branch=master)](https://travis-ci.org/roverdotcom/django-inlinecss)
+
+## About
+
+Inlining CSS is necessary for email generation and sending
+but is currently a surprisingly large hassle.
+
+This library aims to make it a breeze in the Django
+template language.
+
+## Usage
+
+#### Step 1: Dependencies
+
+- BeautifulSoup
+- cssutils
+- Python 2.7+,3.4+
+- Django 1.11+
+
+
+#### Step 2: Install django_inlinecss
+
+Add ```django_inlinecss``` to your ```settings.py```:
+
+```python
+INSTALLED_APPS = (
+ 'django.contrib.auth',
+ 'django.contrib.webdesign',
+ 'django.contrib.contenttypes',
+ '...',
+ '...',
+ '...',
+ 'django_inlinecss')
+```
+
+#### Step 3: Use the templatetag
+
+1. Place your CSS file somewhere staticfiles can find it
+2. Create your template:
+
+```html
+{% load inlinecss %}
+{% inlinecss "css/extra-padding.css" %}
+ <html>
+ <body>
+ <div class='lots-o-padding'>
+ Something in need of styling.
+ </div>
+ </body>
+ </html>
+{% endinlinecss %}
+```
+
+#### Step 4: Prepare to be Wowed
+
+```html
+<html>
+ <body>
+ <div style="padding-left: 10px; padding-right: 10px; padding-top: 10px;" class="lots-o-padding">
+ Something in need of styling.
+ </div>
+ </body>
+</html>
+```
+
+## Acknowledgements
+
+Thanks to Tanner Netterville for his efforts on [Pynliner](https://github.com/rennat/pynliner).
+
+Thanks to Thomas Yip for his unit tests on the `soupselect` module. These tests
+helped on getting the core CSS2 selectors to work.
+
+## License
+
+MIT license. See LICENSE.md for more detail.
+
+
+
+
+%prep
+%autosetup -n django-inlinecss-0.3.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-inlinecss -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6e20ad0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c3a0aa01a10fc131aadd7da8e6223365 django-inlinecss-0.3.0.tar.gz