commit a5bbd7e670832c69741546bfea65d1d1c96f65331cc0679fce9cdbca387923ea Author: Adrian Schröter Date: Fri May 3 21:50:44 2024 +0200 Sync from SUSE:SLFO:Main python-pep440 revision 3e24014bae05ee8309b044e4c822441c 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/pep440-0.1.2.tar.gz b/pep440-0.1.2.tar.gz new file mode 100644 index 0000000..2e286cc --- /dev/null +++ b/pep440-0.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58b37246cc2b13fee1ca2a3c092cb3704d21ecf621a5bdbb168e44e697f6d04d +size 4378 diff --git a/python-pep440.changes b/python-pep440.changes new file mode 100644 index 0000000..83577fb --- /dev/null +++ b/python-pep440.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Fri Sep 16 21:17:55 UTC 2022 - Ben Greiner + +- Update to 0.1.2 + * update build and test +- Clean specfile + +------------------------------------------------------------------- +Tue Sep 13 15:51:59 UTC 2022 - Arun Persaud + +- initial version diff --git a/python-pep440.spec b/python-pep440.spec new file mode 100644 index 0000000..dbc3b48 --- /dev/null +++ b/python-pep440.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pep440 +# +# 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-pep440 +Version: 0.1.2 +Release: 0 +Summary: Check whether versions number match PEP 440 +License: MIT +Group: Development/Languages/Python +URL: https://github.com/Carreau/pep440 +Source: https://files.pythonhosted.org/packages/source/p/pep440/pep440-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module flit-core >= 3.4} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-console-scripts} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives +BuildArch: noarch +%python_subpackages + +%description +A simple package with utils to check whether versions number match Pep 440. + +%prep +%setup -q -n pep440-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/pep440 +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%post +%python_install_alternative pep440 + +%postun +%python_uninstall_alternative pep440 + +%files %{python_files} +%doc readme.md +%license LICENSE +%python_alternative %{_bindir}/pep440 +%{python_sitelib}/pep440 +%{python_sitelib}/pep440-%{version}*-info + +%changelog