forked from pool/python-dominate
- Switch to autosetup macro.
- Add patch support-python-313.patch: * Support Python 3.13 deindenting changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dominate?expand=0&rev=22
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
dominate-2.9.1.tar.gz
Normal file
3
dominate-2.9.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:558284687d9b8aae1904e3d6051ad132dd4a8c0cf551b37ea4e7e42a31d19dc4
|
||||
size 37715
|
||||
82
python-dominate.changes
Normal file
82
python-dominate.changes
Normal file
@@ -0,0 +1,82 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 04:17:09 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to autosetup macro.
|
||||
- Add patch support-python-313.patch:
|
||||
* Support Python 3.13 deindenting changes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 6 20:45:36 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.9.1:
|
||||
* Allow dominate to work in async contexts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 27 21:13:05 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.8.0:
|
||||
* Fix incorrect context handling when a tag is used 2+ levels
|
||||
deeper than it was created
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 13 07:17:24 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- use https for urls
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 27 18:38:32 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to 2.7.0:
|
||||
Fixes (#160)
|
||||
* fix #153
|
||||
* fix #144
|
||||
* fix #139
|
||||
* bump version
|
||||
* remove dead code
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 12 04:08:22 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 2.6.0:
|
||||
* Add get_current() to return the current active element in a with context
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 21 06:15:59 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 2.5.2:
|
||||
* Removed 'input' keyword reassignment (#131)
|
||||
* Fix issue #118 (underscores not working in aria attributes) (#119)
|
||||
* Adding some missing attrs to DASHED_ATTRIBUTES (#126)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 31 05:23:00 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 2.5.1:
|
||||
* Support for Python 3.8
|
||||
* Add main element. Fixes #117
|
||||
* Use tagname property from object, not class. Fixes #89
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 9 10:00:30 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- Update to 2.4.0
|
||||
* The `dominate.svg` module contains SVG tags similar to how
|
||||
`dominate.tags` contains HTML tags.
|
||||
* Suppress rendering of boolean attributes when the value is False
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 8 14:48:54 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 2.3.5:
|
||||
* support for python 3.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 18 08:33:52 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Version update to 2.3.4:
|
||||
* Few minor bugfixes all around
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 17 02:38:25 UTC 2018 - toddrme2178@gmail.com
|
||||
|
||||
- Initial version
|
||||
64
python-dominate.spec
Normal file
64
python-dominate.spec
Normal file
@@ -0,0 +1,64 @@
|
||||
#
|
||||
# spec file for package python-dominate
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-dominate
|
||||
Version: 2.9.1
|
||||
Release: 0
|
||||
Summary: Python library for creating and manipulating HTML documents
|
||||
License: GPL-3.0-only
|
||||
URL: https://github.com/Knio/dominate/
|
||||
Source: https://files.pythonhosted.org/packages/source/d/dominate/dominate-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#Knio/dominate#202
|
||||
Patch0: support-python-313.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest >= 2.7.3}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Dominate is a Python library for creating and manipulating HTML
|
||||
documents using an elegant DOM API.
|
||||
|
||||
It allows you to write HTML pages in pure Python very concisely,
|
||||
which eliminates the need to learn another template language, and
|
||||
lets you take advantage of the more powerful features of Python.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n dominate-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
%{python_sitelib}/dominate
|
||||
%{python_sitelib}/dominate-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
37
support-python-313.patch
Normal file
37
support-python-313.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
From 58f7d7fdb171f80ed6ce97e6ca4409723975c47f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sat, 3 Aug 2024 16:07:38 +0200
|
||||
Subject: [PATCH] Update tests for docstring dedenting in Python 3.13
|
||||
|
||||
Update the `get_expected()` function to account for the fact that
|
||||
Python 3.13 automatically dedents all the docstrings, and therefore
|
||||
does not require explicitly removing the indent (which effectively
|
||||
removes too much indent).
|
||||
|
||||
Fixes #199
|
||||
---
|
||||
tests/test_svg.py | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_svg.py b/tests/test_svg.py
|
||||
index e5bbec3..ea7d98f 100644
|
||||
--- a/tests/test_svg.py
|
||||
+++ b/tests/test_svg.py
|
||||
@@ -1,3 +1,5 @@
|
||||
+import sys
|
||||
+
|
||||
import dominate.svg
|
||||
from dominate.tags import *
|
||||
from dominate.svg import *
|
||||
@@ -14,7 +16,10 @@ def base():
|
||||
|
||||
|
||||
def get_expected(func):
|
||||
- return func.__doc__.replace('\n ', '\n').strip()
|
||||
+ doc = func.__doc__
|
||||
+ if sys.version_info < (3, 13):
|
||||
+ doc = doc.replace('\n ', '\n')
|
||||
+ return doc.strip()
|
||||
|
||||
|
||||
def output_test(func):
|
||||
Reference in New Issue
Block a user