From c2bde02c93656848da52bf670cb859c3169b86b004a0a8058d177e1f5e6589c6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 7 Jun 2018 18:11:41 +0000 Subject: [PATCH 1/2] Accepting request 615033 from home:TheBlackCat:branches:devel:languages:python - Create separate -doc subpackage to build docs. - Run tests in -doc subpackage to avoid dependency loop with python-pytest. - Use license tag OBS-URL: https://build.opensuse.org/request/show/615033 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=3 --- python-atomicwrites-doc.changes | 56 +++++++++++++++++++++++ python-atomicwrites-doc.spec | 81 +++++++++++++++++++++++++++++++++ python-atomicwrites.changes | 8 ++++ python-atomicwrites.spec | 13 ++---- 4 files changed, 149 insertions(+), 9 deletions(-) create mode 100644 python-atomicwrites-doc.changes create mode 100644 python-atomicwrites-doc.spec diff --git a/python-atomicwrites-doc.changes b/python-atomicwrites-doc.changes new file mode 100644 index 0000000..69149cb --- /dev/null +++ b/python-atomicwrites-doc.changes @@ -0,0 +1,56 @@ +------------------------------------------------------------------- +Thu Jun 7 17:16:00 UTC 2018 - toddrme2178@gmail.com + +- Create separate -doc subpackage to build docs. +- Run tests in -doc subpackage to avoid dependency loop with + python-pytest. +- Use license tag + +------------------------------------------------------------------- +Fri Jun 30 16:49:02 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec + +------------------------------------------------------------------- +Wed Sep 21 02:05:33 UTC 2016 - arun@gmx.de + +- update to version 1.1.5: + * Fix toxfile (#21) + * Make atomic_write work on paths with no directory separator (#20) + * Fix formatting + * Skip stylecheck under py26 + * Add contributing.rst + * Fix tox.ini + +------------------------------------------------------------------- +Sun May 8 07:16:22 UTC 2016 - arun@gmx.de + +- specfile: + * updated source url to files.pythonhosted.org + +------------------------------------------------------------------- +Sat Mar 26 04:20:01 UTC 2016 - arun@gmx.de + +- update to version 1.0.0: + * Fix unintentional exception clobbering when rollback fails + * Remove unused variable (fixes an unused variable warning) + * Update copyright notice + * Fix appveyor build + +------------------------------------------------------------------- +Mon Feb 15 18:11:26 UTC 2016 - arun@gmx.de + +- update to version 0.1.9: + * Fix UnboundLocalError + +------------------------------------------------------------------- +Tue Jan 19 11:45:45 UTC 2016 - sleep_walker@opensuse.org + +- clean the spec file (not only) with spec-cleaner +- fix %check part + +------------------------------------------------------------------- +Mon Jan 18 23:25:46 UTC 2016 - sleep_walker@opensuse.org + +- let there be python3-atomicwrites + diff --git a/python-atomicwrites-doc.spec b/python-atomicwrites-doc.spec new file mode 100644 index 0000000..226cbd4 --- /dev/null +++ b/python-atomicwrites-doc.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-atomicwrites-doc +# +# Copyright (c) 2018 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 +# 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 http://bugs.opensuse.org/ +# + + +# This package allows us to test the package without a dependency loop with python-pytest +# Please do not delete it + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-atomicwrites-doc +Version: 1.1.5 +Release: 0 +Summary: Atomic file writes +License: MIT +Group: Documentation/HTML +Url: https://github.com/untitaker/python-atomicwrites +Source: https://files.pythonhosted.org/packages/source/a/atomicwrites/atomicwrites-%{version}.tar.gz +BuildRequires: %{python_module atomicwrites} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: python3-Sphinx +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: %{python_module atomicwrites-doc} +BuildArch: noarch + +%description +Atomic file writes for python. +Features that distinguish it from other similar libraries: + +- Race-free assertion that the target file doesn't yet exist. This can be + controlled with the 'overwrite' parameter. + +- Windows support, although not well-tested. The MSDN resources are not very + explicit about which operations are atomic. + +- Simple high-level API that wraps a very flexible class-based API. + +- Consistent error handling across platforms. + +This package contains the documentation for both python2 and python3 versions +of python-atomicwrites + +%prep +%setup -q -n atomicwrites-%{version} + +%build +pushd docs +make html +rm _build/html/.buildinfo +popd + +%install +# not needed + +%check +%{python_expand rm -rf tests/__pycache__ +export PYTHONDONTWRITEBYTECODE=1 +py.test-%{$python_bin_suffix} +} + +%files +%defattr(-,root,root,-) +%doc docs/_build/html +%doc README.rst +%license LICENSE + +%changelog diff --git a/python-atomicwrites.changes b/python-atomicwrites.changes index 807cf9d..69149cb 100644 --- a/python-atomicwrites.changes +++ b/python-atomicwrites.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jun 7 17:16:00 UTC 2018 - toddrme2178@gmail.com + +- Create separate -doc subpackage to build docs. +- Run tests in -doc subpackage to avoid dependency loop with + python-pytest. +- Use license tag + ------------------------------------------------------------------- Fri Jun 30 16:49:02 UTC 2017 - aloisio@gmx.com diff --git a/python-atomicwrites.spec b/python-atomicwrites.spec index 29092d6..1b015e8 100644 --- a/python-atomicwrites.spec +++ b/python-atomicwrites.spec @@ -1,7 +1,7 @@ # # spec file for package python-atomicwrites # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -26,12 +26,11 @@ Group: Development/Languages/Python Url: https://github.com/untitaker/python-atomicwrites Source: https://files.pythonhosted.org/packages/source/a/atomicwrites/atomicwrites-%{version}.tar.gz BuildRequires: %{python_module devel} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch + %python_subpackages %description @@ -59,14 +58,10 @@ rm -rf atomicwrites.egg-info %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%check -%{python_expand rm -rf tests/__pycache__ - $python -m pytest -} - %files %{python_files} %defattr(-,root,root,-) -%doc README.rst LICENSE +%doc README.rst +%license LICENSE %{python_sitelib}/* %changelog From b5f28756f96d825c7fbc8b91c05d6639d52d8f9abe9d1032795c12269f176427 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 11 Jun 2018 09:37:24 +0000 Subject: [PATCH 2/2] Accepting request 615838 from home:jengelh:branches:devel:languages:python - Drop other-OS mentions from description. OBS-URL: https://build.opensuse.org/request/show/615838 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=4 --- python-atomicwrites-doc.spec | 11 +++-------- python-atomicwrites.changes | 5 +++++ python-atomicwrites.spec | 9 ++------- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/python-atomicwrites-doc.spec b/python-atomicwrites-doc.spec index 226cbd4..2cad733 100644 --- a/python-atomicwrites-doc.spec +++ b/python-atomicwrites-doc.spec @@ -23,7 +23,7 @@ Name: python-atomicwrites-doc Version: 1.1.5 Release: 0 -Summary: Atomic file writes +Summary: Documentation for the Python atomic write support License: MIT Group: Documentation/HTML Url: https://github.com/untitaker/python-atomicwrites @@ -31,9 +31,9 @@ Source: https://files.pythonhosted.org/packages/source/a/atomicwrites/at BuildRequires: %{python_module atomicwrites} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: python3-Sphinx BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx Provides: %{python_module atomicwrites-doc} BuildArch: noarch @@ -44,12 +44,7 @@ Features that distinguish it from other similar libraries: - Race-free assertion that the target file doesn't yet exist. This can be controlled with the 'overwrite' parameter. -- Windows support, although not well-tested. The MSDN resources are not very - explicit about which operations are atomic. - -- Simple high-level API that wraps a very flexible class-based API. - -- Consistent error handling across platforms. +- high-level API that wraps a very flexible class-based API. This package contains the documentation for both python2 and python3 versions of python-atomicwrites diff --git a/python-atomicwrites.changes b/python-atomicwrites.changes index 69149cb..ec2f049 100644 --- a/python-atomicwrites.changes +++ b/python-atomicwrites.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jun 10 23:51:43 UTC 2018 - jengelh@inai.de + +- Drop other-OS mentions from description. + ------------------------------------------------------------------- Thu Jun 7 17:16:00 UTC 2018 - toddrme2178@gmail.com diff --git a/python-atomicwrites.spec b/python-atomicwrites.spec index 1b015e8..1d8d48e 100644 --- a/python-atomicwrites.spec +++ b/python-atomicwrites.spec @@ -20,7 +20,7 @@ Name: python-atomicwrites Version: 1.1.5 Release: 0 -Summary: Atomic file writes +Summary: Atomic file writes for Python License: MIT Group: Development/Languages/Python Url: https://github.com/untitaker/python-atomicwrites @@ -40,12 +40,7 @@ Features that distinguish it from other similar libraries: - Race-free assertion that the target file doesn't yet exist. This can be controlled with the 'overwrite' parameter. -- Windows support, although not well-tested. The MSDN resources are not very - explicit about which operations are atomic. - -- Simple high-level API that wraps a very flexible class-based API. - -- Consistent error handling across platforms. +- High-level API that wraps a very flexible class-based API. %prep %setup -q -n atomicwrites-%{version}