forked from pool/python-poetry-plugin-export
- Update to 1.8.0
## Changed
* Relax the constraint on poetry and poetry-core to allow
(future) 2.* versions (#280).
## Fixed
* Fix an issue where editable installs where not exported
correctly (#258).
- Release 1.7.1
## Changed
* Export --index-url before --extra-index-url to work around a
pip bug (#270).
## Fixed
* Fix an issue where the source with the highest priority was
exported with --index-url despite PyPI being among the sources
(#270).
- Release 1.7.0
## Changed
* Bump minimum required poetry version to 1.8.0 (#263).
## Fixed
* Fix an issue where all sources were exported with
--extra-index-url even though PyPI was deactivated (#263).
OBS-URL: https://build.opensuse.org/request/show/1221225
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-plugin-export?expand=0&rev=19
86 lines
2.6 KiB
RPMSpec
86 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-poetry-plugin-export
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
%if "%{flavor}" == "test"
|
|
%define psuffix -test
|
|
%bcond_without test
|
|
%else
|
|
%define psuffix %{nil}
|
|
%bcond_with test
|
|
%endif
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-poetry-plugin-export%{psuffix}
|
|
Version: 1.8.0
|
|
Release: 0
|
|
Summary: Poetry plugin to export the dependencies to various formats
|
|
License: MIT
|
|
URL: https://python-poetry.org/
|
|
# RepositorySource: https://github.com/python-poetry/poetry-plugin-export
|
|
Source: https://files.pythonhosted.org/packages/source/p/poetry-plugin-export/poetry_plugin_export-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry-core >= 1.7.0 with %python-poetry-core < 3}
|
|
# No buildtime requirement of poetry: avoid build dep cycles!
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
%if %{with test}
|
|
BuildRequires: %{python_module build}
|
|
BuildRequires: %{python_module installer}
|
|
BuildRequires: %{python_module poetry-plugin-export = %{version}}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
BuildRequires: %{python_module pytest}
|
|
%endif
|
|
Requires: (python-poetry >= 1.8.0 with python-poetry < 3)
|
|
Requires: (python-poetry-core >= 1.7.0 with python-poetry-core < 3)
|
|
Provides: python-poetry_plugin_export = %{version}-%{release}
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Poetry plugin to export the dependencies to various formats
|
|
|
|
%prep
|
|
%setup -q -n poetry_plugin_export-%{version}
|
|
|
|
%if !%{with test}
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%if %{with test}
|
|
%check
|
|
%pytest
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/poetry_plugin_export
|
|
%{python_sitelib}/poetry_plugin_export-%{version}.dist-info
|
|
%endif
|
|
|
|
%changelog
|