Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-hatch_vcs for
openSUSE:Factory checked in at 2025-06-03 17:50:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hatch_vcs (Old)
and /work/SRC/openSUSE:Factory/.python-hatch_vcs.new.16005 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatch_vcs"
Tue Jun 3 17:50:17 2025 rev:10 rq:1281757 version:0.5.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hatch_vcs/python-hatch_vcs.changes
2023-11-06 21:13:42.954022460 +0100
+++
/work/SRC/openSUSE:Factory/.python-hatch_vcs.new.16005/python-hatch_vcs.changes
2025-06-03 17:50:25.633860634 +0200
@@ -1,0 +2,11 @@
+Thu May 29 06:00:44 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- update to 0.5.0:
+ * Changed:
+ - Drop support for Python 3.8
+ * Added:
+ - Officially support Python 3.13
+ - Avoid a deprecation warning emitted by a dependency when using
+ the tag-pattern option
+
+-------------------------------------------------------------------
Old:
----
hatch_vcs-0.4.0.tar.gz
New:
----
hatch_vcs-0.5.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hatch_vcs.spec ++++++
--- /var/tmp/diff_new_pack.oxGnYD/_old 2025-06-03 17:50:26.469895325 +0200
+++ /var/tmp/diff_new_pack.oxGnYD/_new 2025-06-03 17:50:26.473895491 +0200
@@ -1,7 +1,7 @@
#
-# spec file
+# spec file for package python-hatch_vcs
#
-# Copyright (c) 2023 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
@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-hatch_vcs%{psuffix}
-Version: 0.4.0
+Version: 0.5.0
Release: 0
Summary: Hatch plugin for versioning with your preferred VCS
License: MIT
@@ -34,23 +34,23 @@
Source:
https://files.pythonhosted.org/packages/source/h/hatch_vcs/hatch_vcs-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
-# https://github.com/ofek/hatch-vcs/issues/8
-Requires: (python-setuptools_scm >= 6.4.0)
-Requires: python-hatchling >= 0.21.0
-Provides: python-hatch-vcs = %{version}-%{release}
-BuildArch: noarch
# SECTION build
-BuildRequires: %{python_module hatchling >= 0.21.0}
+BuildRequires: %{python_module base >= 3.9}
+BuildRequires: %{python_module hatchling >= 1.1.0}
BuildRequires: %{python_module pip}
+BuildRequires: %{python_module setuptools_scm >= 8.2.0}
# /SECTION
%if %{with test}
# SECTION test
BuildRequires: %{python_module hatch_vcs = %{version}}
BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module setuptools_scm >= 6.4.0}
BuildRequires: git
# /SECTION
%endif
+Requires: python-hatchling >= 1.1.0
+Requires: python-setuptools_scm >= 8.2.0
+Provides: python-hatch-vcs = %{version}-%{release}
+BuildArch: noarch
%python_subpackages
%description
++++++ hatch_vcs-0.4.0.tar.gz -> hatch_vcs-0.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/.gemini/config.yaml
new/hatch_vcs-0.5.0/.gemini/config.yaml
--- old/hatch_vcs-0.4.0/.gemini/config.yaml 1970-01-01 01:00:00.000000000
+0100
+++ new/hatch_vcs-0.5.0/.gemini/config.yaml 2020-02-02 01:00:00.000000000
+0100
@@ -0,0 +1,6 @@
+#
https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github
+have_fun: false
+code_review:
+ pull_request_opened:
+ summary: false
+ code_review: false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/.github/workflows/build.yml
new/hatch_vcs-0.5.0/.github/workflows/build.yml
--- old/hatch_vcs-0.4.0/.github/workflows/build.yml 2020-02-02
01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/.github/workflows/build.yml 2020-02-02
01:00:00.000000000 +0100
@@ -14,7 +14,7 @@
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install build dependencies
run: python -m pip install --upgrade build
@@ -22,10 +22,10 @@
- name: Build
run: python -m build
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: artifacts
- path: dist/*
+ path: dist
if-no-files-found: error
publish:
@@ -35,14 +35,14 @@
runs-on: ubuntu-latest
steps:
- - uses: actions/download-artifact@v3
+ - uses: actions/download-artifact@v4
with:
name: artifacts
path: dist
- name: Push build artifacts to PyPI
- uses: pypa/[email protected]
+ uses: pypa/gh-action-pypi-publish@release/v1
with:
- skip_existing: true
+ skip-existing: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/.github/workflows/test.yml
new/hatch_vcs-0.5.0/.github/workflows/test.yml
--- old/hatch_vcs-0.4.0/.github/workflows/test.yml 2020-02-02
01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/.github/workflows/test.yml 2020-02-02
01:00:00.000000000 +0100
@@ -24,7 +24,7 @@
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/HISTORY.md
new/hatch_vcs-0.5.0/HISTORY.md
--- old/hatch_vcs-0.4.0/HISTORY.md 2020-02-02 01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/HISTORY.md 2020-02-02 01:00:00.000000000 +0100
@@ -8,6 +8,17 @@
## Unreleased
+## 0.5.0 - 2025-05-27
+
+***Changed:***
+
+- Drop support for Python 3.8
+
+***Added:***
+
+- Officially support Python 3.13
+- Avoid a deprecation warning emitted by a dependency when using the
`tag-pattern` option
+
## 0.4.0 - 2023-11-06
***Changed:***
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/PKG-INFO new/hatch_vcs-0.5.0/PKG-INFO
--- old/hatch_vcs-0.4.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,27 +1,27 @@
-Metadata-Version: 2.1
+Metadata-Version: 2.4
Name: hatch-vcs
-Version: 0.4.0
+Version: 0.5.0
Summary: Hatch plugin for versioning with your preferred VCS
Project-URL: Funding, https://github.com/sponsors/ofek
Project-URL: History, https://github.com/ofek/hatch-vcs/blob/master/HISTORY.md
Project-URL: Issues, https://github.com/ofek/hatch-vcs/issues
Project-URL: Source, https://github.com/ofek/hatch-vcs
Author-email: Ofek Lev <[email protected]>
-License: MIT
+License-Expression: MIT
License-File: LICENSE.txt
Keywords: git,hatch,mercurial,plugin,scm,vcs,version
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
-Requires-Python: >=3.8
+Requires-Python: >=3.9
Requires-Dist: hatchling>=1.1.0
-Requires-Dist: setuptools-scm>=6.4.0
+Requires-Dist: setuptools-scm>=8.2.0
Description-Content-Type: text/markdown
# hatch-vcs
@@ -85,7 +85,23 @@
| --- | --- | --- | --- |
| `tag-pattern` | `str` | see
[code](https://github.com/pypa/setuptools_scm/blob/v6.4.0/src/setuptools_scm/config.py#L13)
| A regular expression used to extract the version part from VCS tags. The
pattern needs to contain either a single match group, or a group named
`version`, that captures the actual version information. |
| `fallback-version` | `str` | | The version that will be used if no other
method for detecting the version is successful. If not specified, unsuccessful
version detection will raise an error. |
-| `raw-options` | `dict` | | A table of [`setuptools-scm`
parameters](https://github.com/pypa/setuptools_scm#configuration-parameters)
that will override any of the options listed above. The `write_to` and
`write_to_template` parameters are ignored. |
+| `raw-options` | `dict` | | A table of [`setuptools-scm`
parameters](https://setuptools-scm.readthedocs.io/en/latest/config/) that will
override any of the options listed above. The `write_to` and
`write_to_template` parameters are ignored. |
+
+For example, to prevent incrementing version numbers on non-release commits,
you can adjust the `version_scheme` parameter for `setuptools-scm` as follows:
+
+- ***pyproject.toml***
+
+ ```toml
+ [tool.hatch.version.raw-options]
+ version_scheme = "no-guess-dev"
+ ```
+
+- ***hatch.toml***
+
+ ```toml
+ [version.raw-options]
+ version_scheme = "no-guess-dev"
+ ```
### Version source environment variables
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/README.md
new/hatch_vcs-0.5.0/README.md
--- old/hatch_vcs-0.4.0/README.md 2020-02-02 01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/README.md 2020-02-02 01:00:00.000000000 +0100
@@ -59,7 +59,23 @@
| --- | --- | --- | --- |
| `tag-pattern` | `str` | see
[code](https://github.com/pypa/setuptools_scm/blob/v6.4.0/src/setuptools_scm/config.py#L13)
| A regular expression used to extract the version part from VCS tags. The
pattern needs to contain either a single match group, or a group named
`version`, that captures the actual version information. |
| `fallback-version` | `str` | | The version that will be used if no other
method for detecting the version is successful. If not specified, unsuccessful
version detection will raise an error. |
-| `raw-options` | `dict` | | A table of [`setuptools-scm`
parameters](https://github.com/pypa/setuptools_scm#configuration-parameters)
that will override any of the options listed above. The `write_to` and
`write_to_template` parameters are ignored. |
+| `raw-options` | `dict` | | A table of [`setuptools-scm`
parameters](https://setuptools-scm.readthedocs.io/en/latest/config/) that will
override any of the options listed above. The `write_to` and
`write_to_template` parameters are ignored. |
+
+For example, to prevent incrementing version numbers on non-release commits,
you can adjust the `version_scheme` parameter for `setuptools-scm` as follows:
+
+- ***pyproject.toml***
+
+ ```toml
+ [tool.hatch.version.raw-options]
+ version_scheme = "no-guess-dev"
+ ```
+
+- ***hatch.toml***
+
+ ```toml
+ [version.raw-options]
+ version_scheme = "no-guess-dev"
+ ```
### Version source environment variables
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/hatch.toml
new/hatch_vcs-0.5.0/hatch.toml
--- old/hatch_vcs-0.4.0/hatch.toml 2020-02-02 01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/hatch.toml 2020-02-02 01:00:00.000000000 +0100
@@ -16,7 +16,7 @@
]
[[envs.all.matrix]]
-python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
+python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[envs.lint]
detached = true
@@ -28,7 +28,7 @@
[envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:hatch_vcs tests}"
style = [
- "ruff {args:.}",
+ "ruff check {args:.}",
"black --check --diff {args:.}",
]
fmt = [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/hatch_vcs/__about__.py
new/hatch_vcs-0.5.0/hatch_vcs/__about__.py
--- old/hatch_vcs-0.4.0/hatch_vcs/__about__.py 2020-02-02 01:00:00.000000000
+0100
+++ new/hatch_vcs-0.5.0/hatch_vcs/__about__.py 2020-02-02 01:00:00.000000000
+0100
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-present Ofek Lev <[email protected]>
#
# SPDX-License-Identifier: MIT
-__version__ = '0.4.0'
+__version__ = '0.5.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/hatch_vcs/vcs_utils.py
new/hatch_vcs-0.5.0/hatch_vcs/vcs_utils.py
--- old/hatch_vcs-0.4.0/hatch_vcs/vcs_utils.py 2020-02-02 01:00:00.000000000
+0100
+++ new/hatch_vcs-0.5.0/hatch_vcs/vcs_utils.py 2020-02-02 01:00:00.000000000
+0100
@@ -2,9 +2,9 @@
#
# SPDX-License-Identifier: MIT
import subprocess
-from functools import lru_cache
+from functools import cache
-@lru_cache(maxsize=None)
+@cache
def get_commit_hash(root: str):
return subprocess.check_output(['git', 'rev-parse', 'HEAD'],
cwd=root).decode('utf-8').strip()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/hatch_vcs/version_source.py
new/hatch_vcs-0.5.0/hatch_vcs/version_source.py
--- old/hatch_vcs-0.4.0/hatch_vcs/version_source.py 2020-02-02
01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/hatch_vcs/version_source.py 2020-02-02
01:00:00.000000000 +0100
@@ -53,7 +53,9 @@
config = deepcopy(self.config_raw_options)
config.setdefault('root', self.root)
- config.setdefault('tag_regex', self.config_tag_pattern)
+ # Only set for non-empty strings
+ if self.config_tag_pattern:
+ config['tag_regex'] = self.config_tag_pattern
# Only set for non-empty strings
if self.config_fallback_version:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/pyproject.toml
new/hatch_vcs-0.5.0/pyproject.toml
--- old/hatch_vcs-0.4.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
@@ -7,8 +7,8 @@
dynamic = ["version"]
description = 'Hatch plugin for versioning with your preferred VCS'
readme = "README.md"
-license = { text = "MIT" }
-requires-python = ">= 3.8"
+license = "MIT"
+requires-python = ">=3.9"
keywords = [
"git",
"hatch",
@@ -24,17 +24,17 @@
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
- "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"hatchling>=1.1.0",
- "setuptools-scm>=6.4.0",
+ "setuptools-scm>=8.2.0",
]
[project.urls]
@@ -50,13 +50,15 @@
path = "hatch_vcs/__about__.py"
[tool.black]
-target-version = ["py38"]
+target-version = ["py39"]
line-length = 120
skip-string-normalization = true
[tool.ruff]
-target-version = "py38"
+target-version = "py39"
line-length = 120
+
+[tool.ruff.lint]
select = [
"A",
"B",
@@ -89,16 +91,16 @@
"FBT002",
]
-[tool.ruff.isort]
+[tool.ruff.lint.isort]
known-first-party = ["hatch_vcs"]
-[tool.ruff.flake8-quotes]
+[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
-[tool.ruff.flake8-tidy-imports]
+[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
-[tool.ruff.per-file-ignores]
+[tool.ruff.lint.per-file-ignores]
# Tests can use relative imports and assertions
"tests/**/*" = ["TID252", "S101"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/tests/conftest.py
new/hatch_vcs-0.5.0/tests/conftest.py
--- old/hatch_vcs-0.4.0/tests/conftest.py 2020-02-02 01:00:00.000000000
+0100
+++ new/hatch_vcs-0.5.0/tests/conftest.py 2020-02-02 01:00:00.000000000
+0100
@@ -86,7 +86,8 @@
git('config', '--local', 'user.email', '[email protected]')
git('add', '.')
git('commit', '-m', 'test')
- git('tag', '1.2.3')
+ # TODO: Confirm that creating a tag without a message locally
causes tests to hang
+ git('tag', '1.2.3', '-m', 'test')
if nested:
os.chdir(project_dir)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_vcs-0.4.0/tests/test_version_config.py
new/hatch_vcs-0.5.0/tests/test_version_config.py
--- old/hatch_vcs-0.4.0/tests/test_version_config.py 2020-02-02
01:00:00.000000000 +0100
+++ new/hatch_vcs-0.5.0/tests/test_version_config.py 2020-02-02
01:00:00.000000000 +0100
@@ -1,6 +1,8 @@
# SPDX-FileCopyrightText: 2022-present Ofek Lev <[email protected]>
#
# SPDX-License-Identifier: MIT
+import warnings
+
import pytest
from hatch_vcs.version_source import VCSVersionSource
@@ -20,6 +22,23 @@
with pytest.raises(TypeError, match='option `tag-pattern` must be a
string'):
_ = version_source.config_tag_pattern
+ def test_no_tag_pattern(self, new_project_basic):
+ config = {}
+ version_source = VCSVersionSource(new_project_basic, config)
+
+ assert version_source.config_tag_pattern == ''
+
+ # Should not raise any deprecation warnings
+ with warnings.catch_warnings():
+ warnings.simplefilter('error')
+ _ = version_source.get_version_data()
+
+ def test_custom_tag_pattern_get_version(self, new_project_basic):
+ config = {'tag-pattern': '(?P<version>.+)'}
+ version_source = VCSVersionSource(new_project_basic, config)
+
+ assert version_source.get_version_data() == {'version': '1.2.3'}
+
class TestFallbackVersion:
def test_correct(self, new_project_basic):