diff --git a/py2pack-0.9.0.tar.gz b/py2pack-0.9.0.tar.gz deleted file mode 100644 index 45b703b..0000000 --- a/py2pack-0.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58268c5dd4f66de07947a8ed1cbaf636c25278ad792b0df58708bd43c1b81643 -size 36821 diff --git a/py2pack-0.9.1.tar.gz b/py2pack-0.9.1.tar.gz new file mode 100644 index 0000000..90d1161 --- /dev/null +++ b/py2pack-0.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61f4634d8564368007ec468c7f2c7762fc4f2c6261fbcc2e3bbb15a413478704 +size 39689 diff --git a/python-py2pack.changes b/python-py2pack.changes index 0811dc0..511f426 100644 --- a/python-py2pack.changes +++ b/python-py2pack.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Jan 27 13:51:49 UTC 2025 - Daniel Garcia + +- Update to 0.9.1: + * Don't crash on missing urls + * fix: sanitize summary only if it exists + * Use platformdirs module to find template directory paths. + * fix bug: AttributeError: 'Namespace' object has no attribute 'localfile' for fetch command + * Use build.project_wheel_metadata to extract metadata + * Fix no esp variable (utils.py) + * Fix new argument access and tests + * Add ability to generate .spec files from local PKG-INFO file + * Support project.urls.Repository to get homepage + * Replace deprecated PyPI XML API with Simple API + * close all connections: replace urllib with requests + * remove pkg_resources + * Migrate update spdx command from setuptools hook to hatch script, execute + * Migrate spdx file from pickle to json + * Switch from setuptools+pbr to hatch + ------------------------------------------------------------------- Thu Jun 8 12:11:21 UTC 2023 - Markéta Machová diff --git a/python-py2pack.spec b/python-py2pack.spec index 911be7e..81c06cd 100644 --- a/python-py2pack.spec +++ b/python-py2pack.spec @@ -1,7 +1,7 @@ # # spec file for package python-py2pack # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-py2pack -Version: 0.9.0 +Version: 0.9.1 Release: 0 Summary: Script for generating distribution packages from Python packages on PyPI License: Apache-2.0 @@ -25,12 +25,19 @@ Group: Development/Languages/Python URL: https://github.com/openSUSE/py2pack Source: https://files.pythonhosted.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module backports.entry_points_selectable} +BuildRequires: %{python_module build} BuildRequires: %{python_module ddt} +BuildRequires: %{python_module hatchling} BuildRequires: %{python_module metaextract} -BuildRequires: %{python_module pbr} +BuildRequires: %{python_module packaging} BuildRequires: %{python_module pip} +BuildRequires: %{python_module platformdirs} BuildRequires: %{python_module pypi-search} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tomli if %python_base < 3.11} BuildRequires: %{python_module wheel} # SECTION doc requirements BuildRequires: python3-Sphinx @@ -39,14 +46,17 @@ BuildRequires: python3-sphinxcontrib-programoutput BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Jinja2 +Requires: python-backports.entry_points_selectable +Requires: python-build Requires: python-metaextract -Requires: python-pbr +Requires: python-packaging +Requires: python-platformdirs Requires: python-pypi-search Requires: python-requests Requires: python-setuptools -Requires: python-tomli +Requires: (python-tomli if python-base < 3.11) Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -68,6 +78,7 @@ Documentation and help files for %{name}. %setup -q -n py2pack-%{version} # remove shebang sed -i '1{/#!/d}' py2pack/__init__.py +chmod -x py2pack/__init__.py %build export PBR_VERSION=0.9.0 @@ -94,6 +105,11 @@ rm -rf doc/build/html/.{doctrees,buildinfo} %python_clone -a %{buildroot}%{_bindir}/py2pack %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# Requires network +donttest="test_list or test_newest_download_url or test_search or test_show or test_template" +%pytest -k "not ($donttest)" + %post %python_install_alternative py2pack @@ -107,7 +123,6 @@ rm -rf doc/build/html/.{doctrees,buildinfo} %files -n %{name}-doc %license LICENSE -# %doc AUTHORS %doc doc/build/html/ %changelog