Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-userpath for openSUSE:Factory checked in at 2022-03-14 19:35:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-userpath (Old) and /work/SRC/openSUSE:Factory/.python-userpath.new.25692 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-userpath" Mon Mar 14 19:35:50 2022 rev:4 rq:961706 version:1.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-userpath/python-userpath.changes 2020-07-24 10:07:35.322027589 +0200 +++ /work/SRC/openSUSE:Factory/.python-userpath.new.25692/python-userpath.changes 2022-03-14 19:37:56.942189881 +0100 @@ -1,0 +2,12 @@ +Mon Mar 14 10:06:06 UTC 2022 - PragmaticLinux <i...@pragmaticlinux.com> + +- update to 1.7.0 + * Fix path normalization to be aware of case-insensitive + platforms and symlinks. + * Use locale's encoding when handling output from subprocesses + * Modify bash start-up files based on their existence + * Remove distro dependency + * Fix fallback mechanism for detecting the name of the parent + process + +------------------------------------------------------------------- Old: ---- userpath-1.4.1.tar.gz New: ---- userpath-1.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-userpath.spec ++++++ --- /var/tmp/diff_new_pack.HFgVzv/_old 2022-03-14 19:37:57.346190365 +0100 +++ /var/tmp/diff_new_pack.HFgVzv/_new 2022-03-14 19:37:57.354190375 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-userpath # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,23 +18,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-userpath -Version: 1.4.1 +Version: 1.7.0 Release: 0 Summary: Tool for adding locations to the user PATH -License: MIT OR Apache-2.0 +License: Apache-2.0 OR MIT URL: https://github.com/ofek/userpath Source: https://files.pythonhosted.org/packages/source/u/userpath/userpath-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click -Requires: python-distro Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module click} -BuildRequires: %{python_module distro} BuildRequires: %{python_module pytest} # /SECTION %python_subpackages ++++++ userpath-1.4.1.tar.gz -> userpath-1.7.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/HISTORY.rst new/userpath-1.7.0/HISTORY.rst --- old/userpath-1.4.1/HISTORY.rst 2019-10-20 15:31:23.000000000 +0200 +++ new/userpath-1.7.0/HISTORY.rst 2021-07-24 17:18:19.000000000 +0200 @@ -4,6 +4,39 @@ master ^^^^^^ +1.7.0 +^^^^^ + +- Fix path normalization to be aware of case-insensitive platforms and symlinks. + +1.6.0 +^^^^^ + +- Use locale's encoding when handling output from subprocesses + +1.5.0 +^^^^^ + +- Modify bash start-up files based on their existence +- Remove ``distro`` dependency + +1.4.2 +^^^^^ + +- Fix fallback mechanism for detecting the name of the parent process + +1.4.1 +^^^^^ + +- Fix PATH registry key type on Windows + +1.4.0 +^^^^^ + +- Fix duplicating system paths on Windows +- Prevent adding paths multiple times on macOS/Linux +- Send CLI errors to stderr instead of stdout + 1.3.0 (2019-10-20) ^^^^^^^^^^^^^^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/PKG-INFO new/userpath-1.7.0/PKG-INFO --- old/userpath-1.4.1/PKG-INFO 2020-06-25 18:19:01.448213800 +0200 +++ new/userpath-1.7.0/PKG-INFO 2021-07-24 17:21:02.499904600 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: userpath -Version: 1.4.1 +Version: 1.7.0 Summary: Cross-platform tool for adding locations to the user PATH, no elevated privileges required! Home-page: https://github.com/ofek/userpath Author: Ofek Lev @@ -124,6 +124,32 @@ Important changes are emphasized. + 1.7.0 + ^^^^^ + + - Fix path normalization to be aware of case-insensitive platforms and symlinks. + + 1.6.0 + ^^^^^ + + - Use locale's encoding when handling output from subprocesses + + 1.5.0 + ^^^^^ + + - Modify bash start-up files based on their existence + - Remove ``distro`` dependency + + 1.4.2 + ^^^^^ + + - Fix fallback mechanism for detecting the name of the parent process + + 1.4.1 + ^^^^^ + + - Fix PATH registry key type on Windows + 1.4.0 ^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/README.rst new/userpath-1.7.0/README.rst --- old/userpath-1.4.1/README.rst 2020-05-09 16:59:33.000000000 +0200 +++ new/userpath-1.7.0/README.rst 2021-07-24 17:18:40.000000000 +0200 @@ -114,6 +114,32 @@ Important changes are emphasized. +1.7.0 +^^^^^ + +- Fix path normalization to be aware of case-insensitive platforms and symlinks. + +1.6.0 +^^^^^ + +- Use locale's encoding when handling output from subprocesses + +1.5.0 +^^^^^ + +- Modify bash start-up files based on their existence +- Remove ``distro`` dependency + +1.4.2 +^^^^^ + +- Fix fallback mechanism for detecting the name of the parent process + +1.4.1 +^^^^^ + +- Fix PATH registry key type on Windows + 1.4.0 ^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/setup.py new/userpath-1.7.0/setup.py --- old/userpath-1.4.1/setup.py 2020-06-25 18:15:19.000000000 +0200 +++ new/userpath-1.7.0/setup.py 2021-05-08 14:55:24.000000000 +0200 @@ -51,7 +51,6 @@ ], install_requires=REQUIRES, - extras_require={':platform_system == "Linux"': ['distro']}, packages=['userpath'], entry_points={ 'console_scripts': [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/userpath/__init__.py new/userpath-1.7.0/userpath/__init__.py --- old/userpath-1.4.1/userpath/__init__.py 2020-06-25 18:14:38.000000000 +0200 +++ new/userpath-1.7.0/userpath/__init__.py 2021-07-24 17:17:49.000000000 +0200 @@ -1,4 +1,4 @@ from .core import append, in_new_path, need_shell_restart, prepend from .utils import in_current_path -__version__ = '1.4.1' +__version__ = '1.7.0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/userpath/shells.py new/userpath-1.7.0/userpath/shells.py --- old/userpath-1.4.1/userpath/shells.py 2019-10-20 05:34:42.000000000 +0200 +++ new/userpath-1.7.0/userpath/shells.py 2021-05-08 14:55:24.000000000 +0200 @@ -1,9 +1,5 @@ from os import path, pathsep -try: - import distro -except ImportError: # pragma: no cover - distro = None DEFAULT_SHELLS = ('bash', 'sh') @@ -37,13 +33,16 @@ configs = {path.join(self.home, '.bashrc'): contents} # https://github.com/ofek/userpath/issues/3#issuecomment-492491977 - if distro and distro.id() == 'ubuntu': # pragma: no cover - login_config = path.join(self.home, '.profile') + profile_path = path.join(self.home, '.profile') + bash_profile_path = path.join(self.home, '.bash_profile') + + if path.exists(profile_path) and not path.exists(bash_profile_path): + login_config = profile_path else: # NOTE: If it is decided in future that we want to make a distinction between # login and non-login shells, be aware that macOS will still need this since # Terminal.app runs a login shell by default for each new terminal window. - login_config = path.join(self.home, '.bash_profile') + login_config = bash_profile_path configs[login_config] = contents diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/userpath/utils.py new/userpath-1.7.0/userpath/utils.py --- old/userpath-1.4.1/userpath/utils.py 2019-07-18 17:24:26.000000000 +0200 +++ new/userpath-1.7.0/userpath/utils.py 2021-07-24 17:16:21.000000000 +0200 @@ -1,21 +1,22 @@ +import locale import os import subprocess try: import psutil except Exception: - pass + psutil = None def normpath(location): if isinstance(location, (list, tuple)): return os.pathsep.join(normpath(l) for l in location) - return os.path.abspath(os.path.expanduser(location.strip(';:'))) + return os.path.normcase(os.path.realpath(os.path.expanduser(location.strip(';:')))) def location_in_path(location, path): - return normpath(location) in (os.path.normpath(p) for p in path.split(os.pathsep)) + return normpath(location) in (normpath(p) for p in path.split(os.pathsep)) def in_current_path(location): @@ -30,7 +31,7 @@ def get_flat_output(command, sep=os.pathsep, **kwargs): process = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs) - output = process.communicate()[0].decode('utf-8').strip() + output = process.communicate()[0].decode(locale.getpreferredencoding(False)).strip() # We do this because the output may contain new lines. lines = [line.strip() for line in output.splitlines()] @@ -51,7 +52,8 @@ pass ppid = os.getppid() - return subprocess.check_output(['ps', '-o', 'cmd=', str(ppid)]).decode('utf-8').strip() + process_name = subprocess.check_output(['ps', '-o', 'args=', str(ppid)]).decode('utf-8') + return process_name.strip().lstrip("-") except Exception: pass diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/userpath.egg-info/PKG-INFO new/userpath-1.7.0/userpath.egg-info/PKG-INFO --- old/userpath-1.4.1/userpath.egg-info/PKG-INFO 2020-06-25 18:19:01.000000000 +0200 +++ new/userpath-1.7.0/userpath.egg-info/PKG-INFO 2021-07-24 17:21:02.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: userpath -Version: 1.4.1 +Version: 1.7.0 Summary: Cross-platform tool for adding locations to the user PATH, no elevated privileges required! Home-page: https://github.com/ofek/userpath Author: Ofek Lev @@ -124,6 +124,32 @@ Important changes are emphasized. + 1.7.0 + ^^^^^ + + - Fix path normalization to be aware of case-insensitive platforms and symlinks. + + 1.6.0 + ^^^^^ + + - Use locale's encoding when handling output from subprocesses + + 1.5.0 + ^^^^^ + + - Modify bash start-up files based on their existence + - Remove ``distro`` dependency + + 1.4.2 + ^^^^^ + + - Fix fallback mechanism for detecting the name of the parent process + + 1.4.1 + ^^^^^ + + - Fix PATH registry key type on Windows + 1.4.0 ^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/userpath-1.4.1/userpath.egg-info/requires.txt new/userpath-1.7.0/userpath.egg-info/requires.txt --- old/userpath-1.4.1/userpath.egg-info/requires.txt 2020-06-25 18:19:01.000000000 +0200 +++ new/userpath-1.7.0/userpath.egg-info/requires.txt 2021-07-24 17:21:02.000000000 +0200 @@ -1,4 +1 @@ click - -[:platform_system == "Linux"] -distro