python-poetry-core/python-poetry-core.spec
Dirk Mueller 0ecf734861 - update to 1.8.1:
* Fix an issue where git URLs starting with `git+` could not be
    parsed anymore (#657).
  * Add `3.12` to the list of available Python versions (#631).
  * Add support for creating packages dynamically in the build
    script
  * Improve marker logic for `extra` markers (#636).
  * Update list of supported licenses (#635,
  * #646).
  * Deprecate `Dependency.transitive_python_versions` (#648).
  * Deprecate `Dependency.transitive_python_constraint` (#649).
  * Fix an issue where projects with extension modules were not
    installed in editable mode (#633).
  * Fix an issue where the wrong or no `lib` folder was added to
    the wheel (#634).
  * Replace `jsonschema` with `fastjsonschema`.
  * `lark==1.1.8`
  * `packaging==23.2`
- Update description
- Update to version 1.4.0
    version constraints (#128).
- unbundle vendored packages

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=37
2024-01-02 19:16:04 +00:00

80 lines
2.9 KiB
RPMSpec

#
# spec file for package python-poetry-core
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-poetry-core
Version: 1.8.1
Release: 0
Summary: Poetry PEP 517 Build Backend
License: Apache-2.0 AND BSD-2-Clause AND MIT AND Python-2.0
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 base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION these are all test dependencies, including python-devel and git-core
BuildRequires: %{python_module devel}
BuildRequires: %{python_module build}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tomli-w}
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}
mkdir vendoredlicenses
cp -p src/poetry/core/_vendor/lark/LICENSE vendoredlicenses/lark.LICENSE
cp -p src/poetry/core/_vendor/fastjsonschema/LICENS vendoredlicenses/fastjsonschema.LICENSE
cp -p src/poetry/core/_vendor/packaging/LICENSE vendoredlicenses/packaging.LICENSE
cp -p src/poetry/core/_vendor/packaging/LICENSE.APACHE vendoredlicenses/packaging.LICENSE.APACHE
cp -p src/poetry/core/_vendor/packaging/LICENSE.BSD vendoredlicenses/packaging.LICENSE.BSD
cp -p src/poetry/core/_vendor/tomli/LICENSE vendoredlicenses/tomli.LICENSE
%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 vendoredlicenses/*
%dir %{python_sitelib}/poetry
%{python_sitelib}/poetry/core
%{python_sitelib}/poetry_core-%{version}.dist-info
%changelog