Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-evdev for openSUSE:Factory 
checked in at 2023-01-24 19:42:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-evdev (Old)
 and      /work/SRC/openSUSE:Factory/.python-evdev.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-evdev"

Tue Jan 24 19:42:52 2023 rev:12 rq:1060464 version:1.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-evdev/python-evdev.changes        
2022-07-21 11:35:37.123079370 +0200
+++ /work/SRC/openSUSE:Factory/.python-evdev.new.32243/python-evdev.changes     
2023-01-24 20:31:30.976115932 +0100
@@ -1,0 +2,9 @@
+Mon Jan 23 14:25:52 UTC 2023 - Matthias Bach <ma...@marix.org> - 1.6.1
+
+- Update to 1.6.1
+  * No changelog was made available.
+- Fix source URL as upstream no longer creates Github releases but
+  only tags.
+- Add a _service file for easier source download.
+
+-------------------------------------------------------------------

Old:
----
  python-evdev-1.6.0.tar.gz

New:
----
  _service
  python-evdev-1.6.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-evdev.spec ++++++
--- /var/tmp/diff_new_pack.Kjt5hS/_old  2023-01-24 20:31:31.672119615 +0100
+++ /var/tmp/diff_new_pack.Kjt5hS/_new  2023-01-24 20:31:31.676119637 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-evdev
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,14 @@
 %define modname evdev
 %define skip_python2 1
 Name:           python-evdev
-Version:        1.6.0
+Version:        1.6.1
 Release:        0
 Summary:        Python bindings to the Linux input handling subsystem
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/gvalkov/python-evdev
 # Source needs to be pulled form Github as the source distribution on PyPI 
lacks the test directory
-Source:         
https://github.com/gvalkov/python-evdev/archive/v%{version}.tar.gz#/python-evdev-%{version}.tar.gz
+Source:         
https://github.com/gvalkov/python-evdev/archive/refs/tags/v%{version}.tar.gz#/python-evdev-%{version}.tar.gz
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}

++++++ _service ++++++
<services>
  <service name="download_files" mode="disabled" />
</services>

++++++ python-evdev-1.6.0.tar.gz -> python-evdev-1.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.6.0/LICENSE 
new/python-evdev-1.6.1/LICENSE
--- old/python-evdev-1.6.0/LICENSE      2022-07-17 23:22:58.000000000 +0200
+++ new/python-evdev-1.6.1/LICENSE      2023-01-20 16:15:19.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright (c) 2012-2016 Georgi Valkov. All rights reserved.
+Copyright (c) 2012-2023 Georgi Valkov. All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.6.0/docs/changelog.rst 
new/python-evdev-1.6.1/docs/changelog.rst
--- old/python-evdev-1.6.0/docs/changelog.rst   2022-07-17 23:22:58.000000000 
+0200
+++ new/python-evdev-1.6.1/docs/changelog.rst   2023-01-20 16:15:19.000000000 
+0100
@@ -1,6 +1,12 @@
 Changelog
 ---------
 
+1.6.1 (Jan 20, 2023)
+==================
+
+- Fix generation of ``ecodes.c`` when the path to ````sys.executable`` 
contains spaces.
+
+
 1.6.0 (Jul 17, 2022)
 ==================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.6.0/docs/conf.py 
new/python-evdev-1.6.1/docs/conf.py
--- old/python-evdev-1.6.0/docs/conf.py 2022-07-17 23:22:58.000000000 +0200
+++ new/python-evdev-1.6.1/docs/conf.py 2023-01-20 16:15:19.000000000 +0100
@@ -61,7 +61,7 @@
 # built documents.
 #
 # The full version, including alpha/beta/rc tags.
-release = '1.6.0'
+release = '1.6.1'
 
 # The short X.Y version.
 version = release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.6.0/docs/tutorial.rst 
new/python-evdev-1.6.1/docs/tutorial.rst
--- old/python-evdev-1.6.0/docs/tutorial.rst    2022-07-17 23:22:58.000000000 
+0200
+++ new/python-evdev-1.6.1/docs/tutorial.rst    2023-01-20 16:15:19.000000000 
+0100
@@ -445,7 +445,7 @@
         ecodes.FF_RUMBLE, -1, 0,
         ff.Trigger(0, 0),
         ff.Replay(duration_ms, 0),
-        ff.EffectType(ff_rumble_effect=rumble)
+        effect_type
     )
 
     repeat_count = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.6.0/evdev/genecodes.py 
new/python-evdev-1.6.1/evdev/genecodes.py
--- old/python-evdev-1.6.0/evdev/genecodes.py   2022-07-17 23:22:58.000000000 
+0200
+++ new/python-evdev-1.6.1/evdev/genecodes.py   2023-01-20 16:15:19.000000000 
+0100
@@ -47,7 +47,6 @@
     { NULL, NULL, 0, NULL}
 };
 
-#if PY_MAJOR_VERSION >= 3
 static struct PyModuleDef moduledef = {
     PyModuleDef_HEAD_INIT,
     MODULE_NAME,
@@ -59,38 +58,17 @@
     NULL,        /* m_clear */
     NULL,        /* m_free */
 };
-#endif
 
-static PyObject *
-moduleinit(void)
+PyMODINIT_FUNC
+PyInit__ecodes(void)
 {
-
-#if PY_MAJOR_VERSION >= 3
     PyObject* m = PyModule_Create(&moduledef);
-#else
-    PyObject* m = Py_InitModule3(MODULE_NAME, MethodTable, MODULE_HELP);
-#endif
-
     if (m == NULL) return NULL;
 
 %s
 
     return m;
 }
-
-#if PY_MAJOR_VERSION >= 3
-PyMODINIT_FUNC
-PyInit__ecodes(void)
-{
-    return moduleinit();
-}
-#else
-PyMODINIT_FUNC
-init_ecodes(void)
-{
-    moduleinit();
-}
-#endif
 '''
 
 def parse_header(header):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.6.0/setup.cfg 
new/python-evdev-1.6.1/setup.cfg
--- old/python-evdev-1.6.0/setup.cfg    2022-07-17 23:22:58.000000000 +0200
+++ new/python-evdev-1.6.1/setup.cfg    2023-01-20 16:15:19.000000000 +0100
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 1.6.0
+current_version = 1.6.1
 message = Bump version: {current_version} -> {new_version}
 commit = True
 tag = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.6.0/setup.py 
new/python-evdev-1.6.1/setup.py
--- old/python-evdev-1.6.0/setup.py     2022-07-17 23:22:58.000000000 +0200
+++ new/python-evdev-1.6.1/setup.py     2023-01-20 16:15:19.000000000 +0100
@@ -1,23 +1,19 @@
 #!/usr/bin/env python
-# encoding: utf-8
 
 import os
 import sys
 import textwrap
+from pathlib import Path
 
-from os.path import abspath, dirname, join as pjoin
 
 #-----------------------------------------------------------------------------
-try:
-    from setuptools import setup, Extension, Command
-    from setuptools.command import build_ext as _build_ext
-except ImportError:
-    from distutils.core import setup, Extension, Command
-    from distutils.command import build_ext as _build_ext
+from setuptools import setup, Extension, Command
+from setuptools.command import build_ext as _build_ext
 
 
 #-----------------------------------------------------------------------------
-here = abspath(dirname(__file__))
+curdir = Path(__file__).resolve().parent
+ecodes_path = curdir / 'evdev/ecodes.c'
 
 #-----------------------------------------------------------------------------
 classifiers = [
@@ -28,6 +24,7 @@
     'Programming Language :: Python :: 3.8',
     'Programming Language :: Python :: 3.9',
     'Programming Language :: Python :: 3.10',
+    'Programming Language :: Python :: 3.11',
     'Operating System :: POSIX :: Linux',
     'Intended Audience :: Developers',
     'Topic :: Software Development :: Libraries',
@@ -44,10 +41,10 @@
 #-----------------------------------------------------------------------------
 kw = {
     'name':                 'evdev',
-    'version':              '1.6.0',
+    'version':              '1.6.1',
 
     'description':          'Bindings to the Linux input handling subsystem',
-    'long_description':     open(pjoin(here, 'README.rst')).read(),
+    'long_description':     (curdir / 'README.rst').read_text(),
 
     'author':               'Georgi Valkov',
     'author_email':         'georgi.t.val...@gmail.com',
@@ -99,11 +96,12 @@
         sys.stderr.write(textwrap.dedent(msg))
         sys.exit(1)
 
-    from subprocess import check_call
+    from subprocess import run
 
-    print('writing ecodes.c (using %s)' % ' '.join(headers))
-    cmd = '%s genecodes.py %s > ecodes.c' % (sys.executable, ' '.join(headers))
-    check_call(cmd, cwd="%s/evdev" % here, shell=True)
+    print('writing %s (using %s)' % (ecodes_path, ' '.join(headers)))
+    with ecodes_path.open('w') as fh:
+        cmd = [sys.executable, 'evdev/genecodes.py', *headers]
+        run(cmd, check=True, stdout=fh)
 
 
 #-----------------------------------------------------------------------------
@@ -127,11 +125,9 @@
 
 class build_ext(_build_ext.build_ext):
     def has_ecodes(self):
-        ecodes_path = os.path.join(here, 'evdev/ecodes.c')
-        res = os.path.exists(ecodes_path)
-        if res:
+        if ecodes_path.exists():
             print('ecodes.c already exists ... skipping build_ecodes')
-        return not res
+        return not ecodes_path.exists()
 
     def run(self):
         for cmd_name in self.get_sub_commands():

Reply via email to