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 2023-08-10 15:34:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-userpath (Old)
and /work/SRC/openSUSE:Factory/.python-userpath.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-userpath"
Thu Aug 10 15:34:43 2023 rev:5 rq:1103272 version:1.9.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-userpath/python-userpath.changes
2022-03-14 19:37:56.942189881 +0100
+++
/work/SRC/openSUSE:Factory/.python-userpath.new.11712/python-userpath.changes
2023-08-10 15:34:56.048550579 +0200
@@ -1,0 +2,11 @@
+Thu Aug 10 07:10:31 UTC 2023 - Daniel Garcia <[email protected]>
+
+- add sle15_python_module_pythons (jsc#PED-68, jsc#PED-5573)
+- update to 1.9.0
+ * Ignore the current directory for path detection on Windows
+ * On non-Windows systems only modify login shells
+- v1.8.0
+ * Broadcast WM_SETTINGCHANGE on Windows
+ * Drop Python 2.7 & 3.6
+
+-------------------------------------------------------------------
Old:
----
userpath-1.7.0.tar.gz
New:
----
userpath-1.9.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-userpath.spec ++++++
--- /var/tmp/diff_new_pack.YRhUv3/_old 2023-08-10 15:34:56.864555668 +0200
+++ /var/tmp/diff_new_pack.YRhUv3/_new 2023-08-10 15:34:56.872555718 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-userpath
#
-# 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
@@ -16,15 +16,17 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?sle15_python_module_pythons}
Name: python-userpath
-Version: 1.7.0
+Version: 1.9.0
Release: 0
Summary: Tool for adding locations to the user PATH
-License: Apache-2.0 OR MIT
+License: 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: %{python_module hatchling}
+BuildRequires: %{python_module pip}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click
@@ -42,13 +44,13 @@
with no elevated privileges required.
%prep
-%setup -q -n userpath-%{version}
+%autosetup -p1 -n userpath-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/userpath
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -63,9 +65,10 @@
%python_uninstall_alternative userpath
%files %{python_files}
-%doc README.rst
-%license LICENSE-APACHE LICENSE-MIT
+%doc README.md
+%license LICENSE.txt
%python_alternative %{_bindir}/userpath
-%{python_sitelib}/*
+%{python_sitelib}/userpath
+%{python_sitelib}/userpath-%{version}*-info
%changelog
++++++ userpath-1.7.0.tar.gz -> userpath-1.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/.codecov.yml
new/userpath-1.9.0/.codecov.yml
--- old/userpath-1.7.0/.codecov.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/userpath-1.9.0/.codecov.yml 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,9 @@
+comment: false
+coverage:
+ status:
+ patch:
+ default:
+ target: '80'
+ project:
+ default:
+ target: '80'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/.coveragerc
new/userpath-1.9.0/.coveragerc
--- old/userpath-1.7.0/.coveragerc 1970-01-01 01:00:00.000000000 +0100
+++ new/userpath-1.9.0/.coveragerc 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,28 @@
+[run]
+data_file = tests/coverage/.coverage
+branch = True
+parallel = True
+source =
+ userpath
+ tests
+omit =
+ userpath/__main__.py
+ userpath/cli.py
+
+[paths]
+userpath =
+ userpath
+ /home/userpath/userpath
+ c:\*\userpath\userpath
+tests =
+ tests
+ /home/userpath/tests
+ c:\*\userpath\tests
+
+[report]
+exclude_lines =
+ no cov
+ no qa
+ noqa
+ pragma: no cover
+ if __name__ == .__main__.:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/.gitattributes
new/userpath-1.9.0/.gitattributes
--- old/userpath-1.7.0/.gitattributes 1970-01-01 01:00:00.000000000 +0100
+++ new/userpath-1.9.0/.gitattributes 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,2 @@
+# Auto detect text files and perform LF normalization
+* text=auto
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/.github/FUNDING.yml
new/userpath-1.9.0/.github/FUNDING.yml
--- old/userpath-1.7.0/.github/FUNDING.yml 1970-01-01 01:00:00.000000000
+0100
+++ new/userpath-1.9.0/.github/FUNDING.yml 2020-02-02 01:00:00.000000000
+0100
@@ -0,0 +1,5 @@
+github:
+- ofek
+custom:
+- https://ofek.dev/donate/
+- https://paypal.me/ofeklev
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/.github/workflows/build.yml
new/userpath-1.9.0/.github/workflows/build.yml
--- old/userpath-1.7.0/.github/workflows/build.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/userpath-1.9.0/.github/workflows/build.yml 2020-02-02
01:00:00.000000000 +0100
@@ -0,0 +1,48 @@
+name: build
+
+on:
+ push:
+ tags:
+ - v*
+
+concurrency:
+ group: build-${{ github.head_ref }}
+
+jobs:
+ build:
+ name: Build wheels and source distribution
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install build dependencies
+ run: python -m pip install --upgrade build
+
+ - name: Build
+ run: python -m build
+
+ - uses: actions/upload-artifact@v3
+ with:
+ name: artifacts
+ path: dist/*
+ if-no-files-found: error
+
+ publish:
+ name: Publish release
+ needs:
+ - build
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ name: artifacts
+ path: dist
+
+ - name: Push build artifacts to PyPI
+ uses: pypa/[email protected]
+ with:
+ skip-existing: true
+ user: __token__
+ password: ${{ secrets.PYPI_API_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/.github/workflows/test.yml
new/userpath-1.9.0/.github/workflows/test.yml
--- old/userpath-1.7.0/.github/workflows/test.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/userpath-1.9.0/.github/workflows/test.yml 2020-02-02
01:00:00.000000000 +0100
@@ -0,0 +1,40 @@
+name: test
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+concurrency:
+ group: test-${{ github.head_ref }}
+ cancel-in-progress: true
+
+jobs:
+ run:
+ name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os,
'windows-') && 'Windows' || 'Linux' }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ python-version: ["3.8", "3.9", "3.10", "3.11"]
+
+ env:
+ PYTHON_VERSION: ${{ matrix.python-version }}
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install test dependencies
+ run: pip install --upgrade tox
+
+ - name: Run tests
+ run: tox -e ${{ matrix.python-version }},coverage
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/.gitignore
new/userpath-1.9.0/.gitignore
--- old/userpath-1.7.0/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/userpath-1.9.0/.gitignore 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,12 @@
+*.log
+*.pyc
+.cache/
+.coverage
+.idea/
+.tox/
+.vscode/
+userpath.egg-info/
+build/
+dist/
+docs/build/
+wheelhouse/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/HISTORY.rst
new/userpath-1.9.0/HISTORY.rst
--- old/userpath-1.7.0/HISTORY.rst 2021-07-24 17:18:19.000000000 +0200
+++ new/userpath-1.9.0/HISTORY.rst 2020-02-02 01:00:00.000000000 +0100
@@ -4,6 +4,19 @@
master
^^^^^^
+1.9.0
+^^^^^
+
+- Ignore the current directory for path detection on Windows
+- On non-Windows systems only modify login shells
+
+1.8.0
+^^^^^
+
+- Broadcast WM_SETTINGCHANGE on Windows
+- zsh: respect ZDOTDIR env var
+- Drop Python 2.7 & 3.6
+
1.7.0
^^^^^
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/LICENSE-APACHE
new/userpath-1.9.0/LICENSE-APACHE
--- old/userpath-1.7.0/LICENSE-APACHE 2019-05-25 21:26:48.000000000 +0200
+++ new/userpath-1.9.0/LICENSE-APACHE 1970-01-01 01:00:00.000000000 +0100
@@ -1,178 +0,0 @@
-Copyright 2017 Ofek Lev
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/LICENSE-MIT
new/userpath-1.9.0/LICENSE-MIT
--- old/userpath-1.7.0/LICENSE-MIT 2019-05-25 21:26:48.000000000 +0200
+++ new/userpath-1.9.0/LICENSE-MIT 1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-Copyright (c) 2017 Ofek Lev
-
-MIT License
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/LICENSE.txt
new/userpath-1.9.0/LICENSE.txt
--- old/userpath-1.7.0/LICENSE.txt 1970-01-01 01:00:00.000000000 +0100
+++ new/userpath-1.9.0/LICENSE.txt 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) 2017-present Ofek Lev <[email protected]>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/MANIFEST.in
new/userpath-1.9.0/MANIFEST.in
--- old/userpath-1.7.0/MANIFEST.in 2019-10-20 05:34:42.000000000 +0200
+++ new/userpath-1.9.0/MANIFEST.in 1970-01-01 01:00:00.000000000 +0100
@@ -1,9 +0,0 @@
-include LICENSE-APACHE
-include LICENSE-MIT
-include README.rst
-include HISTORY.rst
-include requirements*.txt
-include tox.ini
-recursive-include tests *.py
-recursive-include tests *.txt
-recursive-include tests *.yaml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/PKG-INFO new/userpath-1.9.0/PKG-INFO
--- old/userpath-1.7.0/PKG-INFO 2021-07-24 17:21:02.499904600 +0200
+++ new/userpath-1.9.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,192 +1,89 @@
-Metadata-Version: 1.2
-Name: userpath
-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
-Author-email: [email protected]
-Maintainer: Ofek Lev
-Maintainer-email: [email protected]
-License: MIT OR Apache-2.0
-Description: userpath
- ========
-
- .. image::
https://img.shields.io/travis/ofek/userpath/master.svg?logo=travis&label=Travis%20CI
- :target: https://travis-ci.org/ofek/userpath
- :alt: CI - Travis
-
- .. image::
https://img.shields.io/appveyor/ci/ofek/userpath/master.svg?logo=appveyor&label=AppVeyor
- :target: https://ci.appveyor.com/project/ofek/userpath
- :alt: CI - AppVeyor
-
- .. image::
https://img.shields.io/codecov/c/github/ofek/userpath/master.svg?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSI0MDIiIHdpZHRoPSI1ODIiIHk9Ii0xIiB4PSItMSIvPgogPC9nPgogPGc+CiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPgogIDxwYXRoIGlkPSJzdmdfMSIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmZmZmIiBkPSJtMjUuMDE0LDBjLTEzLjc4NCwwLjAxIC0yNS4wMDQsMTEuMTQ5IC0yNS4wMTQsMjQuODMybDAsMC4wNjJsNC4yNTQsMi40ODJsMC4wNTgsLTAuMDM5YTEyLjIzOCwxMi4yMzggMCAwIDEgOS4wNzgsLTEuOTI4YTExLjg0NCwxMS44NDQgMCAwIDEgNS45OCwyLjk3NWwwLjczLDAuNjhsMC40MTMsLTAuOTA0YzAuNCwtMC44NzQgMC44NjIsLTEuNjk2IDEuMzc0LC0yLjQ0M2MwLjIwNiwtMC4zIDAuNDMzLC0wLjYwNCAwLjY5MiwtMC45MjlsMC40MjcsLTAuNTM1bC0wLjUyNiwtMC40NGExNy40NSwxNy40NSAwIDAgMCAtOC4xLC0zLjc4MWExNy44NTMsMTcuODUzIDAgMCAwIC04LjM3NSwwLjQ5YzIuMDIzLC04Ljg2OCA5LjgyLC0xNS4wNSAxOS4wMjcsLTE1LjA1N2M1LjE5NSwwIDEwLj
A3OCwyLjAwNyAxMy43NTIsNS42NTJjMi42MTksMi41OTggNC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jAyOCwwLjIxNGMwLjAzNywwLjI2NCAwLjA4LDAuNTI1IDAuMTMsMC43ODdjMC41MDMsMi42MzcgMS43Niw1LjI3NCAzLjYzNSw3LjYyNWwwLjA4NSwwLjEwNmwwLjA4NywtMC4xMDRjMC43NDgsLTAuODg0IDIuNjAzLC0zLjY4NyAyLjc2LC01LjM2OWwwLjAwMywtMC4wMzFsLTAuMDE1LC0wLjAyOGExMS43MzYsMTEuNzM2IDAgMCAxIC0xLjMzMywtNS40MDdjMCwtNi4yODQgNC45NCwtMTEuNTAyIDExLjI0MywtMTEuODhsMC40MTQsLTAuMDE1YzIuNTYxLC0wLjA1OCA1LjA2NCwwLjY3MyA3LjIzLDIuMTM2bDAuMDU4LDAuMDM5bDQuMTk3LC0yLjQ0bDAuMDU1LC0wLjAzM2wwLC0wLjA2MmMwLjAwNiwtNi42MzIgLTIuNTkyLC0xMi44NjUgLTcuMzE0LC0xNy41NTFjLTQuNzE2LC00LjY3OSAtMTAuOTkxLC03LjI1NSAtMTcuNjcyLC03LjI1NSIvPgogPC9nPgo8L3N2Zz4=&label=Codecov
- :target: https://codecov.io/github/ofek/userpath?branch=master
- :alt: Codecov
-
- |
-
- .. image::
https://img.shields.io/pypi/pyversions/userpath.svg?logo=python&label=Python&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Supported Python versions
-
- .. image::
https://img.shields.io/pypi/v/userpath.svg?logo=python&label=PyPI&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Version
-
- .. image::
https://img.shields.io/pypi/dm/userpath.svg?color=blue&label=Downloads&logo=python&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Downloads
-
- |
-
- .. image::
https://img.shields.io/badge/License-MIT%2FApache--2.0-9400d3.svg
- :target: https://choosealicense.com/licenses
- :alt: License: MIT/Apache-2.0
-
- .. image:: https://img.shields.io/badge/say-thanks-ff69b4.svg
- :target: https://saythanks.io/to/ofek
- :alt: Say Thanks
-
- -----
-
- Ever wanted to release a cool new app but found it difficult to add its
- location to PATH for users? Me too! This tool does that for you on all
- major operating systems and does not require elevated privileges!
-
- **Fear not, this only modifies the user PATH; the system PATH is
never
- touched nor even looked at!**
-
- .. contents:: **Table of Contents**
- :backlinks: none
-
- Installation
- ------------
-
- userpath is distributed on `PyPI <https://pypi.org>`_ as a universal
- wheel and is available on Linux/macOS and Windows and supports
- Python 2.7/3.6+ and PyPy.
- ::
-
- $ pip install userpath
-
- Commands
- --------
-
- Only 3!
- ::
-
- $ userpath -h
- Usage: userpath [OPTIONS] COMMAND [ARGS]...
-
- Options:
- --version Show the version and exit.
- -h, --help Show this message and exit.
-
- Commands:
- append Appends to the user PATH
- prepend Prepends to the user PATH
- verify Checks if locations are in the user PATH
-
- .. image::
https://raw.githubusercontent.com/ofek/visuals/master/userpath/lt.PNG
- :alt: Example run
-
- API
- ---
-
- .. code-block:: python
-
- >>> import userpath
- >>> location = r'C:\Users\Ofek\Desktop\test'
- >>>
- >>> userpath.in_current_path(location)
- False
- >>> userpath.in_new_path(location)
- False
- >>> userpath.append(location)
- True
- >>> userpath.in_new_path(location)
- True
- >>> userpath.need_shell_restart(location)
- True
-
- License
- -------
-
- userpath is distributed under the terms of both
-
- - `MIT License <https://choosealicense.com/licenses/mit>`_
- - `Apache License, Version 2.0
<https://choosealicense.com/licenses/apache-2.0>`_
-
- at your option.
-
- History
- -------
-
- 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
- ^^^^^
-
- - 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
- ^^^^^
-
- - Only require the dependency ``distro`` on Linux
- - Ship tests with source distributions
-
- 1.2.0
- ^^^^^
-
- - Added support for shell auto-detection and selection
-
- 1.1.0
- ^^^^^
-
- - First public stable release
-
- View `all history
<https://github.com/ofek/userpath/blob/master/HISTORY.rst>`_
-
-Keywords: scripts,user path,path,cli
-Platform: UNKNOWN
-Classifier: Development Status :: 4 - Beta
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
-Classifier: License :: OSI Approved :: Apache Software License
-Classifier: Natural Language :: English
-Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
-Classifier: Programming Language :: Python :: 3.9
-Classifier: Programming Language :: Python :: Implementation :: CPython
-Classifier: Programming Language :: Python :: Implementation :: PyPy
+Metadata-Version: 2.1
+Name: userpath
+Version: 1.9.0
+Summary: Cross-platform tool for adding locations to the user PATH
+Project-URL: Funding, https://github.com/sponsors/ofek
+Project-URL: History, https://github.com/ofek/userpath/blob/master/HISTORY.rst
+Project-URL: Issues, https://github.com/ofek/userpath/issues
+Project-URL: Source, https://github.com/ofek/userpath
+Author-email: Ofek Lev <[email protected]>
+License-Expression: MIT
+License-File: LICENSE.txt
+Keywords: path,user path
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
+Requires-Python: >=3.7
+Requires-Dist: click
+Description-Content-Type: text/markdown
+
+# userpath
+
+| | |
+| --- | --- |
+| CI/CD | [](https://github.com/ofek/userpath/actions/workflows/test.yml)
[](https://github.com/ofek/userpath/actions/workflows/build.yml)
|
+| Package | [](https://pypi.org/project/userpath/)
[](https://pypi.org/project/userpath/)
|
+| Meta | [](https://spdx.org/licenses/)
[](https://github.com/sponsors/ofek)
|
+
+-----
+
+This is a tool for modifying a user's `PATH`.
+
+**Table of Contents**
+
+- [Installation](#installation)
+- [CLI](#cli)
+- [API](#api)
+- [License](#license)
+
+## Installation
+
+```console
+pip install userpath
+```
+
+## CLI
+
+```console
+$ userpath -h
+Usage: userpath [OPTIONS] COMMAND [ARGS]...
+
+Options:
+ --version Show the version and exit.
+ -h, --help Show this message and exit.
+
+Commands:
+ append Appends to the user PATH
+ prepend Prepends to the user PATH
+ verify Checks if locations are in the user PATH
+```
+
+## API
+
+```pycon
+>>> import userpath
+>>> location = r'C:\Users\Ofek\Desktop\test'
+>>>
+>>> userpath.in_current_path(location)
+False
+>>> userpath.in_new_path(location)
+False
+>>> userpath.append(location)
+True
+>>> userpath.in_new_path(location)
+True
+>>> userpath.need_shell_restart(location)
+True
+```
+
+## License
+
+`userpath` is distributed under the terms of the
[MIT](https://spdx.org/licenses/MIT.html) license.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/README.md new/userpath-1.9.0/README.md
--- old/userpath-1.7.0/README.md 1970-01-01 01:00:00.000000000 +0100
+++ new/userpath-1.9.0/README.md 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,62 @@
+# userpath
+
+| | |
+| --- | --- |
+| CI/CD | [](https://github.com/ofek/userpath/actions/workflows/test.yml)
[](https://github.com/ofek/userpath/actions/workflows/build.yml)
|
+| Package | [](https://pypi.org/project/userpath/)
[](https://pypi.org/project/userpath/)
|
+| Meta | [](https://spdx.org/licenses/)
[](https://github.com/sponsors/ofek)
|
+
+-----
+
+This is a tool for modifying a user's `PATH`.
+
+**Table of Contents**
+
+- [Installation](#installation)
+- [CLI](#cli)
+- [API](#api)
+- [License](#license)
+
+## Installation
+
+```console
+pip install userpath
+```
+
+## CLI
+
+```console
+$ userpath -h
+Usage: userpath [OPTIONS] COMMAND [ARGS]...
+
+Options:
+ --version Show the version and exit.
+ -h, --help Show this message and exit.
+
+Commands:
+ append Appends to the user PATH
+ prepend Prepends to the user PATH
+ verify Checks if locations are in the user PATH
+```
+
+## API
+
+```pycon
+>>> import userpath
+>>> location = r'C:\Users\Ofek\Desktop\test'
+>>>
+>>> userpath.in_current_path(location)
+False
+>>> userpath.in_new_path(location)
+False
+>>> userpath.append(location)
+True
+>>> userpath.in_new_path(location)
+True
+>>> userpath.need_shell_restart(location)
+True
+```
+
+## License
+
+`userpath` is distributed under the terms of the
[MIT](https://spdx.org/licenses/MIT.html) license.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/README.rst
new/userpath-1.9.0/README.rst
--- old/userpath-1.7.0/README.rst 2021-07-24 17:18:40.000000000 +0200
+++ new/userpath-1.9.0/README.rst 1970-01-01 01:00:00.000000000 +0100
@@ -1,166 +0,0 @@
-userpath
-========
-
-.. image::
https://img.shields.io/travis/ofek/userpath/master.svg?logo=travis&label=Travis%20CI
- :target: https://travis-ci.org/ofek/userpath
- :alt: CI - Travis
-
-.. image::
https://img.shields.io/appveyor/ci/ofek/userpath/master.svg?logo=appveyor&label=AppVeyor
- :target: https://ci.appveyor.com/project/ofek/userpath
- :alt: CI - AppVeyor
-
-.. image::
https://img.shields.io/codecov/c/github/ofek/userpath/master.svg?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSI0MDIiI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jA1OCA1LjA2NCwwLjY3MyA3LjIzLDIuMTM2bDAuMDU4LDAuMDM5bDQuMTk3LC0yLjQ0bDAuMDU1LC0wLjAzM2wwLC0wLjA2MmMwLjAwNiwtNi42MzIgLTIuNTkyLC0xMi44NjUgLTcuMzE0LC0xNy41NTFjLTQuNzE2LC00LjY3OSAtMTAuOTkxLC03LjI1NSAtMTcuNjcyLC03LjI1NSIvPgogPC9nPgo8L3N2Zz4=&label=Codecov
- :target: https://codecov.io/github/ofek/userpath?branch=master
- :alt: Codecov
-
-|
-
-.. image::
https://img.shields.io/pypi/pyversions/userpath.svg?logo=python&label=Python&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Supported Python versions
-
-.. image::
https://img.shields.io/pypi/v/userpath.svg?logo=python&label=PyPI&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Version
-
-.. image::
https://img.shields.io/pypi/dm/userpath.svg?color=blue&label=Downloads&logo=python&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Downloads
-
-|
-
-.. image:: https://img.shields.io/badge/License-MIT%2FApache--2.0-9400d3.svg
- :target: https://choosealicense.com/licenses
- :alt: License: MIT/Apache-2.0
-
-.. image:: https://img.shields.io/badge/say-thanks-ff69b4.svg
- :target: https://saythanks.io/to/ofek
- :alt: Say Thanks
-
------
-
-Ever wanted to release a cool new app but found it difficult to add its
-location to PATH for users? Me too! This tool does that for you on all
-major operating systems and does not require elevated privileges!
-
- **Fear not, this only modifies the user PATH; the system PATH is never
- touched nor even looked at!**
-
-.. contents:: **Table of Contents**
- :backlinks: none
-
-Installation
-------------
-
-userpath is distributed on `PyPI <https://pypi.org>`_ as a universal
-wheel and is available on Linux/macOS and Windows and supports
-Python 2.7/3.6+ and PyPy.
-::
-
- $ pip install userpath
-
-Commands
---------
-
-Only 3!
-::
-
- $ userpath -h
- Usage: userpath [OPTIONS] COMMAND [ARGS]...
-
- Options:
- --version Show the version and exit.
- -h, --help Show this message and exit.
-
- Commands:
- append Appends to the user PATH
- prepend Prepends to the user PATH
- verify Checks if locations are in the user PATH
-
-.. image::
https://raw.githubusercontent.com/ofek/visuals/master/userpath/lt.PNG
- :alt: Example run
-
-API
----
-
-.. code-block:: python
-
- >>> import userpath
- >>> location = r'C:\Users\Ofek\Desktop\test'
- >>>
- >>> userpath.in_current_path(location)
- False
- >>> userpath.in_new_path(location)
- False
- >>> userpath.append(location)
- True
- >>> userpath.in_new_path(location)
- True
- >>> userpath.need_shell_restart(location)
- True
-
-License
--------
-
-userpath is distributed under the terms of both
-
-- `MIT License <https://choosealicense.com/licenses/mit>`_
-- `Apache License, Version 2.0
<https://choosealicense.com/licenses/apache-2.0>`_
-
-at your option.
-
-History
--------
-
-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
-^^^^^
-
-- 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
-^^^^^
-
-- Only require the dependency ``distro`` on Linux
-- Ship tests with source distributions
-
-1.2.0
-^^^^^
-
-- Added support for shell auto-detection and selection
-
-1.1.0
-^^^^^
-
-- First public stable release
-
-View `all history <https://github.com/ofek/userpath/blob/master/HISTORY.rst>`_
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/pyproject.toml
new/userpath-1.9.0/pyproject.toml
--- old/userpath-1.7.0/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/userpath-1.9.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,49 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[project]
+name = "userpath"
+description = 'Cross-platform tool for adding locations to the user PATH'
+readme = "README.md"
+license = "MIT"
+requires-python = ">=3.7"
+keywords = [
+ "path",
+ "user path",
+]
+authors = [
+ { name = "Ofek Lev", email = "[email protected]" },
+]
+classifiers = [
+ "Development Status :: 4 - Beta",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: Implementation :: CPython",
+ "Programming Language :: Python :: Implementation :: PyPy",
+]
+dependencies = [
+ "click",
+]
+dynamic = ["version"]
+
+[project.urls]
+Funding = "https://github.com/sponsors/ofek"
+History = "https://github.com/ofek/userpath/blob/master/HISTORY.rst"
+Issues = "https://github.com/ofek/userpath/issues"
+Source = "https://github.com/ofek/userpath"
+
+[project.scripts]
+userpath = "userpath.cli:userpath"
+
+[tool.hatch.version]
+path = "userpath/__init__.py"
+
+[tool.hatch.build.targets.sdist]
+[tool.hatch.build.targets.wheel]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/setup.cfg new/userpath-1.9.0/setup.cfg
--- old/userpath-1.7.0/setup.cfg 2021-07-24 17:21:02.499904600 +0200
+++ new/userpath-1.9.0/setup.cfg 1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-[egg_info]
-tag_build =
-tag_date = 0
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/setup.py new/userpath-1.9.0/setup.py
--- old/userpath-1.7.0/setup.py 2021-05-08 14:55:24.000000000 +0200
+++ new/userpath-1.9.0/setup.py 1970-01-01 01:00:00.000000000 +0100
@@ -1,60 +0,0 @@
-from io import open
-
-from setuptools import find_packages, setup
-
-with open('userpath/__init__.py', 'r') as f:
- for line in f:
- if line.startswith('__version__'):
- version = line.strip().split('=')[1].strip(' \'"')
- break
- else:
- version = '0.0.1'
-
-with open('README.rst', 'r', encoding='utf-8') as f:
- readme = f.read()
-
-REQUIRES = ['click']
-
-setup(
- name='userpath',
- version=version,
- description='Cross-platform tool for adding locations to the user PATH, no
elevated privileges required!',
- long_description=readme,
- author='Ofek Lev',
- author_email='[email protected]',
- maintainer='Ofek Lev',
- maintainer_email='[email protected]',
- url='https://github.com/ofek/userpath',
- license='MIT OR Apache-2.0',
-
- keywords=[
- 'scripts',
- 'user path',
- 'path',
- 'cli',
- ],
-
- classifiers=[
- 'Development Status :: 4 - Beta',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: MIT License',
- 'License :: OSI Approved :: Apache Software License',
- 'Natural Language :: English',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3.6',
- 'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
- 'Programming Language :: Python :: 3.9',
- 'Programming Language :: Python :: Implementation :: CPython',
- 'Programming Language :: Python :: Implementation :: PyPy',
- ],
-
- install_requires=REQUIRES,
- packages=['userpath'],
- entry_points={
- 'console_scripts': [
- 'userpath = userpath.cli:userpath',
- ],
- },
-)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/tests/conftest.py
new/userpath-1.9.0/tests/conftest.py
--- old/userpath-1.7.0/tests/conftest.py 2019-06-03 00:56:13.000000000
+0200
+++ new/userpath-1.9.0/tests/conftest.py 2020-02-02 01:00:00.000000000
+0100
@@ -1,4 +1,5 @@
import os
+import platform
import subprocess
from itertools import chain
@@ -18,7 +19,7 @@
@pytest.fixture(scope='class')
def shell_test(request):
- if 'SHELL' in os.environ:
+ if 'SHELL' in os.environ or platform.system() == 'Windows':
yield
else:
compose_file = os.path.join(HERE, 'docker', 'docker-compose.yaml')
@@ -26,13 +27,10 @@
dockerfile = getattr(request.cls, 'DOCKERFILE', 'debian')
container = '{}-{}'.format(shell_name, dockerfile)
- tox_env = os.environ['TOX_ENV_NAME']
- python_version = '.'.join(tox_env.replace('py', ''))
-
try:
os.environ['SHELL'] = shell_name
os.environ['DOCKERFILE'] = dockerfile
- os.environ['PYTHON_VERSION'] = python_version
+ os.environ['PYTHON_VERSION'] = os.environ['TOX_ENV_NAME']
subprocess.check_call(['docker-compose', '-f', compose_file, 'up',
'-d', '--build'])
# Python gets really upset when compiled files from different
paths and/or platforms are encountered
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/tests/coverage/.gitignore
new/userpath-1.9.0/tests/coverage/.gitignore
--- old/userpath-1.7.0/tests/coverage/.gitignore 1970-01-01
01:00:00.000000000 +0100
+++ new/userpath-1.9.0/tests/coverage/.gitignore 2020-02-02
01:00:00.000000000 +0100
@@ -0,0 +1,3 @@
+# Ignore this directory used for coverage aggregation
+*
+!.gitignore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/tests/docker/debian
new/userpath-1.9.0/tests/docker/debian
--- old/userpath-1.7.0/tests/docker/debian 1970-01-01 01:00:00.000000000
+0100
+++ new/userpath-1.9.0/tests/docker/debian 2020-02-02 01:00:00.000000000
+0100
@@ -0,0 +1,10 @@
+ARG PYTHON_VERSION
+FROM python:${PYTHON_VERSION}
+
+RUN apt-get update \
+ && apt-get --no-install-recommends -y install fish zsh
+
+COPY requirements.txt /
+RUN pip install -r requirements.txt
+
+CMD ["tail", "-f", "/dev/null"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/tox.ini new/userpath-1.9.0/tox.ini
--- old/userpath-1.7.0/tox.ini 2021-05-08 14:46:37.000000000 +0200
+++ new/userpath-1.9.0/tox.ini 2020-02-02 01:00:00.000000000 +0100
@@ -1,7 +1,7 @@
[tox]
skip_missing_interpreters = true
envlist =
- py{27,37}
+ 3.7
coverage
[testenv]
@@ -12,10 +12,6 @@
commands =
coverage run -m pytest -v {posargs}
-[testenv:py27]
-commands =
- coverage run -m pytest -v -m "not xonsh" {posargs}
-
[testenv:coverage]
skip_install = true
deps = coverage
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath/__init__.py
new/userpath-1.9.0/userpath/__init__.py
--- old/userpath-1.7.0/userpath/__init__.py 2021-07-24 17:17:49.000000000
+0200
+++ new/userpath-1.9.0/userpath/__init__.py 2020-02-02 01:00:00.000000000
+0100
@@ -1,4 +1,4 @@
-from .core import append, in_new_path, need_shell_restart, prepend
-from .utils import in_current_path
-
-__version__ = '1.7.0'
+from .core import append, in_new_path, need_shell_restart, prepend
+from .utils import in_current_path
+
+__version__ = '1.9.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath/interface.py
new/userpath-1.9.0/userpath/interface.py
--- old/userpath-1.7.0/userpath/interface.py 2020-06-25 18:12:53.000000000
+0200
+++ new/userpath-1.9.0/userpath/interface.py 2020-02-02 01:00:00.000000000
+0100
@@ -38,6 +38,8 @@
return True
def put(self, location, front=True, check=False, **kwargs):
+ import ctypes
+
location = normpath(location)
head, tail = (location, self._get_new_path()) if front else
(self._get_new_path(), location)
@@ -46,6 +48,18 @@
with winreg.OpenKey(winreg.HKEY_CURRENT_USER, 'Environment', 0,
winreg.KEY_WRITE) as key:
winreg.SetValueEx(key, 'PATH', 0, winreg.REG_EXPAND_SZ, new_path)
+ #
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessagetimeoutw
+ #
https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-settingchange
+ ctypes.windll.user32.SendMessageTimeoutW(
+ 0xFFFF, # HWND_BROADCAST
+ 0x1A, # WM_SETTINGCHANGE
+ 0, # must be NULL
+ 'Environment',
+ 0x0002, # SMTO_ABORTIFHUNG
+ 5000, # milliseconds
+ ctypes.wintypes.DWORD(),
+ )
+
return self.location_in_new_path(location, check=check)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath/shells.py
new/userpath-1.9.0/userpath/shells.py
--- old/userpath-1.7.0/userpath/shells.py 2021-05-08 14:55:24.000000000
+0200
+++ new/userpath-1.9.0/userpath/shells.py 2020-02-02 01:00:00.000000000
+0100
@@ -1,4 +1,4 @@
-from os import path, pathsep
+from os import environ, path, pathsep
DEFAULT_SHELLS = ('bash', 'sh')
@@ -30,8 +30,6 @@
new_path = '{}{}{}'.format(head, pathsep, tail)
contents = 'export PATH="{}"'.format(new_path)
- configs = {path.join(self.home, '.bashrc'): contents}
-
# https://github.com/ofek/userpath/issues/3#issuecomment-492491977
profile_path = path.join(self.home, '.profile')
bash_profile_path = path.join(self.home, '.bash_profile')
@@ -44,13 +42,11 @@
# Terminal.app runs a login shell by default for each new terminal
window.
login_config = bash_profile_path
- configs[login_config] = contents
-
- return configs
+ return {login_config: contents}
@classmethod
def show_path_commands(cls):
- return [['bash', '-i', '-c', 'echo $PATH'], ['bash', '-i', '-l', '-c',
'echo $PATH']]
+ return [['bash', '-i', '-l', '-c', 'echo $PATH']]
class Fish(Shell):
@@ -94,11 +90,13 @@
new_path = '{}{}{}'.format(head, pathsep, tail)
contents = 'export PATH="{}"'.format(new_path)
- return {path.join(self.home, '.zshrc'): contents, path.join(self.home,
'.zprofile'): contents}
+ zdotdir = environ.get('ZDOTDIR', self.home)
+
+ return {path.join(zdotdir, '.zprofile'): contents}
@classmethod
def show_path_commands(cls):
- return [['zsh', '-i', '-c', 'echo $PATH'], ['zsh', '-i', '-l', '-c',
'echo $PATH']]
+ return [['zsh', '-i', '-l', '-c', 'echo $PATH']]
SHELLS = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath/utils.py
new/userpath-1.9.0/userpath/utils.py
--- old/userpath-1.7.0/userpath/utils.py 2021-07-24 17:16:21.000000000
+0200
+++ new/userpath-1.9.0/userpath/utils.py 2020-02-02 01:00:00.000000000
+0100
@@ -16,7 +16,7 @@
def location_in_path(location, path):
- return normpath(location) in (normpath(p) for p in path.split(os.pathsep))
+ return normpath(location) in (normpath(p) for p in path.split(os.pathsep)
if p != '')
def in_current_path(location):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath.egg-info/PKG-INFO
new/userpath-1.9.0/userpath.egg-info/PKG-INFO
--- old/userpath-1.7.0/userpath.egg-info/PKG-INFO 2021-07-24
17:21:02.000000000 +0200
+++ new/userpath-1.9.0/userpath.egg-info/PKG-INFO 1970-01-01
01:00:00.000000000 +0100
@@ -1,192 +0,0 @@
-Metadata-Version: 1.2
-Name: userpath
-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
-Author-email: [email protected]
-Maintainer: Ofek Lev
-Maintainer-email: [email protected]
-License: MIT OR Apache-2.0
-Description: userpath
- ========
-
- .. image::
https://img.shields.io/travis/ofek/userpath/master.svg?logo=travis&label=Travis%20CI
- :target: https://travis-ci.org/ofek/userpath
- :alt: CI - Travis
-
- .. image::
https://img.shields.io/appveyor/ci/ofek/userpath/master.svg?logo=appveyor&label=AppVeyor
- :target: https://ci.appveyor.com/project/ofek/userpath
- :alt: CI - AppVeyor
-
- .. image::
https://img.shields.io/codecov/c/github/ofek/userpath/master.svg?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CgogPGc+CiAgPH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TEuNzM2IDAgMCAxIC0xLjMzMywtNS40MDdjMCwtNi4yODQgNC45NCwtMTEuNTAyIDExLjI0MywtMTEuODhsMC40MTQsLTAuMDE1YzIuNTYxLC0wLjA1OCA1LjA2NCwwLjY3MyA3LjIzLDIuMTM2bDAuMDU4LDAuMDM5bDQuMTk3LC0yLjQ0bDAuMDU1LC0wLjAzM2wwLC0wLjA2MmMwLjAwNiwtNi42MzIgLTIuNTkyLC0xMi44NjUgLTcuMzE0LC0xNy41NTFjLTQuNzE2LC00LjY3OSAtMTAuOTkxLC03LjI1NSAtMTcuNjcyLC03LjI1NSIvPgogPC9nPgo8L3N2Zz4=&label=Codecov
- :target: https://codecov.io/github/ofek/userpath?branch=master
- :alt: Codecov
-
- |
-
- .. image::
https://img.shields.io/pypi/pyversions/userpath.svg?logo=python&label=Python&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Supported Python versions
-
- .. image::
https://img.shields.io/pypi/v/userpath.svg?logo=python&label=PyPI&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Version
-
- .. image::
https://img.shields.io/pypi/dm/userpath.svg?color=blue&label=Downloads&logo=python&logoColor=gold
- :target: https://pypi.org/project/userpath
- :alt: PyPI - Downloads
-
- |
-
- .. image::
https://img.shields.io/badge/License-MIT%2FApache--2.0-9400d3.svg
- :target: https://choosealicense.com/licenses
- :alt: License: MIT/Apache-2.0
-
- .. image:: https://img.shields.io/badge/say-thanks-ff69b4.svg
- :target: https://saythanks.io/to/ofek
- :alt: Say Thanks
-
- -----
-
- Ever wanted to release a cool new app but found it difficult to add its
- location to PATH for users? Me too! This tool does that for you on all
- major operating systems and does not require elevated privileges!
-
- **Fear not, this only modifies the user PATH; the system PATH is
never
- touched nor even looked at!**
-
- .. contents:: **Table of Contents**
- :backlinks: none
-
- Installation
- ------------
-
- userpath is distributed on `PyPI <https://pypi.org>`_ as a universal
- wheel and is available on Linux/macOS and Windows and supports
- Python 2.7/3.6+ and PyPy.
- ::
-
- $ pip install userpath
-
- Commands
- --------
-
- Only 3!
- ::
-
- $ userpath -h
- Usage: userpath [OPTIONS] COMMAND [ARGS]...
-
- Options:
- --version Show the version and exit.
- -h, --help Show this message and exit.
-
- Commands:
- append Appends to the user PATH
- prepend Prepends to the user PATH
- verify Checks if locations are in the user PATH
-
- .. image::
https://raw.githubusercontent.com/ofek/visuals/master/userpath/lt.PNG
- :alt: Example run
-
- API
- ---
-
- .. code-block:: python
-
- >>> import userpath
- >>> location = r'C:\Users\Ofek\Desktop\test'
- >>>
- >>> userpath.in_current_path(location)
- False
- >>> userpath.in_new_path(location)
- False
- >>> userpath.append(location)
- True
- >>> userpath.in_new_path(location)
- True
- >>> userpath.need_shell_restart(location)
- True
-
- License
- -------
-
- userpath is distributed under the terms of both
-
- - `MIT License <https://choosealicense.com/licenses/mit>`_
- - `Apache License, Version 2.0
<https://choosealicense.com/licenses/apache-2.0>`_
-
- at your option.
-
- History
- -------
-
- 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
- ^^^^^
-
- - 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
- ^^^^^
-
- - Only require the dependency ``distro`` on Linux
- - Ship tests with source distributions
-
- 1.2.0
- ^^^^^
-
- - Added support for shell auto-detection and selection
-
- 1.1.0
- ^^^^^
-
- - First public stable release
-
- View `all history
<https://github.com/ofek/userpath/blob/master/HISTORY.rst>`_
-
-Keywords: scripts,user path,path,cli
-Platform: UNKNOWN
-Classifier: Development Status :: 4 - Beta
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
-Classifier: License :: OSI Approved :: Apache Software License
-Classifier: Natural Language :: English
-Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3.8
-Classifier: Programming Language :: Python :: 3.9
-Classifier: Programming Language :: Python :: Implementation :: CPython
-Classifier: Programming Language :: Python :: Implementation :: PyPy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath.egg-info/SOURCES.txt
new/userpath-1.9.0/userpath.egg-info/SOURCES.txt
--- old/userpath-1.7.0/userpath.egg-info/SOURCES.txt 2021-07-24
17:21:02.000000000 +0200
+++ new/userpath-1.9.0/userpath.egg-info/SOURCES.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-HISTORY.rst
-LICENSE-APACHE
-LICENSE-MIT
-MANIFEST.in
-README.rst
-requirements-dev.txt
-setup.py
-tox.ini
-tests/__init__.py
-tests/conftest.py
-tests/test_bash.py
-tests/test_fish.py
-tests/test_sh.py
-tests/test_windows.py
-tests/test_xonsh.py
-tests/test_zsh.py
-tests/utils.py
-tests/docker/docker-compose.yaml
-tests/docker/requirements.txt
-userpath/__init__.py
-userpath/__main__.py
-userpath/cli.py
-userpath/core.py
-userpath/interface.py
-userpath/shells.py
-userpath/utils.py
-userpath.egg-info/PKG-INFO
-userpath.egg-info/SOURCES.txt
-userpath.egg-info/dependency_links.txt
-userpath.egg-info/entry_points.txt
-userpath.egg-info/requires.txt
-userpath.egg-info/top_level.txt
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/userpath-1.7.0/userpath.egg-info/dependency_links.txt
new/userpath-1.9.0/userpath.egg-info/dependency_links.txt
--- old/userpath-1.7.0/userpath.egg-info/dependency_links.txt 2021-07-24
17:21:02.000000000 +0200
+++ new/userpath-1.9.0/userpath.egg-info/dependency_links.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath.egg-info/entry_points.txt
new/userpath-1.9.0/userpath.egg-info/entry_points.txt
--- old/userpath-1.7.0/userpath.egg-info/entry_points.txt 2021-07-24
17:21:02.000000000 +0200
+++ new/userpath-1.9.0/userpath.egg-info/entry_points.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-[console_scripts]
-userpath = userpath.cli:userpath
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath.egg-info/requires.txt
new/userpath-1.9.0/userpath.egg-info/requires.txt
--- old/userpath-1.7.0/userpath.egg-info/requires.txt 2021-07-24
17:21:02.000000000 +0200
+++ new/userpath-1.9.0/userpath.egg-info/requires.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-click
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/userpath-1.7.0/userpath.egg-info/top_level.txt
new/userpath-1.9.0/userpath.egg-info/top_level.txt
--- old/userpath-1.7.0/userpath.egg-info/top_level.txt 2021-07-24
17:21:02.000000000 +0200
+++ new/userpath-1.9.0/userpath.egg-info/top_level.txt 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-userpath