Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-calmjs.parse for
openSUSE:Factory checked in at 2025-11-17 12:14:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-calmjs.parse (Old)
and /work/SRC/openSUSE:Factory/.python-calmjs.parse.new.2061 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-calmjs.parse"
Mon Nov 17 12:14:02 2025 rev:11 rq:1317843 version:1.3.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-calmjs.parse/python-calmjs.parse.changes
2025-06-16 11:13:05.832827044 +0200
+++
/work/SRC/openSUSE:Factory/.python-calmjs.parse.new.2061/python-calmjs.parse.changes
2025-11-17 12:20:38.762856634 +0100
@@ -1,0 +2,13 @@
+Fri Nov 14 13:34:45 UTC 2025 - John Paul Adrian Glaubitz
<[email protected]>
+
+- Update to 1.3.4
+ * Use `importlib` where available.
+ * Bump python versions for CI.
+ * beginning calmjs.parse-1.3.4-pre
+ * Changelog
+ * Clean up test matrix.
+ * Include Python 3.14 for CI
+ * Package metadata.
+ * calmjs.parse-1.3.4
+
+-------------------------------------------------------------------
Old:
----
1.3.3.tar.gz
New:
----
1.3.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-calmjs.parse.spec ++++++
--- /var/tmp/diff_new_pack.mSoQ9z/_old 2025-11-17 12:20:39.610892394 +0100
+++ /var/tmp/diff_new_pack.mSoQ9z/_new 2025-11-17 12:20:39.614892563 +0100
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-calmjs.parse
-Version: 1.3.3
+Version: 1.3.4
Release: 0
Summary: Various parsers for ECMA standards
License: MIT
++++++ 1.3.3.tar.gz -> 1.3.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/calmjs.parse-1.3.3/.github/workflows/build.yml
new/calmjs.parse-1.3.4/.github/workflows/build.yml
--- old/calmjs.parse-1.3.3/.github/workflows/build.yml 2025-01-29
06:46:37.000000000 +0100
+++ new/calmjs.parse-1.3.4/.github/workflows/build.yml 2025-11-08
06:13:34.000000000 +0100
@@ -10,7 +10,7 @@
- 1.2.x
- 1.3.x
tags:
- - 1.3.3
+ - 1.3.4
pull_request:
branches:
- master
@@ -21,22 +21,23 @@
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ubuntu-latest, macos-latest]
- python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.10"]
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ # This should include the latest 3 stable releases
+ python-version: ["3.12", "3.13", "3.14"]
include:
- - os: windows-latest
+ # Use Linux only to test older releases to limit CI time
+ - os: ubuntu-latest
+ python-version: "3.9"
+ - os: ubuntu-latest
+ python-version: "3.10"
+ - os: ubuntu-latest
python-version: "3.11"
+
+ # Include pypy3.11 for Windows and Linux
- os: windows-latest
- python-version: "3.12"
- - os: windows-latest
- python-version: "3.13"
- exclude:
- - os: macos-latest
- python-version: 3.9
- - os: macos-latest
- python-version: 3.10
- - os: macos-latest
- python-version: "pypy3.10"
+ python-version: "pypy3.11"
+ - os: ubuntu-latest
+ python-version: "pypy3.11"
steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/calmjs.parse-1.3.3/CHANGES.rst
new/calmjs.parse-1.3.4/CHANGES.rst
--- old/calmjs.parse-1.3.3/CHANGES.rst 2025-01-29 06:46:37.000000000 +0100
+++ new/calmjs.parse-1.3.4/CHANGES.rst 2025-11-08 06:13:34.000000000 +0100
@@ -1,6 +1,16 @@
Changelog
=========
+1.3.4 - 2025-11-08
+------------------
+
+- To silent ``pkg_resoruces`` deprecation warnings, use ``importlib``
+ when available, with ``pkg_resources`` being the fallback. [
+ `#47 <https://github.com/calmjs/calmjs.parse/issues/47>`_
+ `#48 <https://github.com/calmjs/calmjs.parse/issues/48>`_
+ ]
+- Ensure Python 3.14 support.
+
1.3.3 - 2025-01-29
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/calmjs.parse-1.3.3/README.rst
new/calmjs.parse-1.3.4/README.rst
--- old/calmjs.parse-1.3.3/README.rst 2025-01-29 06:46:37.000000000 +0100
+++ new/calmjs.parse-1.3.4/README.rst 2025-11-08 06:13:34.000000000 +0100
@@ -5,12 +5,12 @@
ECMAScript; a near feature complete fork of |slimit|_. A CLI front-end
for this package is shipped separately as |crimp|_.
-.. image::
https://github.com/calmjs/calmjs.parse/actions/workflows/build.yml/badge.svg?branch=1.3.3
- :target:
https://github.com/calmjs/calmjs.parse/actions/workflows/build.yml?query=branch:1.3.3
-.. image::
https://ci.appveyor.com/api/projects/status/5dj8dnu9gmj02msu/branch/1.3.3?svg=true
- :target:
https://ci.appveyor.com/project/metatoaster/calmjs-parse/branch/1.3.3
-.. image::
https://coveralls.io/repos/github/calmjs/calmjs.parse/badge.svg?branch=1.3.3
- :target: https://coveralls.io/github/calmjs/calmjs.parse?branch=1.3.3
+.. image::
https://github.com/calmjs/calmjs.parse/actions/workflows/build.yml/badge.svg?branch=1.3.4
+ :target:
https://github.com/calmjs/calmjs.parse/actions/workflows/build.yml?query=branch:1.3.4
+.. image::
https://ci.appveyor.com/api/projects/status/5dj8dnu9gmj02msu/branch/1.3.4?svg=true
+ :target:
https://ci.appveyor.com/project/metatoaster/calmjs-parse/branch/1.3.4
+.. image::
https://coveralls.io/repos/github/calmjs/calmjs.parse/badge.svg?branch=1.3.4
+ :target: https://coveralls.io/github/calmjs/calmjs.parse?branch=1.3.4
.. |calmjs.parse| replace:: ``calmjs.parse``
.. |crimp| replace:: ``crimp``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/calmjs.parse-1.3.3/setup.py
new/calmjs.parse-1.3.4/setup.py
--- old/calmjs.parse-1.3.3/setup.py 2025-01-29 06:46:37.000000000 +0100
+++ new/calmjs.parse-1.3.4/setup.py 2025-11-08 06:13:34.000000000 +0100
@@ -21,7 +21,7 @@
# Attributes
-version = '1.3.3'
+version = '1.3.4'
classifiers = """
Development Status :: 5 - Production/Stable
@@ -40,6 +40,7 @@
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
+Programming Language :: Python :: 3.14
""".strip().splitlines()
long_description = (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/calmjs.parse-1.3.3/src/calmjs/parse/tests/__init__.py
new/calmjs.parse-1.3.4/src/calmjs/parse/tests/__init__.py
--- old/calmjs.parse-1.3.3/src/calmjs/parse/tests/__init__.py 2025-01-29
06:46:37.000000000 +0100
+++ new/calmjs.parse-1.3.4/src/calmjs/parse/tests/__init__.py 2025-11-08
06:13:34.000000000 +0100
@@ -8,7 +8,6 @@
from io import StringIO
from os.path import basename
from os.path import dirname
-from pkg_resources import get_distribution
examples = {
'/tmp/html4.js': dedent("""
@@ -63,14 +62,21 @@
doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
)
- dist = get_distribution('calmjs.parse')
- if dist:
- if dist.has_metadata('PKG-INFO'):
- pkgdesc = dist.get_metadata('PKG-INFO').replace('\r', '')
- elif dist.has_metadata('METADATA'):
- pkgdesc = dist.get_metadata('METADATA').replace('\r', '')
- else:
- pkgdesc = ''
+ try:
+ from importlib import metadata
+ pkgdesc = metadata.metadata('calmjs.parse').get('description')
+ pkgdesc = pkgdesc.replace('\r', '') if pkgdesc else ''
+ except ImportError:
+ from pkg_resources import get_distribution
+ dist = get_distribution('calmjs.parse')
+ if dist:
+ if dist.has_metadata('PKG-INFO'):
+ pkgdesc = dist.get_metadata('PKG-INFO').replace('\r', '')
+ elif dist.has_metadata('METADATA'):
+ pkgdesc = dist.get_metadata('METADATA').replace('\r', '')
+ else:
+ pkgdesc = ''
+
pkgdesc_tests = [
t for t in parser.parse(pkgdesc) if isinstance(t, doctest.Example)]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/calmjs.parse-1.3.3/src/calmjs/parse/utils.py
new/calmjs.parse-1.3.4/src/calmjs/parse/utils.py
--- old/calmjs.parse-1.3.3/src/calmjs/parse/utils.py 2025-01-29
06:46:37.000000000 +0100
+++ new/calmjs.parse-1.3.4/src/calmjs/parse/utils.py 2025-11-08
06:13:34.000000000 +0100
@@ -9,20 +9,47 @@
from os.path import normpath
from os.path import relpath
+
+class _Distribution(object):
+ def __init__(self, project_name, version):
+ self.project_name = project_name
+ self.version = version
+
+
try:
- from pkg_resources import working_set
- from pkg_resources import Requirement
- ply_dist = working_set.find(Requirement.parse('ply'))
- # note that for **extremely** ancient versions of setuptools, e.g.
- # setuptools<0.6c11, or some very non-standard environment that does
- # not include the required metadata (e.g. pyinstaller without the
- # required metadata), will require the following workaround...
- if ply_dist is None: # pragma: no cover
- from pkg_resources import Distribution
- import ply
- ply_dist = Distribution(project_name='ply', version=ply.__version__)
+ from importlib import metadata
+ try:
+ ply_version = metadata.version('ply')
+ except Exception: # pragma: no cover
+ ply_dist = None
+ else:
+ ply_dist = _Distribution(project_name='ply', version=ply_version)
except ImportError: # pragma: no cover
- ply_dist = None
+ try:
+ from pkg_resources import working_set
+ from pkg_resources import Requirement
+ ply_dist = working_set.find(Requirement.parse('ply'))
+ # note that for **extremely** ancient versions of setuptools, e.g.
+ # setuptools<0.6c11, or some very non-standard environment that does
+ # not include the required metadata (e.g. pyinstaller without the
+ # required metadata), will require the following workaround...
+ if ply_dist:
+ # convert to our private version class
+ ply_dist = _Distribution(
+ project_name='ply',
+ version=ply_dist.version,
+ )
+ else:
+ try:
+ import ply
+ ply_dist = _Distribution(
+ project_name='ply',
+ version=ply.__version__,
+ )
+ except ImportError:
+ ply_dist = None
+ except ImportError: # pragma: no cover
+ ply_dist = None
py_major = sys.version_info.major
unicode = unicode if py_major < 3 else None # noqa: F821