Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-flufl.i18n for
openSUSE:Factory checked in at 2022-09-29 18:13:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flufl.i18n (Old)
and /work/SRC/openSUSE:Factory/.python-flufl.i18n.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flufl.i18n"
Thu Sep 29 18:13:21 2022 rev:5 rq:1006739 version:4.1.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flufl.i18n/python-flufl.i18n.changes
2022-07-04 11:32:40.060003098 +0200
+++
/work/SRC/openSUSE:Factory/.python-flufl.i18n.new.2275/python-flufl.i18n.changes
2022-09-29 18:14:04.595339595 +0200
@@ -1,0 +2,15 @@
+Wed Sep 28 15:29:41 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to 4.1.1 (2022-09-05)
+ * Improvements to the GitLab CI integration.
+ * Several minor updates to work better with the latest pdm.
+
+- Update to 4.1 (2022-08-25)
+
+ * The standard substitution pattern now ignores the trailing dot on $-string
placeholders. I.e. $foo. is now recognized as $foo. (GL#12)
+ * Update to pdm 1.3.
+ * Update dependencies.
+ * Make sure the doctest teardown gets run.
+ * Add support for Python 3.11.
+
+-------------------------------------------------------------------
Old:
----
flufl.i18n-4.0.tar.gz
New:
----
flufl.i18n-4.1.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flufl.i18n.spec ++++++
--- /var/tmp/diff_new_pack.UPSc8A/_old 2022-09-29 18:14:05.219340814 +0200
+++ /var/tmp/diff_new_pack.UPSc8A/_new 2022-09-29 18:14:05.227340830 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-flufl.i18n
-Version: 4.0
+Version: 4.1.1
Release: 0
Summary: High level API for internationalizing Python libraries and
applications
License: Apache-2.0
++++++ flufl.i18n-4.0.tar.gz -> flufl.i18n-4.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/PKG-INFO new/flufl.i18n-4.1.1/PKG-INFO
--- old/flufl.i18n-4.0/PKG-INFO 2022-01-12 05:42:26.965920700 +0100
+++ new/flufl.i18n-4.1.1/PKG-INFO 2022-09-06 03:55:58.619754000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: flufl.i18n
-Version: 4.0
+Version: 4.1.1
Summary: A high level API for internationalizing Python libraries and
applications
License: Apache-2.0
Keywords: i18n,internationalization
@@ -24,34 +24,35 @@
Project-URL: Home Page, https://flufli18n.readthedocs.io
Project-URL: Source Code, https://gitlab.com/warsaw/flufl.i18n.git
Description-Content-Type: text/x-rst
-Description: ==========
- flufl.i18n
- ==========
-
- A high level API for internationalizing Python libraries and
applications.
-
- The ``flufl.i18n`` library provides a convenient API for managing
translation
- contexts in Python applications. It provides facilities not only for
- single-context applications like command line scripts, but also more
- sophisticated management of multiple-context applications such as
Internet
- servers.
-
-
- Author
- ======
-
- ``flufl.i18n`` is Copyright (C) 2004-2022 Barry Warsaw
<[email protected]>
-
- Licensed under the terms of the Apache License Version 2.0. See the
LICENSE
- file for details.
-
-
- Project details
- ===============
-
- * Project home: https://gitlab.com/warsaw/flufl.i18n
- * Report bugs at: https://gitlab.com/warsaw/flufl.i18n/issues
- * Code hosting: https://gitlab.com/warsaw/flufl.i18n.git
- * Documentation: https://flufli18n.readthedocs.io/
- * PyPI: https://pypi.python.org/pypi/flufl.i18n
+
+==========
+flufl.i18n
+==========
+
+A high level API for internationalizing Python libraries and applications.
+
+The ``flufl.i18n`` library provides a convenient API for managing translation
+contexts in Python applications. It provides facilities not only for
+single-context applications like command line scripts, but also more
+sophisticated management of multiple-context applications such as Internet
+servers.
+
+
+Author
+======
+
+``flufl.i18n`` is Copyright (C) 2004-2022 Barry Warsaw <[email protected]>
+
+Licensed under the terms of the Apache License Version 2.0. See the LICENSE
+file for details.
+
+
+Project details
+===============
+
+ * Project home: https://gitlab.com/warsaw/flufl.i18n
+ * Report bugs at: https://gitlab.com/warsaw/flufl.i18n/issues
+ * Code hosting: https://gitlab.com/warsaw/flufl.i18n.git
+ * Documentation: https://flufli18n.readthedocs.io/
+ * PyPI: https://pypi.python.org/pypi/flufl.i18n
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/conftest.py
new/flufl.i18n-4.1.1/conftest.py
--- old/flufl.i18n-4.0/conftest.py 2022-01-12 05:19:13.825483000 +0100
+++ new/flufl.i18n-4.1.1/conftest.py 2022-09-06 03:55:19.244842800 +0200
@@ -42,4 +42,5 @@
],
pattern='*.rst',
setup=namespace.setup,
+ teardown=namespace.teardown,
).pytest()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/docs/NEWS.rst
new/flufl.i18n-4.1.1/docs/NEWS.rst
--- old/flufl.i18n-4.0/docs/NEWS.rst 2022-01-12 05:19:40.691268400 +0100
+++ new/flufl.i18n-4.1.1/docs/NEWS.rst 2022-09-06 03:55:19.244842800 +0200
@@ -2,6 +2,20 @@
flufl.i18n change log
=====================
+4.1.1 (2022-09-05)
+==================
+* Improvements to the GitLab CI integration.
+* Several minor updates to work better with the latest pdm.
+
+4.1 (2022-08-25)
+==================
+* The standard substitution pattern now ignores the trailing dot on $-string
+ placeholders. I.e. ``$foo.`` is now recognized as ``$foo``. (GL#12)
+* Update to pdm 1.3.
+* Update dependencies.
+* Make sure the doctest teardown gets run.
+* Add support for Python 3.11.
+
4.0 (2022-01-11)
================
* Use modern package management by adopting `pdm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/pyproject.toml
new/flufl.i18n-4.1.1/pyproject.toml
--- old/flufl.i18n-4.0/pyproject.toml 2022-01-12 05:40:34.304659400 +0100
+++ new/flufl.i18n-4.1.1/pyproject.toml 2022-09-06 03:55:19.245843000 +0200
@@ -1,20 +1,36 @@
[project]
name = "flufl.i18n"
+authors = [
+ { name = "Barry Warsaw", email = "[email protected]" },
+]
description = "A high level API for internationalizing Python libraries and
applications"
readme = "README.rst"
requires-python = ">=3.7"
-keywords = [ "i18n", "internationalization",]
-classifiers = [ "Development Status :: 5 - Production/Stable", "Development
Status :: 6 - Mature", "Intended Audience :: Developers", "License :: OSI
Approved :: Apache Software License", "Operating System :: POSIX", "Operating
System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows",
"Programming Language :: Python", "Programming Language :: Python :: 3", "Topic
:: Software Development :: Internationalization", "Topic :: Software
Development :: Libraries", "Topic :: Software Development :: Libraries ::
Python Modules", "Topic :: Software Development :: Localization",]
-dependencies = [ "typing_extensions; python_version<'3.8'", "atpublic>=2.3",]
+keywords = [
+ "i18n",
+ "internationalization",
+]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Development Status :: 6 - Mature",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: Apache Software License",
+ "Operating System :: POSIX",
+ "Operating System :: MacOS :: MacOS X",
+ "Operating System :: Microsoft :: Windows",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 3",
+ "Topic :: Software Development :: Internationalization",
+ "Topic :: Software Development :: Libraries",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ "Topic :: Software Development :: Localization",
+]
+dependencies = [
+ "typing_extensions; python_version<'3.8'",
+ "atpublic>=2.3",
+]
dynamic = []
-version = "4.0"
-[[project.authors]]
-name = "Barry Warsaw"
-email = "[email protected]"
-
-[build-system]
-requires = [ "pdm-pep517",]
-build-backend = "pdm.pep517.api"
+version = "4.1.1"
[project.license]
text = "Apache-2.0"
@@ -27,11 +43,59 @@
[project.optional-dependencies]
-[tool.pdm]
-editable-backend = "path"
-includes = [ "src/flufl",]
-excludes = [ "**/.mypy_cache",]
-source-includes = [ "docs/", "test/", "tox.ini", "conftest.py",]
+[tool.pdm.version]
+from = "src/flufl/i18n/__init__.py"
+
+[tool.pdm.build]
+includes = [
+ "src/flufl",
+]
+excludes = [
+ "**/.mypy_cache",
+]
+source-includes = [
+ "docs/",
+ "test/",
+ "tox.ini",
+ "conftest.py",
+]
+
+[tool.pdm.dev-dependencies]
+testing = [
+ "coverage[toml]",
+ "diff-cover",
+ "pytest",
+ "pytest-cov",
+ "sybil",
+]
+qa = [
+ "flake8",
+ "isort",
+ "mypy",
+ "blue",
+]
+docs = [
+ "sphinx",
+ "sphinx-autodoc-typehints",
+ "furo",
+]
+
+[tool.pytest.ini_options]
+addopts = "--cov=flufl --cov-report=term --cov-report=xml -p no:doctest"
+testpaths = "test docs"
+
+[tool.coverage.report]
+fail_under = 100
+show_missing = true
+
+[tool.coverage.run]
+branch = true
+parallel = true
+
+[tool.coverage.paths]
+source = [
+ "flufl/i18n",
+]
[tool.isort]
include_trailing_comma = true
@@ -41,7 +105,9 @@
lines_between_types = 1
multi_line_output = 3
order_by_type = false
-skip = [ "conf.py",]
+skip = [
+ "conf.py",
+]
[tool.mypy]
mypy_path = "src"
@@ -68,29 +134,18 @@
show_absolute_path = true
warn_unused_configs = true
verbosity = 0
+
[[tool.mypy.overrides]]
-module = [ "public", "pytest", "sybil.*", "psutil",]
+module = [
+ "public",
+ "pytest",
+ "sybil.*",
+ "psutil",
+]
ignore_missing_imports = true
-[tool.pdm.version]
-from = "src/flufl/i18n/__init__.py"
-
-[tool.pdm.dev-dependencies]
-testing = [ "coverage[toml]", "diff-cover", "pytest", "pytest-cov", "sybil",]
-qa = [ "flake8", "isort", "mypy", "blue",]
-docs = [ "sphinx", "sphinx-autodoc-typehints", "furo",]
-
-[tool.pytest.ini_options]
-addopts = "--cov=flufl --cov-report=term --cov-report=xml"
-testpaths = "test docs"
-
-[tool.coverage.report]
-fail_under = 100
-show_missing = true
-
-[tool.coverage.run]
-branch = true
-parallel = true
-
-[tool.coverage.paths]
-source = [ "flufl/i18n",]
+[build-system]
+requires = [
+ "pdm-pep517",
+]
+build-backend = "pdm.pep517.api"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/src/flufl/i18n/__init__.py
new/flufl.i18n-4.1.1/src/flufl/i18n/__init__.py
--- old/flufl.i18n-4.0/src/flufl/i18n/__init__.py 2022-01-12
05:19:13.830374700 +0100
+++ new/flufl.i18n-4.1.1/src/flufl/i18n/__init__.py 2022-09-06
03:55:19.245843000 +0200
@@ -11,7 +11,7 @@
)
-__version__ = '4.0'
+__version__ = '4.1.1'
_public(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/src/flufl/i18n/_substitute.py
new/flufl.i18n-4.1.1/src/flufl/i18n/_substitute.py
--- old/flufl.i18n-4.0/src/flufl/i18n/_substitute.py 2022-01-12
05:19:13.832060600 +0100
+++ new/flufl.i18n-4.1.1/src/flufl/i18n/_substitute.py 2022-09-06
03:55:19.246843000 +0200
@@ -14,7 +14,7 @@
class Template(string.Template):
"""Match any attribute path."""
- idpattern = r'[_a-z][_a-z0-9.]*'
+ idpattern = r'[_a-z][_a-z0-9.]*[_a-z0-9]'
@public
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/test/test_expand.py
new/flufl.i18n-4.1.1/test/test_expand.py
--- old/flufl.i18n-4.0/test/test_expand.py 2020-10-23 00:44:37.558432000
+0200
+++ new/flufl.i18n-4.1.1/test/test_expand.py 2022-09-06 03:55:19.246843000
+0200
@@ -1,8 +1,10 @@
+from types import SimpleNamespace
from unittest.mock import patch
import pytest
from flufl.i18n._expand import expand
+from flufl.i18n._substitute import Template
class FailingTemplateClass:
@@ -18,3 +20,10 @@
with pytest.raises(TypeError):
expand('my-template', {}, FailingTemplateClass)
log.assert_called_once_with('broken template: %s', 'my-template')
+
+
+def test_trailing_dot_is_not_a_placeholder():
+ # GL#12 - $foo.bar.baz. interpreted the trailing dot as part of the
+ # placeholder, but it shouldn't be.
+ expanded = expand('Me and $you.', dict(you='You'), Template)
+ assert expanded == 'Me and You.'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flufl.i18n-4.0/tox.ini new/flufl.i18n-4.1.1/tox.ini
--- old/flufl.i18n-4.0/tox.ini 2022-01-12 05:19:13.835570000 +0100
+++ new/flufl.i18n-4.1.1/tox.ini 2022-09-06 03:55:19.246843000 +0200
@@ -1,16 +1,18 @@
[tox]
-envlist = {py37,py38,py39,py310},qa,docs
+envlist = py{37,38,39,310,311},qa,docs
skip_missing_interpreters = true
isolated_build = true
-passenv = PDM_IGNORE_SAVED_PYTHON=1
[testenv]
+allowlist_externals = pdm
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
PYTHONPATH=""
-deps = pdm
+ MODULE_PATH="src/flufl/i18n"
+ MODULE_NAME="flufl.i18n"
+passenv =
commands =
- pdm config --local use_venv true
+ pdm config --local python.use_venv true
pdm install -G testing
pytest {posargs}
# The following is only useful in a git repository.
@@ -18,18 +20,16 @@
usedevelop = true
[testenv:qa]
-deps = pdm
commands =
- pdm config --local use_venv true
+ pdm config --local python.use_venv true
pdm install -G qa
- flake8 src/flufl/i18n
- isort src/flufl/i18n
- blue --check src/flufl/i18n
- mypy -p flufl.i18n
+ flake8 {env:MODULE_PATH}
+ isort {env:MODULE_PATH}
+ blue --check {env:MODULE_PATH}
+ mypy -p {env:MODULE_NAME}
[testenv:docs]
-deps = pdm
commands =
- pdm config --local use_venv true
+ pdm config --local python.use_venv true
pdm install -G docs
sphinx-build docs build/html