Sync from SUSE:SLFO:Main python-userpath revision 74c78bc4d701bc1bf27fd660615a8794

This commit is contained in:
Adrian Schröter 2024-05-03 23:25:10 +02:00
commit ce2163592e
4 changed files with 140 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

43
python-userpath.changes Normal file
View File

@ -0,0 +1,43 @@
-------------------------------------------------------------------
Mon Mar 14 10:06:06 UTC 2022 - PragmaticLinux <info@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
-------------------------------------------------------------------
Thu Jul 23 11:07:58 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- update to 1.4.1
* Prevent adding paths multiple times on macOS/Linux
* Send CLI errors to stderr instead of stdout
-------------------------------------------------------------------
Mon May 18 09:10:45 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Wed Oct 23 07:06:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix license string
-------------------------------------------------------------------
Mon Oct 21 09:06:03 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Update to v1.3.0
-------------------------------------------------------------------
Wed Sep 11 08:18:27 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Update spec for userpath v1.2.0
-------------------------------------------------------------------
Thu Aug 2 18:59:39 UTC 2018 - aboe76@gmail.com
- python-addduserpath initial packaging

71
python-userpath.spec Normal file
View File

@ -0,0 +1,71 @@
#
# spec file for package python-userpath
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-userpath
Version: 1.7.0
Release: 0
Summary: Tool for adding locations to the user PATH
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(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module click}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
Cross-platform tool for adding locations to the user PATH,
with no elevated privileges required.
%prep
%setup -q -n userpath-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/userpath
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LC_ALL=C.UTF-8
%pytest
%post
%python_install_alternative userpath
%postun
%python_uninstall_alternative userpath
%files %{python_files}
%doc README.rst
%license LICENSE-APACHE LICENSE-MIT
%python_alternative %{_bindir}/userpath
%{python_sitelib}/*
%changelog

BIN
userpath-1.7.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.