From 7ee53c589e1683d2f706e0ef1099e61f5637dd3a1972c2c5558efdd0af27ff41 Mon Sep 17 00:00:00 2001 From: Richard Rahl Date: Sun, 30 Mar 2025 13:12:25 +0000 Subject: [PATCH] - update to 1.8.2: * Possible object has no attribute 'poetry' error in some projects. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-dynamic-versioning?expand=0&rev=21 --- .gitattributes | 23 ++++++ .gitignore | 1 + poetry_dynamic_versioning-1.4.0.tar.gz | 3 + poetry_dynamic_versioning-1.4.1.tar.gz | 3 + poetry_dynamic_versioning-1.5.0.tar.gz | 3 + poetry_dynamic_versioning-1.7.0.tar.gz | 3 + poetry_dynamic_versioning-1.7.1.tar.gz | 3 + poetry_dynamic_versioning-1.8.0.tar.gz | 3 + poetry_dynamic_versioning-1.8.1.tar.gz | 3 + poetry_dynamic_versioning-1.8.2.tar.gz | 3 + python-poetry-dynamic-versioning.changes | 97 ++++++++++++++++++++++++ python-poetry-dynamic-versioning.spec | 73 ++++++++++++++++++ 12 files changed, 218 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 poetry_dynamic_versioning-1.4.0.tar.gz create mode 100644 poetry_dynamic_versioning-1.4.1.tar.gz create mode 100644 poetry_dynamic_versioning-1.5.0.tar.gz create mode 100644 poetry_dynamic_versioning-1.7.0.tar.gz create mode 100644 poetry_dynamic_versioning-1.7.1.tar.gz create mode 100644 poetry_dynamic_versioning-1.8.0.tar.gz create mode 100644 poetry_dynamic_versioning-1.8.1.tar.gz create mode 100644 poetry_dynamic_versioning-1.8.2.tar.gz create mode 100644 python-poetry-dynamic-versioning.changes create mode 100644 python-poetry-dynamic-versioning.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/poetry_dynamic_versioning-1.4.0.tar.gz b/poetry_dynamic_versioning-1.4.0.tar.gz new file mode 100644 index 0000000..f403a4b --- /dev/null +++ b/poetry_dynamic_versioning-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:725178bd50a22f2dd4035de7f965151e14ecf8f7f19996b9e536f4c5559669a7 +size 32629 diff --git a/poetry_dynamic_versioning-1.4.1.tar.gz b/poetry_dynamic_versioning-1.4.1.tar.gz new file mode 100644 index 0000000..f285fd1 --- /dev/null +++ b/poetry_dynamic_versioning-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21584d21ca405aa7d83d23d38372e3c11da664a8742995bdd517577e8676d0e1 +size 32806 diff --git a/poetry_dynamic_versioning-1.5.0.tar.gz b/poetry_dynamic_versioning-1.5.0.tar.gz new file mode 100644 index 0000000..e0fd83d --- /dev/null +++ b/poetry_dynamic_versioning-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68b25c26407cf0d13d51d5dc7fc45667bc041032fda42ce89401c4ce82917837 +size 34080 diff --git a/poetry_dynamic_versioning-1.7.0.tar.gz b/poetry_dynamic_versioning-1.7.0.tar.gz new file mode 100644 index 0000000..93c4b0f --- /dev/null +++ b/poetry_dynamic_versioning-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe9f65e1b408d8b99ea28e5b1edde8f06ca5ff58026aa5d7376ec74f1342a104 +size 34973 diff --git a/poetry_dynamic_versioning-1.7.1.tar.gz b/poetry_dynamic_versioning-1.7.1.tar.gz new file mode 100644 index 0000000..3605cc3 --- /dev/null +++ b/poetry_dynamic_versioning-1.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7304b8459af7b7114cd83429827c4d3d8b7d29df4129dde8dff61c76f93faaa3 +size 35071 diff --git a/poetry_dynamic_versioning-1.8.0.tar.gz b/poetry_dynamic_versioning-1.8.0.tar.gz new file mode 100644 index 0000000..56f6089 --- /dev/null +++ b/poetry_dynamic_versioning-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81b8814d3cf9b86a6d1287a09e6351b062057ecda0d0ea698e94c1486043aa5a +size 36227 diff --git a/poetry_dynamic_versioning-1.8.1.tar.gz b/poetry_dynamic_versioning-1.8.1.tar.gz new file mode 100644 index 0000000..672038a --- /dev/null +++ b/poetry_dynamic_versioning-1.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35b2148e1d08ba30f38c3dd28518db1e2ff9152391265963af636ce29f987d59 +size 36276 diff --git a/poetry_dynamic_versioning-1.8.2.tar.gz b/poetry_dynamic_versioning-1.8.2.tar.gz new file mode 100644 index 0000000..5038468 --- /dev/null +++ b/poetry_dynamic_versioning-1.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d14de13d426ac28e98f4519aac7f4aa857e7b97ad9d7a4c72293377033065f44 +size 36381 diff --git a/python-poetry-dynamic-versioning.changes b/python-poetry-dynamic-versioning.changes new file mode 100644 index 0000000..acee659 --- /dev/null +++ b/python-poetry-dynamic-versioning.changes @@ -0,0 +1,97 @@ +------------------------------------------------------------------- +Sun Mar 30 11:42:39 UTC 2025 - Richard Rahl + +- update to 1.8.2: + * Possible object has no attribute 'poetry' error in some projects. + +------------------------------------------------------------------- +Mon Mar 24 17:41:43 UTC 2025 - Richard Rahl + +- update to 1.8.1: + * NameError exception with Python 3.7 + +------------------------------------------------------------------- +Fri Mar 21 17:10:02 UTC 2025 - Richard Rahl + +- update to 1.8.0: + * The bump config may now be set to a table, which supports an index field + * commit-length option to set a fixed length for commit hashes + * {major}, {minor}, and {patch} format placeholders. + * Compatibility with other plugins (such as poetry-monoranger-plugin) + * Updated Dunamai to 1.23.0+ for the latest features. + +------------------------------------------------------------------- +Thu Jan 23 15:32:05 UTC 2025 - Richard Rahl + +- update to 1.7.1: + * There was an intermittent ValueError in PEP 621 mode + +------------------------------------------------------------------- +Sat Jan 18 16:14:25 UTC 2025 - Richard Rahl + +- update to 1.7.0: + * The enable command now supports the bypass/override environment variables + to use a different placeholder version than 0.0.0. + * The enable command would add "version" to project.dynamic even if it were + already present. + * The enable command would set tool.poetry.version to "0.0.0" even if the + field were already present with a different value. +- update to 1.6.0: + * CLI: show command to print the version without changing any files. +- update to 1.5.2: + * The formatting of project.dynamic and tool.poetry.version could be changed + when triggering the plugin via poetry dynamic-versioning or pip install + (but not via poetry build or poetry-dynamic-versioning). +- update to 1.5.1: + * Array formatting was not preserved when changing project.dynamic in + pyproject.toml. + +------------------------------------------------------------------- +Mon Jan 6 13:13:22 UTC 2025 - Richard Rahl + +- update to 1.5.0: + * CLI: When pyproject.toml contains the project section, the enable command + will add the required fields for Poetry 2.0.0+. + * For compatibility with Poetry 2.0.0, adjusted Poetry constraint from ^1.2.0 + to >=1.2.0 + * For compatibility with Poetry 2.0.0, when inserting the dynamic version + into pyproject.toml with PEP 621 mode activated, the plugin ensures not to + set project.version and tool.poetry.version at the same time. + * An UnboundLocalError could happen when pyproject.toml was misconfigured. + +------------------------------------------------------------------- +Wed Sep 11 05:43:07 UTC 2024 - Richard Rahl + +- update to 1.4.1: + * The enable command would fail when the pyproject.toml tables were out of order. + +------------------------------------------------------------------- +Sun Jun 30 20:01:26 UTC 2024 - Dirk Müller + +- update to 1.4.0: + * The plugin now supports Poetry's upcoming PEP-621 + functionality. + +------------------------------------------------------------------- +Tue May 7 20:56:00 UTC 2024 - Dirk Müller + +- update to 1.3.0: + * `pattern-prefix` option to add a prefix to the version tag + pattern. + * `ignore-untracked` option to control the detection of dirty + state. + * `from-file` config section to read a version from a file + instead of the VCS. + * `POETRY_DYNAMIC_VERSIONING_DEBUG` environment variable for + some logging. + * Updated Dunamai to 1.21.0+ for the latest features + +------------------------------------------------------------------- +Fri Feb 23 18:14:04 UTC 2024 - Richard Rahl + +- fix runtime dependencies + +------------------------------------------------------------------- +Wed Dec 13 03:26:54 UTC 2023 - Richard Rahl + +- initial packaging diff --git a/python-poetry-dynamic-versioning.spec b/python-poetry-dynamic-versioning.spec new file mode 100644 index 0000000..e9fb53b --- /dev/null +++ b/python-poetry-dynamic-versioning.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-poetry-dynamic-versioning +# +# 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 +# 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-dynamic-versioning +Version: 1.8.2 +Release: 0 +Summary: Plugin for Poetry to enable dynamic versioning based on VCS tags +License: MIT +Group: Development/Libraries/Python +URL: https://github.com/mtkennerly/poetry-dynamic-versioning +Source: https://files.pythonhosted.org/packages/source/p/poetry-dynamic-versioning/poetry_dynamic_versioning-%{version}.tar.gz +BuildRequires: %{python_module devel >= 3.7.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core >= 1.2.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Jinja2 +Requires: python-dunamai >= 1.21.0 +Requires: python-tomlkit +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch + +%python_subpackages + +%description +%{summary}. + +%prep +%autosetup -p1 -n poetry_dynamic_versioning-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/poetry-dynamic-versioning +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%prepare_alternative poetry-dynamic-versioning + +%{python_compileall} + +%post +%python_install_alternative poetry-dynamic-versioning + +%postun +%python_uninstall_alternative poetry-dynamic-versioning + +%check +#every test reaches out to the internet + +%files %{python_files} +%python_alternative %{_bindir}/poetry-dynamic-versioning +%{python_sitelib}/poetry_dynamic_versioning +%{python_sitelib}/poetry_dynamic_versioning-%{version}.dist-info + +%changelog