forked from pool/python-pipx
* chore(deps): bump pypa/gh-action-pypi-publish in /.github/workflows (#1664) * Add support for Python 3.13 (#1647) * Add examples for using ssh to install from Source Control (#1629) * Fix typo in PATH notification message (#1667) * fix #1652: Use GitHub API for standalone python checksums (#1662) * BUG: fix running a script with explicitly empty `dependencies = []` (#1658) * Check for stdout/stderr in case file descriptor is closed (#1620) * Update the logic of finding python interpreter (#1631) * Update the archive name of build of Python for Windows (#1632) * fix #1610: Reorder upgrade option and arguments (#1625) * Upgrade ruff and rename ruleset: `TCH` → `TC` (#1626) * Drop support for Python 3.8 (#1628) * fix: make Github Action safe to RCE via pull request title (#1600) * fix: no message when no packages upgraded with upgrade-all (#1597) * chore(deps): bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4 in the actions group (#1595) * Add --all-shells flag to ensure_path (#1591) * chore(deps): bump pypa/gh-action-pypi-publish in the actions group (#1586) * feat: rename USE_EMOJI to PIPX_USE_EMOJI (#1581) * Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2 in the actions group (#1571) * Bump pypa/gh-action-pypi-publish in the actions group across 1 directory (#1569) * Bump pypa/gh-action-pypi-publish from 1.10.2 to 1.10.3 in the actions group (#1555) * [pre-commit.ci] pre-commit autoupdate (#1558) * [pre-commit.ci] pre-commit autoupdate (#1552) * Bump pypa/gh-action-pypi-publish in the actions group (#1549) * [pre-commit.ci] pre-commit autoupdate (#1546) * [pre-commit.ci] pre-commit autoupdate (#1543) * Fix `/changelog/` and `/contributing/` docs URLs (#1541) * Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 (#1532) * fix(commands/common/_copy_package_resource): if destination exists and files are same, do not overwrite existing files (#1528) * Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.0 (#1529) * [pre-commit.ci] pre-commit autoupdate (#1530) * [pre-commit.ci] pre-commit autoupdate (#1512) - %docs CHANGELOG.md -> changelog.md OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pipx?expand=0&rev=33
98 lines
2.8 KiB
RPMSpec
98 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-pipx
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
%bcond_without libalternatives
|
|
%else
|
|
%bcond_with libalternatives
|
|
%endif
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pipx
|
|
Version: 1.8.0
|
|
Release: 0
|
|
Summary: Install and Run Python Applications in Isolated Environments
|
|
License: MIT
|
|
URL: https://github.com/pypa/pipx
|
|
Source: 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-userpath >= 1.6
|
|
Requires: (python-tomli if python-base < 3.11)
|
|
BuildArch: noarch
|
|
%if %{with libalternatives}
|
|
BuildRequires: alts
|
|
Requires: alts
|
|
%else
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
%endif
|
|
# 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
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|
%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
|
|
|
|
%pre
|
|
%python_libalternatives_reset_alternative pipx
|
|
|
|
%check
|
|
# Tests require network or .pipx_tests with downloaded .whl, so not
|
|
# running pytest
|
|
%{python_expand #
|
|
PYTHONPATH=%{buildroot}%{$python_sitelib} %{buildroot}%{_bindir}/pipx-%{$python_version} --version
|
|
}
|
|
|
|
%files %{python_files}
|
|
%doc docs/changelog.md docs/README.md
|
|
%license LICENSE
|
|
%python_alternative %{_bindir}/pipx
|
|
%{python_sitelib}/pipx
|
|
%{python_sitelib}/pipx-%{version}.dist-info
|
|
|
|
%changelog
|