commit db86cb4dcf3685263779be84d7590d3cf409a5bb7b4ad222b6128ac92e0f356a Author: Matej Cepl Date: Sun Jan 1 13:37:03 2023 +0000 Accepting request 1045818 from home:bnavigator:branches:devel:languages:python:numeric required by rope OBS-URL: https://build.opensuse.org/request/show/1045818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytoolconfig?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/python-pytoolconfig.changes b/python-pytoolconfig.changes new file mode 100644 index 0000000..adb10a5 --- /dev/null +++ b/python-pytoolconfig.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Dec 30 10:07:32 UTC 2022 - Ben Greiner + +- Intitial specfile for v1.2.4 +- Required by rope 1 diff --git a/python-pytoolconfig.spec b/python-pytoolconfig.spec new file mode 100644 index 0000000..534bda9 --- /dev/null +++ b/python-pytoolconfig.spec @@ -0,0 +1,98 @@ +# +# spec file for package python-pytoolconfig +# +# Copyright (c) 2022 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-pytoolconfig +Version: 1.2.4 +Release: 0 +Summary: Python tool configuration +License: LGPL-3.0-or-later +URL: https://github.com/bagel897/pytoolconfig +Source: https://files.pythonhosted.org/packages/source/p/pytoolconfig/pytoolconfig-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module packaging >= 22} +BuildRequires: %{python_module pdm-pep517 >= 1.0.5} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11} +BuildRequires: %{python_module typing-extensions >= 4.4.0 if %python-base < 3.8} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-packaging >= 22 +BuildArch: noarch +%if %{python_version_nodots} < 311 +Requires: python-tomli >= 2.0.1 +%endif +%if %{python_version_nodots} < 38 +Requires: python-typing-extensions >= 4.4.0 +%endif +# SECTION test +BuildRequires: %{python_module Sphinx >= 4.5.0} +BuildRequires: %{python_module platformdirs > 1.4.4} +BuildRequires: %{python_module pydantic >= 1.7.4} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module tabulate >= 0.8.9} +# /SECTION +%python_subpackages + +%description +Python Tool Configuration + +The goal of this project is to manage configuration for python tools, +such as black and rope and add support for a pyproject.toml configuration file. + +%package global +Summary: [global] extra for %{python_flavor}-pytoolconfig +Requires: python-platformdirs >= 1.4.4 +Requires: python-pytoolconfig = %{version} + +%description global +Python Tool Configuration - [global] extra + +%package validation +Summary: [validation] extra for %{python_flavor}-pytoolconfig +Requires: python-pydantic >= 1.7.4 +Requires: python-pytoolconfig = %{version} + +%description validation +Python Tool Configuration - [validation] extra + +%prep +%setup -q -n pytoolconfig-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/pytoolconfig +%{python_sitelib}/pytoolconfig-%{version}.dist-info + +%files %{python_files global} +%license LICENSE + +%files %{python_files validation} +%license LICENSE + +%changelog diff --git a/pytoolconfig-1.2.4.tar.gz b/pytoolconfig-1.2.4.tar.gz new file mode 100644 index 0000000..d322ced --- /dev/null +++ b/pytoolconfig-1.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e1a246f77970ddb5f3d8d06fbf162424b8a1adfc22c2eb51826b383bf293d1e +size 15910