15
0

- Switch to pyproject macros.

- Stop using greedy globs in %files.
- Stop shipping tests.
- Clean up skipping tests, packaging >22 is now required

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-devpi-server?expand=0&rev=25
This commit is contained in:
2023-10-17 04:40:04 +00:00
committed by Git OBS Bridge
parent 77330061d6
commit 07e57f37b7
2 changed files with 18 additions and 14 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Oct 17 04:36:20 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Stop using greedy globs in %files.
- Stop shipping tests.
- Clean up skipping tests, packaging >22 is now required
-------------------------------------------------------------------
Thu Aug 10 11:53:00 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -24,14 +24,14 @@ Version: 6.9.2
Release: 0
Summary: Private PyPI caching server
License: MIT
Group: Development/Languages/Python
URL: https://doc.devpi.net
Source: https://files.pythonhosted.org/packages/source/d/devpi-server/devpi-server-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-aiohttp
Requires: python-appdirs
Requires: python-argon2-cffi >= 16.2
Requires: python-attrs
Requires: python-defusedxml
@@ -59,7 +59,6 @@ BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module WebTest}
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module appdirs}
BuildRequires: %{python_module argon2-cffi >= 16.2}
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module beautifulsoup4}
@@ -91,10 +90,10 @@ sed -i "s/ruamel.yaml<=[^']*,/ruamel.yaml/g" setup.py
sed -i "s/--flake8//" tox.ini
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
for c in %{commands}; do
%python_clone -a %{buildroot}%{_bindir}/devpi-$c
done
@@ -103,14 +102,7 @@ done
%check
export PYTHONDONTWRITEBYTECODE=1
# Broken tests with latest version of packaging, gh#devpi/devpi#948
donttest="test_dashes_to_undescores_when_imported_from_v1"
donttest+=" or test_name_mangling_relates_to_issue132"
donttest+=" or test_parse_index_with_valid_basenames[py.tar.gz]"
donttest+=" or test_parse_index_with_valid_basenames[py-1.3.1-1.0rc4.tar.gz]"
donttest+=" or test_simple_project_pypi_egg"
donttest+=" or test_streaming"
donttest+=" or test_streaming_replica"
donttest="test_auth_mirror_url"
%{python_expand \
mkdir bin-%{$python_version}
@@ -120,6 +112,9 @@ done
export PATH=$PATH:`pwd`/bin-%{$python_version}
export PYTHONPATH=:%{buildroot}%{$python_sitelib}
$python -m pytest --slow --ignore test_devpi_server -k "not ($donttest)" %{buildroot}%{$python_sitelib}/test_devpi_server
# And clean up some directories we don't need now tests are done:
rm -rf %{buildroot}%{$python_sitelib}/test_devpi_server
rm -rf %{buildroot}%{$python_sitelib}/pytest_devpi_server
}
%post
@@ -143,6 +138,7 @@ done
%python_alternative %{_bindir}/devpi-passwd
%python_alternative %{_bindir}/devpi-server
%python_alternative %{_bindir}/devpi-gen-secret
%{python_sitelib}/*
%{python_sitelib}/devpi_server
%{python_sitelib}/devpi_server-%{version}.dist-info
%changelog