2020-10-06 10:31:53 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-poetry-core
|
|
|
|
#
|
2022-03-18 12:17:55 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-10-06 10:31:53 +02: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-poetry-core
|
2022-12-06 17:07:53 +01:00
|
|
|
Version: 1.4.0
|
2020-10-06 10:31:53 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python poetry core utilities
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/python-poetry/poetry-core
|
|
|
|
# Only the github archive provides the tests
|
2021-04-15 08:37:33 +02:00
|
|
|
Source: %{url}/archive/%{version}.tar.gz#/poetry-core-%{version}-gh.tar.gz
|
2022-10-09 12:26:53 +02:00
|
|
|
BuildRequires: %{python_module attrs >= 22.1.0}
|
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module jsonschema >= 4.1.0}
|
2022-10-11 14:49:10 +02:00
|
|
|
BuildRequires: %{python_module lark >= 1.1.2}
|
2022-10-09 12:26:53 +02:00
|
|
|
BuildRequires: %{python_module packaging >= 21.3}
|
2020-10-17 08:50:09 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-10-09 12:26:53 +02:00
|
|
|
BuildRequires: %{python_module pyparsing >= 3.0.9}
|
|
|
|
BuildRequires: %{python_module pyrsistent >= 0.18.1}
|
|
|
|
BuildRequires: %{python_module tomlkit >= 0.11.3}
|
|
|
|
BuildRequires: %{python_module typing-extensions >= 4.3.0}
|
|
|
|
BuildRequires: fdupes
|
2020-10-06 10:31:53 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-10-09 12:26:53 +02:00
|
|
|
Requires: python-attrs >= 22.1.0
|
|
|
|
Requires: python-jsonschema >= 4.1.0
|
2022-10-11 14:49:10 +02:00
|
|
|
Requires: python-lark >= 1.1.2
|
2022-10-09 12:26:53 +02:00
|
|
|
Requires: python-packaging >= 21.3
|
|
|
|
Requires: python-pyparsing >= 3.0.9
|
|
|
|
Requires: python-pyrsistent >= 0.18.1
|
|
|
|
Requires: python-tomlkit >= 0.11.3
|
|
|
|
Requires: python-typing-extensions >= 4.3.0
|
2020-10-06 10:31:53 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION these are all test dependencies, including devel and git
|
|
|
|
BuildRequires: %{python_module devel}
|
2022-10-09 12:26:53 +02:00
|
|
|
BuildRequires: %{python_module build}
|
2020-10-06 10:31:53 +02:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module virtualenv}
|
|
|
|
BuildRequires: git-core
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A PEP 517 build backend implementation developed for Poetry. This project is
|
|
|
|
intended to be a light weight, fully compliant, self-contained package allowing
|
|
|
|
PEP 517 compatible build frontends to build Poetry managed projects.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n poetry-core-%{version}
|
2020-10-17 08:50:09 +02:00
|
|
|
# unbundle: we provide the vendored packages on our own
|
2022-10-09 12:26:53 +02:00
|
|
|
rm -r src/poetry/core/_vendor
|
2020-10-06 10:31:53 +02:00
|
|
|
|
|
|
|
%build
|
2020-10-17 08:50:09 +02:00
|
|
|
%pyproject_wheel
|
2020-10-06 10:31:53 +02:00
|
|
|
|
|
|
|
%install
|
2020-10-17 08:50:09 +02:00
|
|
|
%pyproject_install
|
2020-10-06 10:31:53 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# gh#python-poetry/poetry#1645
|
|
|
|
git init
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%dir %{python_sitelib}/poetry
|
|
|
|
%{python_sitelib}/poetry/core
|
2020-10-17 08:50:09 +02:00
|
|
|
%{python_sitelib}/poetry_core-%{version}.dist-info
|
2020-10-06 10:31:53 +02:00
|
|
|
|
|
|
|
%changelog
|