From 6ea724095db22b6fe1f1c461b1a2e6bbc9b165796548c171bd05d2702739ebbb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 8 Jan 2025 17:42:43 +0000 Subject: [PATCH 1/5] - update to 2.0.0: * **Add support for the `project` section in the `pyproject.toml` file according to PEP 621** (#708, #792). * Add support for non PEP440 compliant version in the `platform_release` marker (#722). * Add support for string comparisons with `in` / `not in` in generic constraints (#722). * Add support for script files that are generated by a build script (#710). * Add support for `SOURCE_DATE_EPOCH` when building packages (#766, #781). * Drop support for Python 3.8 (#798). * Create `METADATA` files with version 2.3 instead of 2.2 * Normalize source vcs URLs (#701). * Make `allow-prereleases` a tri-state setting (#783). * Rename exceptions to have an `Error` suffix (#767). * Remove support for `x` in version constraints (#770). * Remove support for scripts with extras (#708). * Remove deprecated features and interfaces (#702, * #769). * Deprecate `tool.poetry.dev-dependencies` in favor of `tool.poetry.group.dev.dependencies` (#754). * Deprecate `Package.python_marker` (#446). * Improve Cygwin git support under Windows (#704). * Improve error message when the `pyproject.toml` file cannot be parsed (#734). * Improve handling of `readme` files (#752). * Improve error handling when the Python constraint is empty (#761). * Improve performance for creating a PEP 508 requirement from a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=54 --- poetry-core-1.9.1-gh.tar.gz | 3 --- poetry-core-2.0.0-gh.tar.gz | 3 +++ python-poetry-core.changes | 48 +++++++++++++++++++++++++++++++++++++ python-poetry-core.spec | 7 +++--- 4 files changed, 55 insertions(+), 6 deletions(-) delete mode 100644 poetry-core-1.9.1-gh.tar.gz create mode 100644 poetry-core-2.0.0-gh.tar.gz diff --git a/poetry-core-1.9.1-gh.tar.gz b/poetry-core-1.9.1-gh.tar.gz deleted file mode 100644 index 350b453..0000000 --- a/poetry-core-1.9.1-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca398d26f666e09162847ddd7f8d6ff6b9fb07003c6d43dd68e80d0a78331aa7 -size 371296 diff --git a/poetry-core-2.0.0-gh.tar.gz b/poetry-core-2.0.0-gh.tar.gz new file mode 100644 index 0000000..0c99821 --- /dev/null +++ b/poetry-core-2.0.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f796a987ac8972cc48b0fece7b75610daca82f4fcd7bb655a7da2a4c0888b93e +size 406242 diff --git a/python-poetry-core.changes b/python-poetry-core.changes index fde4231..ec259e0 100644 --- a/python-poetry-core.changes +++ b/python-poetry-core.changes @@ -1,3 +1,51 @@ +------------------------------------------------------------------- +Wed Jan 8 17:39:28 UTC 2025 - Dirk Müller + +- update to 2.0.0: + * **Add support for the `project` section in the + `pyproject.toml` file according to PEP 621** (#708, #792). + * Add support for non PEP440 compliant version in the + `platform_release` marker (#722). + * Add support for string comparisons with `in` / `not in` in + generic constraints (#722). + * Add support for script files that are generated by a build + script (#710). + * Add support for `SOURCE_DATE_EPOCH` when building packages + (#766, #781). + * Drop support for Python 3.8 (#798). + * Create `METADATA` files with version 2.3 instead of 2.2 + * Normalize source vcs URLs (#701). + * Make `allow-prereleases` a tri-state setting (#783). + * Rename exceptions to have an `Error` suffix (#767). + * Remove support for `x` in version constraints (#770). + * Remove support for scripts with extras (#708). + * Remove deprecated features and interfaces (#702, + * #769). + * Deprecate `tool.poetry.dev-dependencies` in favor of + `tool.poetry.group.dev.dependencies` (#754). + * Deprecate `Package.python_marker` (#446). + * Improve Cygwin git support under Windows (#704). + * Improve error message when the `pyproject.toml` file cannot + be parsed (#734). + * Improve handling of `readme` files (#752). + * Improve error handling when the Python constraint is empty + (#761). + * Improve performance for creating a PEP 508 requirement from a + dependency (#779). + * Fix an issue where the `platlib` directory of the wrong + Python was used (#726). + * Fix handling of generic constraints (#732). + * Fix an issue where building a wheel in a nested output + directory results in an error (#762). + * Fix an issue where `+` was not allowed in git URL paths + (#765). + * Fix an issue where the temporary directory was not cleaned up + on error (#775). + * Fix an issue where the regular expression for author names + was too restrictive (#517). + * Fix an issue where basic auth http(s) credentials could not + be parsed (#791). + ------------------------------------------------------------------- Mon Oct 28 22:59:06 UTC 2024 - Dirk Müller diff --git a/python-poetry-core.spec b/python-poetry-core.spec index ec779e8..3a90880 100644 --- a/python-poetry-core.spec +++ b/python-poetry-core.spec @@ -1,7 +1,7 @@ # # spec file for package python-poetry-core # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,14 +18,14 @@ %{?sle15_python_module_pythons} Name: python-poetry-core -Version: 1.9.1 +Version: 2.0.0 Release: 0 Summary: Poetry PEP 517 Build Backend License: Apache-2.0 AND BSD-2-Clause AND MIT AND Python-2.0 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 base >= 3.9} BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -36,6 +36,7 @@ BuildRequires: %{python_module build} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module tomli-w} +BuildRequires: %{python_module trove-classifiers} BuildRequires: %{python_module virtualenv} BuildRequires: git-core # /SECTION From 518fefdaccad5b83e60b1291618cd2d38e424e8c6f071e1263ca571b79342d6e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 8 Jan 2025 18:09:44 +0000 Subject: [PATCH 2/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=55 --- python-poetry-core.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python-poetry-core.spec b/python-poetry-core.spec index 3a90880..53504e8 100644 --- a/python-poetry-core.spec +++ b/python-poetry-core.spec @@ -31,13 +31,13 @@ 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 trove-classifiers} -BuildRequires: %{python_module virtualenv} +BuildRequires: %{python_module devel >= 3.9} +BuildRequires: %{python_module build >= 0.10.0} +BuildRequires: %{python_module pytest >= 7.1.2} +BuildRequires: %{python_module pytest-mock >= 3.10} +BuildRequires: %{python_module tomli-w >= 1.0.0} +BuildRequires: %{python_module trove-classifiers >= 2022.5.19} +BuildRequires: %{python_module virtualenv >= 20.21} BuildRequires: git-core # /SECTION %python_subpackages From 0d730a7791add1face19558667d0b2d160bf3e182c4dc04d14479ae7ac6d14de Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 10 Jan 2025 03:08:40 +0000 Subject: [PATCH 3/5] - Change test skipping, the skipped one works, and another is broken. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=56 --- python-poetry-core.changes | 5 +++++ python-poetry-core.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-poetry-core.changes b/python-poetry-core.changes index ec259e0..f1a60de 100644 --- a/python-poetry-core.changes +++ b/python-poetry-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 10 03:08:25 UTC 2025 - Steve Kowalik + +- Change test skipping, the skipped one works, and another is broken. + ------------------------------------------------------------------- Wed Jan 8 17:39:28 UTC 2025 - Dirk Müller diff --git a/python-poetry-core.spec b/python-poetry-core.spec index 53504e8..8c73861 100644 --- a/python-poetry-core.spec +++ b/python-poetry-core.spec @@ -67,8 +67,8 @@ cp -p src/poetry/core/_vendor/tomli/LICENSE vendoredlicenses/tomli.L %check # gh#python-poetry/poetry#1645 git init -#https://github.com/python-poetry/poetry/issues/9678 -donttest="obsdummyprefix" +# date time issues -- wheel gets built with the current time +donttest="test_dist_info_date_time_default_value" %pytest -k "not ($donttest)" %files %{python_files} From cd94ab38267af2c9dc72b5e439c539c45ad6651a973da1127d3fac1b96e14725 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 10 Jan 2025 03:12:55 +0000 Subject: [PATCH 4/5] Moar test skipping OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=57 --- python-poetry-core.changes | 2 +- python-poetry-core.spec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python-poetry-core.changes b/python-poetry-core.changes index f1a60de..ce77082 100644 --- a/python-poetry-core.changes +++ b/python-poetry-core.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Fri Jan 10 03:08:25 UTC 2025 - Steve Kowalik +Fri Jan 10 03:12:41 UTC 2025 - Steve Kowalik - Change test skipping, the skipped one works, and another is broken. diff --git a/python-poetry-core.spec b/python-poetry-core.spec index 8c73861..2e697d7 100644 --- a/python-poetry-core.spec +++ b/python-poetry-core.spec @@ -68,7 +68,8 @@ cp -p src/poetry/core/_vendor/tomli/LICENSE vendoredlicenses/tomli.L # gh#python-poetry/poetry#1645 git init # date time issues -- wheel gets built with the current time -donttest="test_dist_info_date_time_default_value" +donttest="test_dist_info_date_time_default_value or test_sdist_mtime_zero " +donttest+="or test_sdist_members_mtime_default" %pytest -k "not ($donttest)" %files %{python_files} From 3f94f1bf092552bdc425a592094517dd7158c3e2a8007cd7a14981c1897ab444 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Fri, 10 Jan 2025 10:30:03 +0000 Subject: [PATCH 5/5] Accepting request 1236824 from home:bnavigator:branches:devel:languages:python - Unset source date epoch for tests OBS-URL: https://build.opensuse.org/request/show/1236824 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-core?expand=0&rev=58 --- python-poetry-core.changes | 5 +++++ python-poetry-core.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python-poetry-core.changes b/python-poetry-core.changes index ce77082..f7f1a96 100644 --- a/python-poetry-core.changes +++ b/python-poetry-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 10 10:23:44 UTC 2025 - Ben Greiner + +- Unset source date epoch for tests + ------------------------------------------------------------------- Fri Jan 10 03:12:41 UTC 2025 - Steve Kowalik diff --git a/python-poetry-core.spec b/python-poetry-core.spec index 2e697d7..b0db9b0 100644 --- a/python-poetry-core.spec +++ b/python-poetry-core.spec @@ -67,10 +67,9 @@ cp -p src/poetry/core/_vendor/tomli/LICENSE vendoredlicenses/tomli.L %check # gh#python-poetry/poetry#1645 git init -# date time issues -- wheel gets built with the current time -donttest="test_dist_info_date_time_default_value or test_sdist_mtime_zero " -donttest+="or test_sdist_members_mtime_default" -%pytest -k "not ($donttest)" +# tests expect the default 2016-01-01 for test builds, not the epoch set by OBS (serverside) +unset SOURCE_DATE_EPOCH +%pytest %files %{python_files} %doc README.md