diff options
Diffstat (limited to 'python-tox-pip-extensions.spec')
| -rw-r--r-- | python-tox-pip-extensions.spec | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/python-tox-pip-extensions.spec b/python-tox-pip-extensions.spec new file mode 100644 index 0000000..b176941 --- /dev/null +++ b/python-tox-pip-extensions.spec @@ -0,0 +1,173 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tox-pip-extensions +Version: 1.6.0 +Release: 1 +Summary: Augment tox with different installation methods via progressive enhancement. +License: MIT +URL: https://github.com/tox-dev/tox-pip-extensions +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/fa/6e440d50c2414f8d11ae2505f9461b8ece81d4bf8b4deacf4e6f8011841c/tox_pip_extensions-1.6.0.tar.gz +BuildArch: noarch + +Requires: python3-six +Requires: python3-tox + +%description +Augment tox with different installation methods via progressive enhancement. +## Installation +`pip install tox-pip-extensions` +## Supported extensions +### [venv-update (pip-faster)](https://github.com/Yelp/venv-update) +venv-update has the desirable behavior that it synchronizes the installed +packages to the dependencies you ask for and uninstalls extraneous things +quickly (without removing the virtualenv) -- you'll never need +`tox --recreate` again! +To enable this enhancement, simply add: +```ini +[tox] +tox_pip_extensions_ext_venv_update = true +``` +### [pip-custom-platform](https://github.com/asottile/pip-custom-platform) +pip-custom-platform is useful if you'd like to target other operating systems +and maintain an internal pypi server containing precompiled wheels. +To enable this enhancement, simply add: +```ini +[tox] +tox_pip_extensions_ext_pip_custom_platform = true +``` +### pip-custom-platform + venv-update (pip-faster) +These extensions can be used together, simply add both: +```ini +[tox] +tox_pip_extensions_ext_venv_update = true +tox_pip_extensions_ext_pip_custom_platform = true +``` +## Bootstrap requirements +By default, `tox-pip-extensions` will intelligently choose what versions to +install based on the plugins selected. +If you'd like to pin specific versions, `tox-pip-extensions` will defer to a +file named `requirements-bootstrap.txt` in the same directory as `tox.ini`. + +%package -n python3-tox-pip-extensions +Summary: Augment tox with different installation methods via progressive enhancement. +Provides: python-tox-pip-extensions +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-tox-pip-extensions +Augment tox with different installation methods via progressive enhancement. +## Installation +`pip install tox-pip-extensions` +## Supported extensions +### [venv-update (pip-faster)](https://github.com/Yelp/venv-update) +venv-update has the desirable behavior that it synchronizes the installed +packages to the dependencies you ask for and uninstalls extraneous things +quickly (without removing the virtualenv) -- you'll never need +`tox --recreate` again! +To enable this enhancement, simply add: +```ini +[tox] +tox_pip_extensions_ext_venv_update = true +``` +### [pip-custom-platform](https://github.com/asottile/pip-custom-platform) +pip-custom-platform is useful if you'd like to target other operating systems +and maintain an internal pypi server containing precompiled wheels. +To enable this enhancement, simply add: +```ini +[tox] +tox_pip_extensions_ext_pip_custom_platform = true +``` +### pip-custom-platform + venv-update (pip-faster) +These extensions can be used together, simply add both: +```ini +[tox] +tox_pip_extensions_ext_venv_update = true +tox_pip_extensions_ext_pip_custom_platform = true +``` +## Bootstrap requirements +By default, `tox-pip-extensions` will intelligently choose what versions to +install based on the plugins selected. +If you'd like to pin specific versions, `tox-pip-extensions` will defer to a +file named `requirements-bootstrap.txt` in the same directory as `tox.ini`. + +%package help +Summary: Development documents and examples for tox-pip-extensions +Provides: python3-tox-pip-extensions-doc +%description help +Augment tox with different installation methods via progressive enhancement. +## Installation +`pip install tox-pip-extensions` +## Supported extensions +### [venv-update (pip-faster)](https://github.com/Yelp/venv-update) +venv-update has the desirable behavior that it synchronizes the installed +packages to the dependencies you ask for and uninstalls extraneous things +quickly (without removing the virtualenv) -- you'll never need +`tox --recreate` again! +To enable this enhancement, simply add: +```ini +[tox] +tox_pip_extensions_ext_venv_update = true +``` +### [pip-custom-platform](https://github.com/asottile/pip-custom-platform) +pip-custom-platform is useful if you'd like to target other operating systems +and maintain an internal pypi server containing precompiled wheels. +To enable this enhancement, simply add: +```ini +[tox] +tox_pip_extensions_ext_pip_custom_platform = true +``` +### pip-custom-platform + venv-update (pip-faster) +These extensions can be used together, simply add both: +```ini +[tox] +tox_pip_extensions_ext_venv_update = true +tox_pip_extensions_ext_pip_custom_platform = true +``` +## Bootstrap requirements +By default, `tox-pip-extensions` will intelligently choose what versions to +install based on the plugins selected. +If you'd like to pin specific versions, `tox-pip-extensions` will defer to a +file named `requirements-bootstrap.txt` in the same directory as `tox.ini`. + +%prep +%autosetup -n tox-pip-extensions-1.6.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-tox-pip-extensions -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.0-1 +- Package Spec generated |
