15
0
forked from pool/python-pipx
Files
python-pipx/python-pipx.spec
Dirk Mueller 6e77dd1f8f - update to 1.6.0:
* Add `install-all` command to install packages according to
    spec metadata file.
  * Introduce `pipx pin` and `pipx unpin` commands, which can be
    used to pin or unpin the version
  * of an installed package, so it will not be upgraded by `pipx
    upgrade` or `pipx upgrade-all`.
  * Add a new option `--pinned` to `pipx list` command for
    listing pinned packages only.
  * Add `pipx interpreter upgrade` command to upgrade local
    standalone python in micro/patch level
  * Add `--requirement` option to `inject` command to read list
    of packages from a text file.
  * Add `pipx upgrade-shared` command, to create/upgrade shared
    libraries as a standalone command.
  * Allow `upgrade` command to accept multiple packages as
    arguments.
  * Support Python version for `--python` arg when py launcher is
    not available
  * Make `install-all` gather errors in batch
- Update to 1.5.0
  * fix: nicer tracebacks in run mode on scripts
  https://github.com/pypa/pipx/releases/tag/1.4.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pipx?expand=0&rev=23
2024-06-30 20:48:50 +00:00

75 lines
2.2 KiB
RPMSpec

#
# spec file for package python-pipx
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-pipx
Version: 1.6.0
Release: 0
Summary: Install and Run Python Applications in Isolated Environments
License: MIT
URL: https://github.com/pypa/pipx
Source: https://files.pythonhosted.org/packages/source/p/pipx/pipx-%{version}.tar.gz
BuildRequires: %{python_module hatch-vcs >= 0.4}
BuildRequires: %{python_module hatchling >= 1.18}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python >= 3.8
Requires: python-argcomplete >= 1.9.4
Requires: python-packaging >= 20
Requires: python-platformdirs >= 2.1
Requires: python-tomli
Requires: python-userpath >= 1.6
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module argcomplete >= 1.9.4}
BuildRequires: %{python_module packaging >= 20}
BuildRequires: %{python_module platformdirs >= 2.1}
BuildRequires: %{python_module userpath >= 1.6}
# /SECTION
%python_subpackages
%description
Install and Run Python Applications in Isolated Environments
%prep
%autosetup -p1 -n pipx-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pipx
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative pipx
%postun
%python_uninstall_alternative pipx
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python_alternative %{_bindir}/pipx
%{python_sitelib}/pipx
%{python_sitelib}/pipx-%{version}.dist-info
%changelog