From 0d0e7449f4c490a0b1184c260a1425b59b67ff02b560bec0a2ad1e0edfc34f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:28:59 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-wcag-contrast-ratio revision c406775f6d779d2daf80981fa95640c7 --- .gitattributes | 23 ++++++++++++ python-wcag-contrast-ratio.changes | 14 ++++++++ python-wcag-contrast-ratio.spec | 56 ++++++++++++++++++++++++++++++ wcag-contrast-ratio-0.9.tar.gz | 3 ++ 4 files changed, 96 insertions(+) create mode 100644 .gitattributes create mode 100644 python-wcag-contrast-ratio.changes create mode 100644 python-wcag-contrast-ratio.spec create mode 100644 wcag-contrast-ratio-0.9.tar.gz 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/python-wcag-contrast-ratio.changes b/python-wcag-contrast-ratio.changes new file mode 100644 index 0000000..51023a6 --- /dev/null +++ b/python-wcag-contrast-ratio.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Fri Apr 21 12:38:37 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:50 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Jul 18 12:22:17 UTC 2022 - Matej Cepl + +- Initial packaging effort for wcag-contrast-ratio 0.9. diff --git a/python-wcag-contrast-ratio.spec b/python-wcag-contrast-ratio.spec new file mode 100644 index 0000000..679f574 --- /dev/null +++ b/python-wcag-contrast-ratio.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-wcag-contrast-ratio +# +# Copyright (c) 2023 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} +Name: python-wcag-contrast-ratio +Version: 0.9 +Release: 0 +Summary: A library for computing contrast ratios, as required by WCAG 20 +License: MIT +URL: https://github.com/gsnedders/wcag-contrast-ratio +Source: https://files.pythonhosted.org/packages/source/w/wcag-contrast-ratio/wcag-contrast-ratio-%{version}.tar.gz +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +A library for computing contrast ratios, as required by WCAG 2.0 + +%prep +%setup -q -n wcag-contrast-ratio-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest test.py + +%files %{python_files} +%doc README.rst +%{python_sitelib}/* + +%changelog diff --git a/wcag-contrast-ratio-0.9.tar.gz b/wcag-contrast-ratio-0.9.tar.gz new file mode 100644 index 0000000..614ee5d --- /dev/null +++ b/wcag-contrast-ratio-0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69192b8e5c0a7d0dc5ff1187eeb3e398141633a4bde51c69c87f58fe87ed361c +size 2131