2019-09-16 08:36:09 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-devpi-client
|
|
|
|
|
#
|
2023-04-10 10:41:48 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-09-16 08:36:09 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-06-11 11:44:27 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-09-16 08:36:09 +00:00
|
|
|
Name: python-devpi-client
|
2023-04-19 09:33:13 +00:00
|
|
|
Version: 6.0.4
|
2019-09-16 08:36:09 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Client for devpi
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/devpi/devpi
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/devpi-client/devpi-client-%{version}.tar.gz
|
2023-04-26 02:21:36 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#devpi/devpi#966
|
|
|
|
|
Patch0: switch-to-build-module.patch
|
2023-04-10 10:41:48 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-09-16 08:36:09 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-04-10 10:41:48 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-09-16 08:36:09 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-04-10 10:41:48 +00:00
|
|
|
Requires: python-build
|
2019-09-16 08:36:09 +00:00
|
|
|
Requires: python-check-manifest >= 0.28
|
2023-04-10 10:41:48 +00:00
|
|
|
Requires: python-devpi-common >= 3.6.0
|
2023-07-03 13:11:15 +00:00
|
|
|
Requires: python-iniconfig
|
2019-09-16 08:36:09 +00:00
|
|
|
Requires: python-pkginfo >= 1.4.2
|
2023-07-03 13:11:15 +00:00
|
|
|
Requires: python-platformdirs
|
2019-09-16 08:36:09 +00:00
|
|
|
Requires: python-pluggy >= 0.6.0
|
|
|
|
|
Requires: python-py >= 1.4.31
|
|
|
|
|
Requires: python-tox >= 3.1.0
|
|
|
|
|
Requires: python-wheel
|
2020-05-27 10:13:36 +00:00
|
|
|
Requires(post): update-alternatives
|
2022-06-14 11:31:22 +00:00
|
|
|
Requires(postun):update-alternatives
|
2019-09-16 08:36:09 +00:00
|
|
|
Recommends: git-core
|
|
|
|
|
Recommends: python-Sphinx
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
2019-09-17 13:01:50 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
2023-04-10 10:41:48 +00:00
|
|
|
BuildRequires: %{python_module build}
|
2019-09-16 08:36:09 +00:00
|
|
|
BuildRequires: %{python_module check-manifest >= 0.28}
|
2023-07-03 13:00:21 +00:00
|
|
|
BuildRequires: %{python_module colorama}
|
2023-04-10 10:41:48 +00:00
|
|
|
BuildRequires: %{python_module devpi-common >= 3.6.0}
|
2019-09-16 08:36:09 +00:00
|
|
|
BuildRequires: %{python_module devpi-server}
|
|
|
|
|
BuildRequires: %{python_module pkginfo >= 1.4.2}
|
|
|
|
|
BuildRequires: %{python_module pluggy >= 0.6.0}
|
|
|
|
|
BuildRequires: %{python_module py >= 1.4.31}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module tox >= 3.1.0}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-09-17 13:01:50 +00:00
|
|
|
devpi-client is a command line tool with sub commands for creating users, using
|
|
|
|
|
indexes, uploading to and installing from indexes, as well as a "test" command
|
|
|
|
|
for invoking tox.
|
2019-09-16 08:36:09 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n devpi-client-%{version}
|
|
|
|
|
rm tox.ini
|
2022-06-14 11:31:22 +00:00
|
|
|
%autopatch -p1
|
2019-09-16 08:36:09 +00:00
|
|
|
|
|
|
|
|
sed -i 's/"python \(setup.py[^"]*\)"/(sys.executable + " \1")/' testing/test_upload.py
|
|
|
|
|
sed -i 's/"python", "setup.py"/sys.executable, "setup.py"/' testing/test_test.py
|
|
|
|
|
|
|
|
|
|
%build
|
2023-04-10 10:41:48 +00:00
|
|
|
%pyproject_wheel
|
2019-09-16 08:36:09 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-04-10 10:41:48 +00:00
|
|
|
%pyproject_install
|
2020-05-27 10:13:36 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/devpi
|
2019-09-16 08:36:09 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
export PATH=$PATH:%{buildroot}/%{_bindir}
|
2022-06-14 11:31:22 +00:00
|
|
|
# Unknown failures gh#devpi/devpi#706
|
2020-05-27 10:13:36 +00:00
|
|
|
# test_help: devpi binary is not available (update-alternatives)
|
2023-04-10 10:41:48 +00:00
|
|
|
donttest="test_simple_install_new_venv_workflow or test_simple_install_activated_venv_workflow or test_help"
|
|
|
|
|
# test_upload: requires network to work
|
|
|
|
|
donttest+=" or test_upload"
|
|
|
|
|
donttest+=" or test_main_example_with_basic_auth"
|
|
|
|
|
# No module named 'pypitoken'
|
|
|
|
|
donttest+=" or test_derive_devpi_token or test_derive_legacy_token or test_derive_token"
|
|
|
|
|
# error deleting VIRTUAL_ENV
|
|
|
|
|
donttest+=" or test_simple_install_missing_venvdir"
|
|
|
|
|
%pytest -k "not ($donttest)"
|
2020-05-27 10:13:36 +00:00
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative devpi
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative devpi
|
2019-09-16 08:36:09 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc AUTHORS CHANGELOG README.rst
|
|
|
|
|
%license LICENSE
|
2020-05-27 10:13:36 +00:00
|
|
|
%python_alternative %{_bindir}/devpi
|
2023-04-10 10:41:48 +00:00
|
|
|
%{python_sitelib}/devpi
|
|
|
|
|
%{python_sitelib}/devpi_client-%{version}*-info
|
2019-09-16 08:36:09 +00:00
|
|
|
|
|
|
|
|
%changelog
|