Accepting request 509829 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version
- Fix source URL
- update to version 0.7.4

OBS-URL: https://build.opensuse.org/request/show/509829
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pickleshare?expand=0&rev=3
This commit is contained in:
Todd R 2017-07-12 17:17:47 +00:00 committed by Git OBS Bridge
parent 7cb8a1525a
commit d4c286f013
4 changed files with 71 additions and 19 deletions

View File

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

3
pickleshare-0.7.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b
size 5981

View File

@ -1,3 +1,38 @@
-------------------------------------------------------------------
Wed Jul 12 17:12:05 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version
- Fix source URL
- update to version 0.7.4:
* Accept any str-able object for the root path
* Convert test fixture tmpdir to string before creating
PickleShareDB
* Don't convert Py2 unicode path to str
- update to version 0.7.3:
* Fix environment marker
* Include license and test files in sdists
* Fix for multiple processes creating a folder
* handle exception and keep Python 2 support
* Remove unused import
- update to version 0.7.2:
* Fix environment marker
* Fix error when db location does not already exist
* Require pathlib2 on Python 3.3 as well
- changes from version 0.7.0:
* Update metadata
* Fix environment marker
* Update .travis.yml
* Switch from path.py to pathlib
* Add MIT license
* Cleanup: Python 3 compatible example, remove .idea folder
* Update setup.py classifiers
* Enable 3.5 on travis
* specify path.py version dependency
- update to version 0.6:
* Fix module import to work with the latest version
* remove pkg.info
* update main page URL
-------------------------------------------------------------------
Wed Aug 12 14:07:31 UTC 2015 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pickleshare
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,25 +15,31 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_without test
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pickleshare
Version: 0.5
Version: 0.7.4
Release: 0
Summary: Tiny shelve-like database with concurrency support
License: MIT
Group: Development/Languages/Python
Url: https://github.com/vivainio/pickleshare
Source: https://pypi.python.org/packages/source/p/pickleshare/pickleshare-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-path.py
BuildRequires: python-setuptools
Requires: python-path.py
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
Source: https://files.pythonhosted.org/packages/source/p/pickleshare/pickleshare-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-pathlib2
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
%ifpython2
Requires: python-pathlib2
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
PickleShare - a small 'shelve' like datastore with concurrency support
@ -57,13 +63,24 @@ Installation guide: pip install path pickleshare
sed -i '1{\@^#!/usr/bin/env python@d}' pickleshare.py
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%if %{with test}
%check
# need to set locale to avoid UnicodeEncodeError
export LANG=en_US.UTF-8
%python_expand py.test-%{$python_bin_suffix} .
%endif
%files %{python_files}
%defattr(-,root,root,-)
%{python_sitelib}/*
%doc LICENSE
%{python_sitelib}/pickleshare.py*
%{python_sitelib}/pickleshare-%{version}-py*.egg-info
%pycache_only %{python_sitelib}/__pycache__/pickleshare.*.py*
%changelog