python-poetry-core/python-poetry-core.spec
Benjamin Greiner 7e85d0b4e6 Accepting request 920853 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.6
  * Added support for more hash types gen generating hashes. (#207)
- Release 1.0.5
  * Fixed the copy of Package instances which led to file hashes
    not being available. (#193)
  * Fixed an issue where unsafe parameters could be passed to git
    commands. (#203)
  * Fixed an issue where the wrong git executable could be used on
    Windows. (#205)
- Release 1.0.4
  * Fixed an error in the way python markers with a precision >= 3
    were handled. (#180)
  * Fixed an error in the evaluation of in/not in markers (#189)

OBS-URL: https://build.opensuse.org/request/show/920853
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=8
2021-09-22 10:06:29 +00:00

92 lines
3.1 KiB
RPMSpec

#
# spec file for package python-poetry-core
#
# Copyright (c) 2021 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/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-poetry-core
Version: 1.0.6
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
Source: %{url}/archive/%{version}.tar.gz#/poetry-core-%{version}-gh.tar.gz
BuildRequires: %{python_module attrs >= 19.3.0}
BuildRequires: %{python_module jsonschema >= 3.2.0}
BuildRequires: %{python_module lark-parser >= 0.9.0}
BuildRequires: %{python_module packaging >= 20.4}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyparsing >= 2.4.7}
BuildRequires: %{python_module pyrsistent >= 0.16.0}
BuildRequires: %{python_module six >= 1.15.0}
BuildRequires: %{python_module tomlkit >= 0.7.0}
BuildRequires: python-rpm-macros
Requires: python-attrs >= 19.3.0
Requires: python-jsonschema >= 3.2.0
Requires: python-lark-parser >= 0.9.0
Requires: python-packaging >= 20.4
Requires: python-pyparsing >= 2.4.7
Requires: python-pyrsistent >= 0.16.0
Requires: python-six >= 1.15.0
Requires: python-tomlkit >= 0.7.0
BuildArch: noarch
# SECTION these are all test dependencies, including devel and git
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pep517}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module virtualenv}
BuildRequires: fdupes
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}
# python-poetry will provide this file
rm poetry/__init__.py
# unbundle: we provide the vendored packages on our own
rm -r poetry/core/_vendor
%build
%pyproject_wheel
%install
%pyproject_install
%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
%{python_sitelib}/poetry_core-%{version}.dist-info
%changelog