Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-versioningit for
openSUSE:Factory checked in at 2024-10-30 19:26:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-versioningit (Old)
and /work/SRC/openSUSE:Factory/.python-versioningit.new.2020 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-versioningit"
Wed Oct 30 19:26:01 2024 rev:8 rq:1219468 version:3.1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-versioningit/python-versioningit.changes
2024-05-03 19:45:58.987977987 +0200
+++
/work/SRC/openSUSE:Factory/.python-versioningit.new.2020/python-versioningit.changes
2024-10-30 19:26:05.084329927 +0100
@@ -1,0 +2,7 @@
+Sat Oct 12 06:04:22 UTC 2024 - Tejas Guruswamy <[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
Old:
----
versioningit-3.1.1.tar.gz
New:
----
versioningit-3.1.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-versioningit.spec ++++++
--- /var/tmp/diff_new_pack.p5GL5k/_old 2024-10-30 19:26:06.540390926 +0100
+++ /var/tmp/diff_new_pack.p5GL5k/_new 2024-10-30 19:26:06.544391094 +0100
@@ -23,13 +23,13 @@
%endif
Name: python-versioningit
-Version: 3.1.1
+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 base >= 3.8}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: python-rpm-macros
++++++ versioningit-3.1.1.tar.gz -> versioningit-3.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/CHANGELOG.md
new/versioningit-3.1.2/CHANGELOG.md
--- old/versioningit-3.1.1/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100
@@ -1,3 +1,9 @@
+v3.1.2 (2024-07-20)
+-------------------
+- Drop support for Python 3.7
+- **Bugfix**: When using `versioningit` with Hatch, don't run the `onbuild`
+ step for editable builds
+
v3.1.1 (2024-04-29)
-------------------
- Correctly mark a certain test as requiring Mercurial
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/PKG-INFO
new/versioningit-3.1.2/PKG-INFO
--- old/versioningit-3.1.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.3
Name: versioningit
-Version: 3.1.1
+Version: 3.1.2
Summary: Versioning It with your Version In Git
Project-URL: Source Code, https://github.com/jwodder/versioningit
Project-URL: Bug Tracker, https://github.com/jwodder/versioningit/issues
@@ -16,7 +16,6 @@
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
-Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
@@ -29,7 +28,7 @@
Classifier: Topic :: Software Development :: Version Control :: Git
Classifier: Topic :: Software Development :: Version Control :: Mercurial
Classifier: Typing :: Typed
-Requires-Python: >=3.7
+Requires-Python: >=3.8
Requires-Dist: importlib-metadata>=3.6; python_version < '3.10'
Requires-Dist: packaging>=17.1
Requires-Dist: tomli<3.0,>=1.2; python_version < '3.11'
@@ -110,7 +109,7 @@
Installation & Setup
====================
-``versioningit`` requires Python 3.7 or higher. Just use `pip
+``versioningit`` requires Python 3.8 or higher. Just use `pip
<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
``versioningit`` and its dependencies::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/README.rst
new/versioningit-3.1.2/README.rst
--- old/versioningit-3.1.1/README.rst 2020-02-02 01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/README.rst 2020-02-02 01:00:00.000000000 +0100
@@ -73,7 +73,7 @@
Installation & Setup
====================
-``versioningit`` requires Python 3.7 or higher. Just use `pip
+``versioningit`` requires Python 3.8 or higher. Just use `pip
<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
``versioningit`` and its dependencies::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/docs/changelog.rst
new/versioningit-3.1.2/docs/changelog.rst
--- old/versioningit-3.1.1/docs/changelog.rst 2020-02-02 01:00:00.000000000
+0100
+++ new/versioningit-3.1.2/docs/changelog.rst 2020-02-02 01:00:00.000000000
+0100
@@ -3,6 +3,13 @@
Changelog
=========
+v3.1.2 (2024-07-20)
+-------------------
+- Drop support for Python 3.7
+- **Bugfix**: When using `versioningit` with Hatch, don't run the `onbuild`
+ step for editable builds
+
+
v3.1.1 (2024-04-29)
-------------------
- Correctly mark a certain test as requiring Mercurial
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/docs/index.rst
new/versioningit-3.1.2/docs/index.rst
--- old/versioningit-3.1.1/docs/index.rst 2020-02-02 01:00:00.000000000
+0100
+++ new/versioningit-3.1.2/docs/index.rst 2020-02-02 01:00:00.000000000
+0100
@@ -66,7 +66,7 @@
Installation & Setup
====================
-``versioningit`` requires Python 3.7 or higher. Just use `pip
+``versioningit`` requires Python 3.8 or higher. Just use `pip
<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
``versioningit`` and its dependencies::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/pyproject.toml
new/versioningit-3.1.2/pyproject.toml
--- old/versioningit-3.1.1/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
+++ new/versioningit-3.1.2/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
@@ -7,7 +7,7 @@
dynamic = ["version"]
description = "Versioning It with your Version In Git"
readme = "README.rst"
-requires-python = ">=3.7"
+requires-python = ">=3.8"
license = "MIT"
license-files = { paths = ["LICENSE"] }
authors = [
@@ -26,7 +26,6 @@
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/src/versioningit/__init__.py
new/versioningit-3.1.2/src/versioningit/__init__.py
--- old/versioningit-3.1.1/src/versioningit/__init__.py 2020-02-02
01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/src/versioningit/__init__.py 2020-02-02
01:00:00.000000000 +0100
@@ -43,7 +43,7 @@
<https://versioningit.rtfd.io> for more information.
"""
-__version__ = "3.1.1"
+__version__ = "3.1.2"
__author__ = "John Thorvald Wodder II"
__author_email__ = "[email protected]"
__license__ = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/src/versioningit/core.py
new/versioningit-3.1.2/src/versioningit/core.py
--- old/versioningit-3.1.1/src/versioningit/core.py 2020-02-02
01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/src/versioningit/core.py 2020-02-02
01:00:00.000000000 +0100
@@ -190,9 +190,9 @@
format=config.format.load(project_dir),
template_fields=config.template_fields.load(project_dir),
write=config.write.load(project_dir) if config.write is not None
else None,
- onbuild=config.onbuild.load(project_dir)
- if config.onbuild is not None
- else None,
+ onbuild=(
+ config.onbuild.load(project_dir) if config.onbuild is not None
else None
+ ),
)
def get_version(self, write: bool = False, fallback: bool = True) -> str:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/src/versioningit/hatch.py
new/versioningit-3.1.2/src/versioningit/hatch.py
--- old/versioningit-3.1.1/src/versioningit/hatch.py 2020-02-02
01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/src/versioningit/hatch.py 2020-02-02
01:00:00.000000000 +0100
@@ -73,8 +73,11 @@
super().__init__(*args, **kwargs)
self.__tmpdir = Path(tempfile.mkdtemp())
- def initialize(self, _version: str, build_data: dict[str, Any]) -> None:
+ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
init_logging()
+ if self.target_name == "wheel" and version == "editable":
+ log.debug("Not running onbuild step for editable build")
+ return None
version_source = self.metadata.hatch.version.source
if not isinstance(version_source, VersioningitSource):
raise RuntimeError(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/src/versioningit/onbuild.py
new/versioningit-3.1.2/src/versioningit/onbuild.py
--- old/versioningit-3.1.1/src/versioningit/onbuild.py 2020-02-02
01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/src/versioningit/onbuild.py 2020-02-02
01:00:00.000000000 +0100
@@ -63,8 +63,7 @@
encoding: str | None = None,
errors: str | None = None,
newline: str | None = None,
- ) -> TextIO:
- ...
+ ) -> TextIO: ...
@overload
def open(
@@ -73,8 +72,7 @@
encoding: None = None,
errors: None = None,
newline: None = None,
- ) -> IO[bytes]:
- ...
+ ) -> IO[bytes]: ...
@abstractmethod
def open(
@@ -142,8 +140,7 @@
encoding: str | None = None,
errors: str | None = None,
newline: str | None = None,
- ) -> TextIO:
- ...
+ ) -> TextIO: ...
@overload
def open(
@@ -152,8 +149,7 @@
encoding: None = None,
errors: None = None,
newline: None = None,
- ) -> IO[bytes]:
- ...
+ ) -> IO[bytes]: ...
def open(
self,
@@ -236,8 +232,7 @@
encoding: str | None = None,
errors: str | None = None,
newline: str | None = None,
- ) -> TextIO:
- ...
+ ) -> TextIO: ...
@overload
def open(
@@ -246,8 +241,7 @@
encoding: None = None,
errors: None = None,
newline: None = None,
- ) -> IO[bytes]:
- ...
+ ) -> IO[bytes]: ...
def open(
self,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/test/test_end2end.py
new/versioningit-3.1.2/test/test_end2end.py
--- old/versioningit-3.1.1/test/test_end2end.py 2020-02-02 01:00:00.000000000
+0100
+++ new/versioningit-3.1.2/test/test_end2end.py 2020-02-02 01:00:00.000000000
+0100
@@ -399,6 +399,10 @@
assert get_repo_status(srcdir) == status
info = readcmd(sys.executable, "-m", "pip", "show", "mypackage")
assert parse_version_from_metadata(info) == details.version
+ version_var = readcmd(
+ sys.executable, "-c", "import mypackage;
print(mypackage.__version__)"
+ )
+ assert version_var == "NOT SET"
for f in details.files:
f.check(srcdir, "project")
finally:
@@ -425,6 +429,10 @@
assert get_repo_status(srcdir) == status
info = readcmd(sys.executable, "-m", "pip", "show", "mypackage")
assert parse_version_from_metadata(info) == details.version
+ version_var = readcmd(
+ sys.executable, "-c", "import mypackage;
print(mypackage.__version__)"
+ )
+ assert version_var == "NOT SET"
for f in details.files:
f.check(srcdir, "project")
finally:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/versioningit-3.1.1/tox.ini
new/versioningit-3.1.2/tox.ini
--- old/versioningit-3.1.1/tox.ini 2020-02-02 01:00:00.000000000 +0100
+++ new/versioningit-3.1.2/tox.ini 2020-02-02 01:00:00.000000000 +0100
@@ -1,5 +1,5 @@
[tox]
-envlist = lint,typing,py37,py38,py39,py310,py311,py312,pypy3,py-oldsetup
+envlist = lint,typing,py38,py39,py310,py311,py312,pypy3,py-oldsetup
skip_missing_interpreters = True
isolated_build = True
minversion = 3.3.0
@@ -88,7 +88,7 @@
max-line-length = 80
unused-arguments-ignore-stub-functions = True
extend-select = B901,B902,B950
-ignore = A003,B005,E203,E262,E266,E501,U101,W503
+ignore = A003,A005,B005,E203,E262,E266,E501,E704,U101,W503
[isort]
atomic = True