summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 09:26:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 09:26:12 +0000
commite852d44c6c45521cf973fc5b8f8215dfb48e5ffe (patch)
treefce3a3c80e5e6a0bebe9411e26fed67d46c5d023
parent0838bec7cb65b5cf8fbb560e4691af1971cad04c (diff)
automatic import of python-make-responsive-images
-rw-r--r--.gitignore1
-rw-r--r--python-make-responsive-images.spec373
-rw-r--r--sources1
3 files changed, 375 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..434daba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/make-responsive-images-0.1.11.tar.gz
diff --git a/python-make-responsive-images.spec b/python-make-responsive-images.spec
new file mode 100644
index 0000000..f68d183
--- /dev/null
+++ b/python-make-responsive-images.spec
@@ -0,0 +1,373 @@
+%global _empty_manifest_terminate_build 0
+Name: python-make-responsive-images
+Version: 0.1.11
+Release: 1
+Summary: Generate responsive images for your website, so you can use srcset in your <img> tags and serve an optimal image to each device that views your site.
+License: MIT
+URL: https://mccarthysean.dev/make-responsive-images
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/df/5e/264d88c158244edb681760fe6be62c9bc2323baf6a0e882986536b1c4345/make-responsive-images-0.1.11.tar.gz
+BuildArch: noarch
+
+Requires: python3-Pillow
+Requires: python3-typer
+Requires: python3-colorama
+Requires: python3-shellingham
+
+%description
+# `make-responsive-images`
+
+Generate responsive images automatically, for websites to use `srcset` and `sizes` in the `<img>` tags.
+
+This way you serve an optimal image for each device viewport size.
+
+<p align="center">
+<a href="https://github.com/mccarthysean/make-responsive-images/actions?query=workflow%3ATest" target="_blank">
+ <img src="https://github.com/mccarthysean/make-responsive-images/workflows/Test/badge.svg" alt="Test">
+</a>
+<a href="https://codecov.io/gh/mccarthysean/make-responsive-images" target="_blank">
+ <img src="https://img.shields.io/codecov/c/github/mccarthysean/make-responsive-images?color=%2334D058" alt="Coverage">
+</a>
+<a href="https://github.com/mccarthysean/make-responsive-images/actions?query=workflow%3Apypi" target="_blank">
+ <img src="https://github.com/mccarthysean/make-responsive-images/workflows/Upload%20Package%20to%20PyPI/badge.svg" alt="Publish">
+</a>
+<a href="https://pypi.org/project/make-responsive-images" target="_blank">
+ <img src="https://img.shields.io/pypi/v/make-responsive-images?color=%2334D058&label=pypi%20package" alt="Package version">
+</a>
+<a href="https://pypi.org/project/make-responsive-images/" target="_blank">
+ <img src="https://img.shields.io/pypi/pyversions/make-responsive-images.svg" alt="Python Versions">
+</a>
+</p>
+
+## Installation
+
+[Install from PyPI](https://pypi.org/project/make-responsive-images/)
+
+```bash
+pip install make-responsive-images
+```
+
+## Usage
+
+```bash
+resize [OPTIONS] COMMAND [ARGS]...
+```
+
+### Options
+
+* `-v, --version`: Show the application's version and exit.
+* `--help`: Show this message and exit.
+
+## Commands
+
+* `image`: Resize one image
+
+### Usage
+
+```bash
+resize image [OPTIONS] [IMAGE]
+```
+
+### Arguments
+
+* `[IMAGE]`: [default: /workspace/tests/fixtures/xfer-original.jpg]
+
+### Options
+
+* `--widths TEXT`: Widths of new images, in pixels [default: 600,1000,1400]
+* `--html / --no-html`: Generate HTML <img> tag [default: True]
+* `--classes TEXT`: Classnames to add to the <img> tag (e.g. class="img-fluid")
+* `--img-sizes TEXT`: Sizes for the <img> tag (e.g. sizes="100vw") [default: 100vw]
+* `--lazy / --no-lazy`: Adds loading="lazy" to <img> tag for SEO [default: False]
+* `--alt TEXT`: Adds alt="" to the <img> tag (e.g. alt="Funny image") [default: ]
+* `--dir TEXT`: Images directory to prepend to the src (e.g. src="dir/image")
+* `--fmt TEXT`: Image type to save as ("jpg" and "webp" supported) [default: webp]
+* `--qual INTEGER`: Compression to apply (i.e. 0=max, 100=min) [default: 100]
+* `--lower / --no-lower`: Converts filename to lowercase [default: True]
+* `--dashes / --no-dashes`: Converts underscores to dashes for SEO [default: True]
+* `--flask / --no-flask`: Uses Python Flask's 'url_for('static', ...)' [default: False]
+* `--help`: Show this message and exit.
+
+## Author Info
+
+Sean McCarthy is Chief Data Scientist at [IJACK Technologies Inc](https://myijack.com), a leading manufacturer of fully-automated pumps to green the oil and gas industry.
+
+<br>
+<a href="https://mccarthysean.dev">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/mccarthysean.svg?sanitize=1" alt="Sean McCarthy's blog">
+</a>
+<a href="https://www.linkedin.com/in/seanmccarthy2/">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/linkedin.svg?sanitize=1" alt="LinkedIn">
+</a>
+<a href="https://github.com/mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/github.svg?sanitize=1" alt="GitHub">
+</a>
+<a href="https://twitter.com/mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/twitter.svg?sanitize=1" alt="Twitter">
+</a>
+<a href="https://www.facebook.com/sean.mccarth">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/facebook.svg?sanitize=1" alt="Facebook">
+</a>
+<a href="https://medium.com/@mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/medium.svg?sanitize=1" alt="Medium">
+</a>
+<a href="https://www.instagram.com/mccarthysean/">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/instagram.svg?sanitize=1" alt="Instagram">
+</a>
+
+
+%package -n python3-make-responsive-images
+Summary: Generate responsive images for your website, so you can use srcset in your <img> tags and serve an optimal image to each device that views your site.
+Provides: python-make-responsive-images
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-make-responsive-images
+# `make-responsive-images`
+
+Generate responsive images automatically, for websites to use `srcset` and `sizes` in the `<img>` tags.
+
+This way you serve an optimal image for each device viewport size.
+
+<p align="center">
+<a href="https://github.com/mccarthysean/make-responsive-images/actions?query=workflow%3ATest" target="_blank">
+ <img src="https://github.com/mccarthysean/make-responsive-images/workflows/Test/badge.svg" alt="Test">
+</a>
+<a href="https://codecov.io/gh/mccarthysean/make-responsive-images" target="_blank">
+ <img src="https://img.shields.io/codecov/c/github/mccarthysean/make-responsive-images?color=%2334D058" alt="Coverage">
+</a>
+<a href="https://github.com/mccarthysean/make-responsive-images/actions?query=workflow%3Apypi" target="_blank">
+ <img src="https://github.com/mccarthysean/make-responsive-images/workflows/Upload%20Package%20to%20PyPI/badge.svg" alt="Publish">
+</a>
+<a href="https://pypi.org/project/make-responsive-images" target="_blank">
+ <img src="https://img.shields.io/pypi/v/make-responsive-images?color=%2334D058&label=pypi%20package" alt="Package version">
+</a>
+<a href="https://pypi.org/project/make-responsive-images/" target="_blank">
+ <img src="https://img.shields.io/pypi/pyversions/make-responsive-images.svg" alt="Python Versions">
+</a>
+</p>
+
+## Installation
+
+[Install from PyPI](https://pypi.org/project/make-responsive-images/)
+
+```bash
+pip install make-responsive-images
+```
+
+## Usage
+
+```bash
+resize [OPTIONS] COMMAND [ARGS]...
+```
+
+### Options
+
+* `-v, --version`: Show the application's version and exit.
+* `--help`: Show this message and exit.
+
+## Commands
+
+* `image`: Resize one image
+
+### Usage
+
+```bash
+resize image [OPTIONS] [IMAGE]
+```
+
+### Arguments
+
+* `[IMAGE]`: [default: /workspace/tests/fixtures/xfer-original.jpg]
+
+### Options
+
+* `--widths TEXT`: Widths of new images, in pixels [default: 600,1000,1400]
+* `--html / --no-html`: Generate HTML <img> tag [default: True]
+* `--classes TEXT`: Classnames to add to the <img> tag (e.g. class="img-fluid")
+* `--img-sizes TEXT`: Sizes for the <img> tag (e.g. sizes="100vw") [default: 100vw]
+* `--lazy / --no-lazy`: Adds loading="lazy" to <img> tag for SEO [default: False]
+* `--alt TEXT`: Adds alt="" to the <img> tag (e.g. alt="Funny image") [default: ]
+* `--dir TEXT`: Images directory to prepend to the src (e.g. src="dir/image")
+* `--fmt TEXT`: Image type to save as ("jpg" and "webp" supported) [default: webp]
+* `--qual INTEGER`: Compression to apply (i.e. 0=max, 100=min) [default: 100]
+* `--lower / --no-lower`: Converts filename to lowercase [default: True]
+* `--dashes / --no-dashes`: Converts underscores to dashes for SEO [default: True]
+* `--flask / --no-flask`: Uses Python Flask's 'url_for('static', ...)' [default: False]
+* `--help`: Show this message and exit.
+
+## Author Info
+
+Sean McCarthy is Chief Data Scientist at [IJACK Technologies Inc](https://myijack.com), a leading manufacturer of fully-automated pumps to green the oil and gas industry.
+
+<br>
+<a href="https://mccarthysean.dev">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/mccarthysean.svg?sanitize=1" alt="Sean McCarthy's blog">
+</a>
+<a href="https://www.linkedin.com/in/seanmccarthy2/">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/linkedin.svg?sanitize=1" alt="LinkedIn">
+</a>
+<a href="https://github.com/mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/github.svg?sanitize=1" alt="GitHub">
+</a>
+<a href="https://twitter.com/mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/twitter.svg?sanitize=1" alt="Twitter">
+</a>
+<a href="https://www.facebook.com/sean.mccarth">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/facebook.svg?sanitize=1" alt="Facebook">
+</a>
+<a href="https://medium.com/@mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/medium.svg?sanitize=1" alt="Medium">
+</a>
+<a href="https://www.instagram.com/mccarthysean/">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/instagram.svg?sanitize=1" alt="Instagram">
+</a>
+
+
+%package help
+Summary: Development documents and examples for make-responsive-images
+Provides: python3-make-responsive-images-doc
+%description help
+# `make-responsive-images`
+
+Generate responsive images automatically, for websites to use `srcset` and `sizes` in the `<img>` tags.
+
+This way you serve an optimal image for each device viewport size.
+
+<p align="center">
+<a href="https://github.com/mccarthysean/make-responsive-images/actions?query=workflow%3ATest" target="_blank">
+ <img src="https://github.com/mccarthysean/make-responsive-images/workflows/Test/badge.svg" alt="Test">
+</a>
+<a href="https://codecov.io/gh/mccarthysean/make-responsive-images" target="_blank">
+ <img src="https://img.shields.io/codecov/c/github/mccarthysean/make-responsive-images?color=%2334D058" alt="Coverage">
+</a>
+<a href="https://github.com/mccarthysean/make-responsive-images/actions?query=workflow%3Apypi" target="_blank">
+ <img src="https://github.com/mccarthysean/make-responsive-images/workflows/Upload%20Package%20to%20PyPI/badge.svg" alt="Publish">
+</a>
+<a href="https://pypi.org/project/make-responsive-images" target="_blank">
+ <img src="https://img.shields.io/pypi/v/make-responsive-images?color=%2334D058&label=pypi%20package" alt="Package version">
+</a>
+<a href="https://pypi.org/project/make-responsive-images/" target="_blank">
+ <img src="https://img.shields.io/pypi/pyversions/make-responsive-images.svg" alt="Python Versions">
+</a>
+</p>
+
+## Installation
+
+[Install from PyPI](https://pypi.org/project/make-responsive-images/)
+
+```bash
+pip install make-responsive-images
+```
+
+## Usage
+
+```bash
+resize [OPTIONS] COMMAND [ARGS]...
+```
+
+### Options
+
+* `-v, --version`: Show the application's version and exit.
+* `--help`: Show this message and exit.
+
+## Commands
+
+* `image`: Resize one image
+
+### Usage
+
+```bash
+resize image [OPTIONS] [IMAGE]
+```
+
+### Arguments
+
+* `[IMAGE]`: [default: /workspace/tests/fixtures/xfer-original.jpg]
+
+### Options
+
+* `--widths TEXT`: Widths of new images, in pixels [default: 600,1000,1400]
+* `--html / --no-html`: Generate HTML <img> tag [default: True]
+* `--classes TEXT`: Classnames to add to the <img> tag (e.g. class="img-fluid")
+* `--img-sizes TEXT`: Sizes for the <img> tag (e.g. sizes="100vw") [default: 100vw]
+* `--lazy / --no-lazy`: Adds loading="lazy" to <img> tag for SEO [default: False]
+* `--alt TEXT`: Adds alt="" to the <img> tag (e.g. alt="Funny image") [default: ]
+* `--dir TEXT`: Images directory to prepend to the src (e.g. src="dir/image")
+* `--fmt TEXT`: Image type to save as ("jpg" and "webp" supported) [default: webp]
+* `--qual INTEGER`: Compression to apply (i.e. 0=max, 100=min) [default: 100]
+* `--lower / --no-lower`: Converts filename to lowercase [default: True]
+* `--dashes / --no-dashes`: Converts underscores to dashes for SEO [default: True]
+* `--flask / --no-flask`: Uses Python Flask's 'url_for('static', ...)' [default: False]
+* `--help`: Show this message and exit.
+
+## Author Info
+
+Sean McCarthy is Chief Data Scientist at [IJACK Technologies Inc](https://myijack.com), a leading manufacturer of fully-automated pumps to green the oil and gas industry.
+
+<br>
+<a href="https://mccarthysean.dev">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/mccarthysean.svg?sanitize=1" alt="Sean McCarthy's blog">
+</a>
+<a href="https://www.linkedin.com/in/seanmccarthy2/">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/linkedin.svg?sanitize=1" alt="LinkedIn">
+</a>
+<a href="https://github.com/mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/github.svg?sanitize=1" alt="GitHub">
+</a>
+<a href="https://twitter.com/mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/twitter.svg?sanitize=1" alt="Twitter">
+</a>
+<a href="https://www.facebook.com/sean.mccarth">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/facebook.svg?sanitize=1" alt="Facebook">
+</a>
+<a href="https://medium.com/@mccarthysean">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/medium.svg?sanitize=1" alt="Medium">
+</a>
+<a href="https://www.instagram.com/mccarthysean/">
+ <img src="https://raw.githubusercontent.com/mccarthysean/make-responsive-images/main/docs/assets/instagram.svg?sanitize=1" alt="Instagram">
+</a>
+
+
+%prep
+%autosetup -n make-responsive-images-0.1.11
+
+%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-make-responsive-images -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..720f094
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7edc6200a495a737f27e5da00df2f18f make-responsive-images-0.1.11.tar.gz