diff --git a/pickleshare-0.5.tar.gz b/pickleshare-0.5.tar.gz deleted file mode 100644 index 2e4b6f2..0000000 --- a/pickleshare-0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0be5745035d437dbf55a96f60b7712345b12423f7d0951bd7d8dc2141ca9286 -size 4441 diff --git a/pickleshare-0.7.4.tar.gz b/pickleshare-0.7.4.tar.gz new file mode 100644 index 0000000..dd7d2bc --- /dev/null +++ b/pickleshare-0.7.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b +size 5981 diff --git a/python-pickleshare.changes b/python-pickleshare.changes index 9953978..2b86627 100644 --- a/python-pickleshare.changes +++ b/python-pickleshare.changes @@ -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 diff --git a/python-pickleshare.spec b/python-pickleshare.spec index 6429e40..c86790d 100644 --- a/python-pickleshare.spec +++ b/python-pickleshare.spec @@ -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