1
0

Compare commits

9 Commits

Author SHA256 Message Date
e74e2d1ba6 Accepting request 1312353 from devel:languages:python
- Fix -doc package generation, we are adding the -doc to the suffix,
  no need to have a subpackage here, multibuild does the trick.

OBS-URL: https://build.opensuse.org/request/show/1312353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-atomicwrites?expand=0&rev=13
2025-10-21 09:15:48 +00:00
e8515a218b - Fix -doc package generation, we are adding the -doc to the suffix,
no need to have a subpackage here, multibuild does the trick.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=26
2025-10-20 09:49:16 +00:00
9d74127bce Accepting request 1307090 from devel:languages:python
- Build for modern python in SLE15

OBS-URL: https://build.opensuse.org/request/show/1307090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-atomicwrites?expand=0&rev=12
2025-09-25 16:45:40 +00:00
87b104c4c7 Fix doc build for leap 15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=24
2025-09-25 11:27:11 +00:00
89248937f1 - Build for modern python in SLE15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=23
2025-09-25 10:44:22 +00:00
f4cbf1ead1 Accepting request 1285334 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1285334
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-atomicwrites?expand=0&rev=11
2025-06-13 16:46:09 +00:00
0b2ea4754d - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=21
2025-06-13 05:42:35 +00:00
e28d1ad31f Accepting request 1223367 from devel:languages:python
- Add sphinx8.patch to support sphinx8

OBS-URL: https://build.opensuse.org/request/show/1223367
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-atomicwrites?expand=0&rev=10
2024-11-12 18:20:49 +00:00
d35bc382a2 - Add sphinx8.patch to support sphinx8
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atomicwrites?expand=0&rev=19
2024-11-11 13:35:50 +00:00
3 changed files with 46 additions and 33 deletions

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Mon Oct 20 09:46:50 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Fix -doc package generation, we are adding the -doc to the suffix,
no need to have a subpackage here, multibuild does the trick.
-------------------------------------------------------------------
Thu Sep 25 10:40:31 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Build for modern python in SLE15
-------------------------------------------------------------------
Fri Jun 13 05:35:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Nov 11 13:34:27 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Add sphinx8.patch to support sphinx8
-------------------------------------------------------------------
Mon Jul 25 21:00:19 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-atomicwrites
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
%define psuffix %{nil}
%bcond_with doc
%endif
%{?sle15_python_module_pythons}
Name: python-atomicwrites%{psuffix}
Version: 1.4.1
Release: 0
@@ -32,15 +34,18 @@ 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
# PATCH-FIX-OPENSUSE sphinx8.patch -- daniel.garcia@suse.com
Patch0: sphinx8.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with doc}
BuildRequires: %{modern_python}-Sphinx
BuildRequires: %{python_module atomicwrites}
BuildRequires: %{python_module pytest}
BuildRequires: python3-Sphinx
Provides: %{python_module atomicwrites-doc = %{version}}
%endif
%python_subpackages
@@ -54,30 +59,12 @@ Features that distinguish it from other similar libraries:
- High-level API that wraps a very flexible class-based API.
%prep
%setup -q -n atomicwrites-%{version}
%autosetup -p1 -n atomicwrites-%{version}
rm -rf atomicwrites.egg-info
%if %{with doc}
%package -n %{name}-doc
Summary: Atomic file writes for Python (documentation)
Group: Documentation/HTML
%description -n %{name}-doc
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.
- 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
%endif
%build
%if %{without doc}
%python_build
%pyproject_wheel
%else
pushd docs
make html
@@ -87,7 +74,7 @@ popd
%install
%if %{without doc}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@@ -96,19 +83,14 @@ popd
%pytest
%endif
%if %{without doc}
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE
%{python_sitelib}/atomicwrites*
%if %{without doc}
%{python_sitelib}/atomicwrites
%{python_sitelib}/atomicwrites-%{version}.dist-info
%else
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE
%doc docs/_build/html
%endif

10
sphinx8.patch Normal file
View File

@@ -0,0 +1,10 @@
Index: atomicwrites-1.4.1/docs/conf.py
===================================================================
--- atomicwrites-1.4.1.orig/docs/conf.py
+++ atomicwrites-1.4.1/docs/conf.py
@@ -105,4 +105,4 @@ epub_copyright = '2015, Markus Unterwadi
epub_exclude_files = ['search.html']
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+intersphinx_mapping = {'python': ('http://docs.python.org/', None)}