14
0

Its probably not worth bumping mypy for this

test in 15.6

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peewee-migrate?expand=0&rev=1
This commit is contained in:
2024-08-21 11:06:37 +00:00
committed by Git OBS Bridge
commit 55d0cd2095
5 changed files with 115 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ab67f72a0936006155e1b310c18a32f79e4dff3917cfeb10112ca92518721e5
size 17119

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Aug 13 01:16:17 UTC 2024 - Simon Lees <sflees@suse.de>
- Initial Package 1.13.0

View File

@@ -0,0 +1,84 @@
#
# spec file for package python-peewee-migrate
#
# 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/
#
# mypy on SLE-15 is too old for this test suite
%if 0%{?suse_version} > 1500
%define run_tests 1
%else
%define run_tests 0
%endif
%{?sle15_python_module_pythons}
Name: python-peewee-migrate
Version: 1.13.0
Release: 0
Summary: Support for migrations in Peewee ORM
License: MIT
URL: https://github.com/klen/peewee_migrate
Source: https://files.pythonhosted.org/packages/source/p/peewee-migrate/peewee_migrate-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core >= 1.0.0}
%if 0%{?run_tests}
# The following are required for the testsuite
BuildRequires: %{python_module peewee}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-mypy}
%endif
BuildRequires: fdupes
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: %{python_module click}
Requires: %{python_module peewee}
BuildArch: noarch
%python_subpackages
%description
A simple migration engine for Peewee_ ORM
%prep
%autosetup -p1 -n peewee_migrate-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
for p in pw-migrate pw_migrate ; do
%python_clone -a %{buildroot}%{_bindir}/$p
done
%if 0%{?run_tests}
%check
%pytest
%endif
%post
%python_install_alternative pw-migrate pw_migrate
%postun
%python_uninstall_alternative pw-migrate pw_migrate
%files %{python_files}
%license LICENSE
%python_alternative %{_bindir}/pw-migrate
%python_alternative %{_bindir}/pw_migrate
%{python_sitelib}/peewee_migrate
%{python_sitelib}/peewee_migrate-%{version}.dist-info
%changelog