14
0

- Update to 3.0.3:

* No upstream changelog provided

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonfinder?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2019-05-25 08:54:20 +00:00
committed by Git OBS Bridge
parent f93fa654fb
commit f29d68be63
5 changed files with 12 additions and 31 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat May 25 08:52:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.2.1:
* Added support for subprocess timeouts while discovering python paths. #62
- Merged patch setup-ascii.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Mar 16 17:43:50 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Sat Mar 16 17:43:50 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -18,15 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pythonfinder Name: python-pythonfinder
Version: 1.2.0 Version: 1.2.1
Release: 0 Release: 0
Summary: A tool to locate Python on the system Summary: A tool to locate Python on the system
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/sarugaku/pythonfinder URL: https://github.com/sarugaku/pythonfinder
Source: https://github.com/sarugaku/pythonfinder/archive/%{version}.tar.gz#/pythonfinder-%{version}.tar.gz Source: https://github.com/sarugaku/pythonfinder/archive/%{version}.tar.gz#/pythonfinder-%{version}.tar.gz
# https://github.com/sarugaku/pythonfinder/issues/62
Patch0: setup-ascii.patch
BuildRequires: %{python_module setuptools >= 36.2.2} BuildRequires: %{python_module setuptools >= 36.2.2}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -55,11 +53,6 @@ A Python discovery tool to locate Python on the system.
%prep %prep
%setup -q -n pythonfinder-%{version} %setup -q -n pythonfinder-%{version}
%patch0 -p1
# Has no direct dependency on pathlib2 or lru_cache, which it obtains from vistir
# https://github.com/sarugaku/pythonfinder/pull/63
sed -i '/pathlib2/d;/lru_cache/d' setup.cfg
rm -r tasks rm -r tasks
sed -i '/addopts/d' setup.cfg sed -i '/addopts/d' setup.cfg
@@ -78,9 +71,7 @@ rm -rf src/pythonfinder/_vendor/pep514tools
%check %check
# Three tests fail with OSError: [Errno 1] Operation not permitted , attempting # Three tests fail with OSError: [Errno 1] Operation not permitted , attempting
# to modify read-only system image files. # to modify read-only system image files.
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest -k \ %pytest -k 'not (test_python_versions or test_shims_are_kept or test_shims_are_removed)'
'not (test_python_versions or test_shims_are_kept or test_shims_are_removed)'
}
%files %{python_files} %files %{python_files}
%doc CHANGELOG.rst README.rst %doc CHANGELOG.rst README.rst

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91824d6047c862fa7213723336bc5926a05aacb84ccff0a76bcbdc39e94da98c
size 65255

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10e645105cd7931893258d8478c13e390f996f09765b6e76ae51c81048d48556
size 72133

View File

@@ -1,17 +0,0 @@
--- pythonfinder-1.2.0/setup.py.orig 2019-03-07 11:23:59.616077036 +0700
+++ pythonfinder-1.2.0/setup.py 2019-03-07 11:28:00.449877443 +0700
@@ -49,11 +49,11 @@
pass
def run(self):
- self.status('Building Source distribution…')
+ self.status('Building Source distribution.')
os.system('{0} setup.py sdist'.format(sys.executable))
- self.status('Uploading the package to PyPi via Twine…')
+ self.status('Uploading the package to PyPi via Twine.')
os.system('twine upload dist/*')
- self.status('Pushing git tags…')
+ self.status('Pushing git tags.')
os.system('git tag v{0}'.format(find_version("src", "pythonfinder", "__init__.py")))
os.system('git push --tags')
sys.exit()