Sync from SUSE:ALP:Source:Standard:1.0 python-pathtools revision d0f70ec4a3dbded7c90b67f07a392aa7
This commit is contained in:
commit
5564918b32
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
BIN
pathtools-0.1.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
pathtools-0.1.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
43
python-pathtools.changes
Normal file
43
python-pathtools.changes
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 16 05:17:49 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch stop-using-imp.patch:
|
||||||
|
* Stop using imp module, switch to importlib.*
|
||||||
|
- Use pyproject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 9 05:54:46 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 14 14:13:29 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 4 12:51:20 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Remove superfluous devel dependency for noarch package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 9 05:23:46 UTC 2018 - tbechtold@suse.com
|
||||||
|
|
||||||
|
- Do not require the Flask sphinx theme for doc build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 23 07:24:48 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Converted to single-spec
|
||||||
|
- Added docs
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 24 11:09:53 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Require python-setuptools instead of distribute (upstreams merged)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 31 13:10:30 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Initial version
|
||||||
|
|
60
python-pathtools.spec
Normal file
60
python-pathtools.spec
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-pathtools
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-pathtools
|
||||||
|
Version: 0.1.2
|
||||||
|
Release: 0
|
||||||
|
Summary: File system general utilities
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/gorakhargosh/pathtools
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/p/pathtools/pathtools-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-OPENSUSE Stop using imp module
|
||||||
|
Patch0: stop-using-imp.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Pattern matching and various utilities for file systems paths.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n pathtools-%{version}
|
||||||
|
sed -i "1d" pathtools/path.py pathtools/patterns.py
|
||||||
|
sed -i "s/^html_theme.*/#html_theme/" docs/source/conf.py
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
cd docs && make html && rm -r build/html/.buildinfo # Build HTML docs
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc AUTHORS README docs/build/html
|
||||||
|
%{python_sitelib}/pathtools
|
||||||
|
%{python_sitelib}/pathtools-%{version}.dist-info
|
||||||
|
|
||||||
|
%changelog
|
24
stop-using-imp.patch
Normal file
24
stop-using-imp.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Index: pathtools-0.1.2/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- pathtools-0.1.2.orig/setup.py
|
||||||
|
+++ pathtools-0.1.2/setup.py
|
||||||
|
@@ -22,12 +22,16 @@
|
||||||
|
# THE SOFTWARE.
|
||||||
|
|
||||||
|
import os
|
||||||
|
-import imp
|
||||||
|
+import importlib.machinery
|
||||||
|
+import importlib.util
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
PKG_DIR = 'pathtools'
|
||||||
|
-version = imp.load_source('version',
|
||||||
|
- os.path.join(PKG_DIR, 'version.py'))
|
||||||
|
+path = os.path.join(PKG_DIR, 'version.py')
|
||||||
|
+loader = importlib.machinery.SourceFileLoader("pathtools", path)
|
||||||
|
+spec = importlib.util.spec_from_file_location("pathtools", path)
|
||||||
|
+version = importlib.util.module_from_spec(spec)
|
||||||
|
+loader.exec_module(version)
|
||||||
|
|
||||||
|
def read_file(filename):
|
||||||
|
"""
|
Loading…
Reference in New Issue
Block a user