From f4adad9269c6688d41ff07ad1cb41ee283292a20a2df3c09f88d25f693a958b6 Mon Sep 17 00:00:00 2001 From: Tejas Guruswamy Date: Sat, 12 Oct 2024 06:05:19 +0000 Subject: [PATCH] - update to 3.1.2: * Drop support for Python 3.7 * Bugfix: When using versioningit with Hatch, don't run the onbuild step for editable builds OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-versioningit?expand=0&rev=21 --- .gitattributes | 23 ++++++++ .gitignore | 1 + python-versioningit.changes | 75 ++++++++++++++++++++++++++ python-versioningit.spec | 101 ++++++++++++++++++++++++++++++++++++ versioningit-3.1.1.tar.gz | 3 ++ versioningit-3.1.2.tar.gz | 3 ++ 6 files changed, 206 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-versioningit.changes create mode 100644 python-versioningit.spec create mode 100644 versioningit-3.1.1.tar.gz create mode 100644 versioningit-3.1.2.tar.gz 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/python-versioningit.changes b/python-versioningit.changes new file mode 100644 index 0000000..a3b9c31 --- /dev/null +++ b/python-versioningit.changes @@ -0,0 +1,75 @@ +------------------------------------------------------------------- +Sat Oct 12 06:04:22 UTC 2024 - Tejas Guruswamy + +- update to 3.1.2: + * Drop support for Python 3.7 + * Bugfix: When using versioningit with Hatch, don't run the onbuild step for editable builds + +------------------------------------------------------------------- +Thu May 2 22:04:58 UTC 2024 - Dirk Müller + +- update to 3.1.1: + * Correctly mark a certain test as requiring Mercurial + +------------------------------------------------------------------- +Thu Mar 21 08:20:56 UTC 2024 - Markéta Machová + +- Update to 3.1.0 + * Improve some error messages + +------------------------------------------------------------------- +Thu Mar 14 11:08:49 UTC 2024 - Dirk Müller + +- update to 3.0.0: + * Migrated from setuptools to hatch + * Support using the `onbuild` step with Hatch + * **Breaking**: The `build_dir` argument passed to + `Versioningit.do_onbuild()` + * and `onbuild` method callables has been changed to an + `OnbuildFileProvider` + * ABC + +------------------------------------------------------------------ +Sun Feb 12 01:30:01 UTC 2023 - Tejas Guruswamy + +- Update to version 2.2.0 + * The custom setuptools command classes can now be imported directly from the versioningit.cmdclass + module as an alternative to calling get_cmdclasses() + +------------------------------------------------------------------- +Wed Nov 9 19:36:14 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2.1.0 + * Drop support for Python 3.6 + * Support Python 3.11 + * Use tomllib on Python 3.11 + +------------------------------------------------------------------- +Tue Oct 11 16:52:39 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2.0.1 + * Don't run the onbuild step under setuptools' upcoming PEP 660 editable mode (contributed by @abravalheri) + +------------------------------------------------------------------- +Fri Jul 22 21:44:24 UTC 2022 - Tejas Guruswamy + +- Update to v2.0.0 + + Breaking API changes, see CHANGELOG.md + +------------------------------------------------------------------- +Fri Jun 3 20:14:18 UTC 2022 - Tejas Guruswamy + +- Build using pyproject, not setup.py +- Use libalternatives on Tumbleweed. +- BuildRequire git and mercurial to properly run tests + +------------------------------------------------------------------- +Wed Jun 1 16:57:04 UTC 2022 - Tejas Guruswamy + +- Build and run tests with pytest + +------------------------------------------------------------------- +Fri May 6 20:31:53 UTC 2022 - Scott Bradnick + +- Initial version from upstream via py2pack. + * requires shim 'setup.py'. diff --git a/python-versioningit.spec b/python-versioningit.spec new file mode 100644 index 0000000..2bf5c38 --- /dev/null +++ b/python-versioningit.spec @@ -0,0 +1,101 @@ +# +# spec file for package python-versioningit +# +# 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/ +# + + +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + +Name: python-versioningit +Version: 3.1.2 +Release: 0 +Summary: Versioning It with your Version In Git +License: MIT +URL: https://github.com/jwodder/versioningit +Source: https://files.pythonhosted.org/packages/source/v/versioningit/versioningit-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module build} +BuildRequires: %{python_module importlib-metadata if %python-base < 3.10} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pydantic} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module tomli >= 1.2} +BuildRequires: %{python_module wheel} +BuildRequires: git-core +# /SECTION +BuildRequires: fdupes +Requires: python-packaging +Requires: python-tomli >= 1.2 +%if %{?python_version_nodots} < 310 +Requires: python-importlib-metadata >= 3.6 +%endif +Suggests: python-dataclasses +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif +BuildArch: noarch +%python_subpackages + +%description +Python Setuptools plugin for automatically determining your package's version +based on your version control repository's tags. Unlike others, it allows easy +customization of the version format and even lets you easily override the +separate functions used for version extraction & calculation. + +%prep +%setup -q -n versioningit-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/versioningit + +%check +%pytest test -k 'not test_editable_mode or not test_end2end' + +%pre +%python_libalternatives_reset_alternative versioningit + +%post +%python_install_alternative versioningit + +%postun +%python_uninstall_alternative versioningit + +%files %{python_files} +%doc CHANGELOG.md README.rst +%license LICENSE +%python_alternative %{_bindir}/versioningit +%{python_sitelib}/versioningit +%{python_sitelib}/versioningit-%{version}*-info + +%changelog diff --git a/versioningit-3.1.1.tar.gz b/versioningit-3.1.1.tar.gz new file mode 100644 index 0000000..a68ff62 --- /dev/null +++ b/versioningit-3.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0ba586e5af08b87dbe3354082910a1d0502c36202d496e1ae60ef3b41ee29c1 +size 212882 diff --git a/versioningit-3.1.2.tar.gz b/versioningit-3.1.2.tar.gz new file mode 100644 index 0000000..f296894 --- /dev/null +++ b/versioningit-3.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4db83ed99f56b07d83940bee3445ca46ca120d13b6b304cdb5fb44e5aa4edec0 +size 213047