commit a24378987953171e1618215a59dd0024a739a5af19e8943e8e277ca16353aa57 Author: Thomas Bechtold Date: Tue Jul 4 06:17:06 2017 +0000 Accepting request 507414 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/507414 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/atomicwrites-1.1.5.tar.gz b/atomicwrites-1.1.5.tar.gz new file mode 100644 index 0000000..cc8dc34 --- /dev/null +++ b/atomicwrites-1.1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:240831ea22da9ab882b551b31d4225591e5e447a68c5e188db5b89ca1d487585 +size 18951 diff --git a/python-atomicwrites.changes b/python-atomicwrites.changes new file mode 100644 index 0000000..807cf9d --- /dev/null +++ b/python-atomicwrites.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +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.spec b/python-atomicwrites.spec new file mode 100644 index 0000000..29092d6 --- /dev/null +++ b/python-atomicwrites.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-atomicwrites +# +# 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 +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-atomicwrites +Version: 1.1.5 +Release: 0 +Summary: Atomic file writes +License: MIT +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 +Atomic file writes for python3. +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. + +%prep +%setup -q -n atomicwrites-%{version} +rm -rf atomicwrites.egg-info + +%build +%python_build + +%install +%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 +%{python_sitelib}/* + +%changelog