commit 84b2dd6b51a58ff69a99be81a0b2ee6d8284cddb19b5ec5fbf485791aad407b6 Author: Dirk Mueller Date: Thu Jun 2 08:09:30 2022 +0000 Accepting request 980392 from home:MasterPatricko To be forwarded to Factory. Required to update streamlink in Factory to latest version. Now with tests built and run OBS-URL: https://build.opensuse.org/request/show/980392 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-versioningit?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-versioningit.changes b/python-versioningit.changes new file mode 100644 index 0000000..c5d346a --- /dev/null +++ b/python-versioningit.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Wed Jun 1 16:57:04 UTC 2022 - Tejas Guruswamy + +- Build and run tests with pytest + +------------------------------------------------------------------- +Fri May 6 20:31:53 UTC 2022 - Scott Bradnick + +- Initial version from upstream via py2pack. + * requires shim 'setup.py'. diff --git a/python-versioningit.spec b/python-versioningit.spec new file mode 100644 index 0000000..21d89fb --- /dev/null +++ b/python-versioningit.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-versioningit +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +Name: python-versioningit +Version: 1.1.1 +Release: 0 +Summary: Versioning It with your Version In Git +License: MIT +URL: https://github.com/jwodder/versioningit +Source: https://files.pythonhosted.org/packages/source/v/versioningit/versioningit-%{version}.tar.gz +BuildRequires: python3 >= 3.7 +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tomli >= 1.2} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pydantic} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module build} +BuildRequires: %{python_module wheel} +# /SECTION +BuildRequires: fdupes +Requires: python-packaging +Requires: python-setuptools +Requires: python-tomli >= 1.2 +Suggests: python-importlib-metadata >= 3.6 +Suggests: python-dataclasses +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Python Setuptools plugin for automatically determining your package's version +based on your version control repository's tags. Unlike others, it allows easy +customization of the version format and even lets you easily override the +separate functions used for version extraction & calculation. + +%prep +%setup -q -n versioningit-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/versioningit +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest test + +%post +%python_install_alternative versioningit + +%postun +%python_uninstall_alternative versioningit + +%files %{python_files} +%doc CHANGELOG.md README.rst +%license LICENSE +%python_alternative %{_bindir}/versioningit +%{python_sitelib}/* + +%changelog diff --git a/versioningit-1.1.1.tar.gz b/versioningit-1.1.1.tar.gz new file mode 100644 index 0000000..a08403b --- /dev/null +++ b/versioningit-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77f09ae1cb0d81263796b979da581db8c1d0de44380bcc5af51b7b81d7c4968b +size 662205