python-poetry-core/python-poetry-core.spec
Steve Kowalik 8e3928879b Accepting request 885476 from home:bnavigator:branches:devel:languages:python
- Update to 1.0.3
  * Fixed an error when handling single-digit Python markers (#156)
  * Fixed dependency markers not being properly copied when changing the constraint (#163).
- Release 1.0.2
  * Fixed a missing import causing an error in Poetry (#134).
- Release 1.0.1
  * Fixed PEP 508 representation of dependency without extras
    (#102).
  * Fixed an error where development dependencies were being
    resolved when invoking the PEP-517 backend (#101).
  * Fixed source distribution not being deterministic (#105).
  * Fixed an error where zip files were left open when building
    wheels (#122).
  * Fixed an error where explicitly included files were still not
    present in final distributions (#124).
  * Fixed wheel filename matching for recent architecture (#125,
    #129).
  * Fixed an error where the & character was not accepted for
    author names (#120).
  * Fixed the PEP-508 representation of some dependencies (#103).
  * Fixed the Requires-Python metadata generation (#127).
  * Fixed an error where pre-release versions were accepted in
    version constraints (#128).

OBS-URL: https://build.opensuse.org/request/show/885476
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=6
2021-04-15 06:37:33 +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.3
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