From e2d90217f5d388e973511284ebc7c478abae7212 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 03:44:38 +0000 Subject: automatic import of python-poetryup --- python-poetryup.spec | 291 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 291 insertions(+) create mode 100644 python-poetryup.spec (limited to 'python-poetryup.spec') diff --git a/python-poetryup.spec b/python-poetryup.spec new file mode 100644 index 0000000..1cc2015 --- /dev/null +++ b/python-poetryup.spec @@ -0,0 +1,291 @@ +%global _empty_manifest_terminate_build 0 +Name: python-poetryup +Version: 0.12.7 +Release: 1 +Summary: Update dependencies and bump their version in the pyproject.toml file +License: MIT +URL: https://github.com/MousaZeidBaker/poetryup +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/db/10/9826686a38258b7cf49a2bfe75b4ad798f9151f75436ac8cad7eb6b354a1/poetryup-0.12.7.tar.gz +BuildArch: noarch + +Requires: python3-tomlkit +Requires: python3-typer +Requires: python3-packaging + +%description +# PoetryUp + +![build](https://github.com/MousaZeidBaker/poetryup/workflows/Publish/badge.svg) +![test](https://github.com/MousaZeidBaker/poetryup/workflows/Test/badge.svg) +[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE) +![python_version](https://img.shields.io/badge/python-%3E=3.6-blue) +[![pypi_v](https://img.shields.io/pypi/v/poetryup)](https://pypi.org/project/poetryup) +[![pypi_dm](https://img.shields.io/pypi/dm/poetryup)](https://pypi.org/project/poetryup) + + +> __Warning__ +> +> This package has been deprecated and is no longer maintained, `poetryup` has moved to [poetry-plugin-up](https://github.com/MousaZeidBaker/poetry-plugin-up) + +PoetryUp updates dependencies and bumps their version in both `poetry.lock` as +well as in `pyproject.toml` file. Dependencies version constraints are +respected, unless the `--latest` flag is passed, in which case dependencies will +be updated to their latest available version. PoetryUp runs +[poetry](https://github.com/python-poetry/poetry) commands, thus it's required +to be installed. The difference between running `poetry update` and `poetryup`, +is that the latter also modifies the `pyproject.toml` file. + +![poetryup_demo](https://raw.githubusercontent.com/MousaZeidBaker/poetryup/master/media/poetryup_demo.gif) + +## Usage + +Show help message and exit +```shell +poetryup --help +``` + +Update all dependencies with respect to their version constraints specified in the +`pyproject.toml` file +```shell +poetryup +``` + +Update all dependencies to their latest available version +```shell +poetryup --latest +``` + +Update all dependencies to their latest available version except for packages +with an exact version +```shell +poetryup --latest --skip-exact +``` + +Update dependencies in the `default` and `dev` group to their latest available version +```shell +poetryup --latest --group default --group dev +``` + +Update the `foo` and `bar` dependencies to their latest available version +```shell +poetryup --latest --name foo --name bar +``` + +Update all dependencies to their latest available version except the `foo` and `bar` dependencies +```shell +poetryup --latest --exclude-name foo --exclude-name bar +``` + +## Contributing + +Contributions are welcome! See the [Contributing Guide](https://github.com/MousaZeidBaker/poetryup/blob/master/CONTRIBUTING.md). + +## Issues + +If you encounter any problems, please file an +[issue](https://github.com/MousaZeidBaker/poetryup/issues) along with a +detailed description. + + +%package -n python3-poetryup +Summary: Update dependencies and bump their version in the pyproject.toml file +Provides: python-poetryup +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-poetryup +# PoetryUp + +![build](https://github.com/MousaZeidBaker/poetryup/workflows/Publish/badge.svg) +![test](https://github.com/MousaZeidBaker/poetryup/workflows/Test/badge.svg) +[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE) +![python_version](https://img.shields.io/badge/python-%3E=3.6-blue) +[![pypi_v](https://img.shields.io/pypi/v/poetryup)](https://pypi.org/project/poetryup) +[![pypi_dm](https://img.shields.io/pypi/dm/poetryup)](https://pypi.org/project/poetryup) + + +> __Warning__ +> +> This package has been deprecated and is no longer maintained, `poetryup` has moved to [poetry-plugin-up](https://github.com/MousaZeidBaker/poetry-plugin-up) + +PoetryUp updates dependencies and bumps their version in both `poetry.lock` as +well as in `pyproject.toml` file. Dependencies version constraints are +respected, unless the `--latest` flag is passed, in which case dependencies will +be updated to their latest available version. PoetryUp runs +[poetry](https://github.com/python-poetry/poetry) commands, thus it's required +to be installed. The difference between running `poetry update` and `poetryup`, +is that the latter also modifies the `pyproject.toml` file. + +![poetryup_demo](https://raw.githubusercontent.com/MousaZeidBaker/poetryup/master/media/poetryup_demo.gif) + +## Usage + +Show help message and exit +```shell +poetryup --help +``` + +Update all dependencies with respect to their version constraints specified in the +`pyproject.toml` file +```shell +poetryup +``` + +Update all dependencies to their latest available version +```shell +poetryup --latest +``` + +Update all dependencies to their latest available version except for packages +with an exact version +```shell +poetryup --latest --skip-exact +``` + +Update dependencies in the `default` and `dev` group to their latest available version +```shell +poetryup --latest --group default --group dev +``` + +Update the `foo` and `bar` dependencies to their latest available version +```shell +poetryup --latest --name foo --name bar +``` + +Update all dependencies to their latest available version except the `foo` and `bar` dependencies +```shell +poetryup --latest --exclude-name foo --exclude-name bar +``` + +## Contributing + +Contributions are welcome! See the [Contributing Guide](https://github.com/MousaZeidBaker/poetryup/blob/master/CONTRIBUTING.md). + +## Issues + +If you encounter any problems, please file an +[issue](https://github.com/MousaZeidBaker/poetryup/issues) along with a +detailed description. + + +%package help +Summary: Development documents and examples for poetryup +Provides: python3-poetryup-doc +%description help +# PoetryUp + +![build](https://github.com/MousaZeidBaker/poetryup/workflows/Publish/badge.svg) +![test](https://github.com/MousaZeidBaker/poetryup/workflows/Test/badge.svg) +[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE) +![python_version](https://img.shields.io/badge/python-%3E=3.6-blue) +[![pypi_v](https://img.shields.io/pypi/v/poetryup)](https://pypi.org/project/poetryup) +[![pypi_dm](https://img.shields.io/pypi/dm/poetryup)](https://pypi.org/project/poetryup) + + +> __Warning__ +> +> This package has been deprecated and is no longer maintained, `poetryup` has moved to [poetry-plugin-up](https://github.com/MousaZeidBaker/poetry-plugin-up) + +PoetryUp updates dependencies and bumps their version in both `poetry.lock` as +well as in `pyproject.toml` file. Dependencies version constraints are +respected, unless the `--latest` flag is passed, in which case dependencies will +be updated to their latest available version. PoetryUp runs +[poetry](https://github.com/python-poetry/poetry) commands, thus it's required +to be installed. The difference between running `poetry update` and `poetryup`, +is that the latter also modifies the `pyproject.toml` file. + +![poetryup_demo](https://raw.githubusercontent.com/MousaZeidBaker/poetryup/master/media/poetryup_demo.gif) + +## Usage + +Show help message and exit +```shell +poetryup --help +``` + +Update all dependencies with respect to their version constraints specified in the +`pyproject.toml` file +```shell +poetryup +``` + +Update all dependencies to their latest available version +```shell +poetryup --latest +``` + +Update all dependencies to their latest available version except for packages +with an exact version +```shell +poetryup --latest --skip-exact +``` + +Update dependencies in the `default` and `dev` group to their latest available version +```shell +poetryup --latest --group default --group dev +``` + +Update the `foo` and `bar` dependencies to their latest available version +```shell +poetryup --latest --name foo --name bar +``` + +Update all dependencies to their latest available version except the `foo` and `bar` dependencies +```shell +poetryup --latest --exclude-name foo --exclude-name bar +``` + +## Contributing + +Contributions are welcome! See the [Contributing Guide](https://github.com/MousaZeidBaker/poetryup/blob/master/CONTRIBUTING.md). + +## Issues + +If you encounter any problems, please file an +[issue](https://github.com/MousaZeidBaker/poetryup/issues) along with a +detailed description. + + +%prep +%autosetup -n poetryup-0.12.7 + +%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-poetryup -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 0.12.7-1 +- Package Spec generated -- cgit v1.2.3